Actually I realized I didn't put the full Address Book example online yet, but this section shows how to use method missing to write a nicer wrapper for the AddressBook framework:I hope it helps,- Matt_______________________________________________On Sat, Jan 15, 2011 at 7:26 PM, Matt Aimonetti <mattaimonetti@gmail.com> wrote:
Constants in Ruby start by an uppercase, rename kABFirstNamePropery => KABFirstNameProperyAlso I have an address book example in my book you can see freely online.- Matt
Sent from my iPhoneHello,I'm playing with AddressBook framework but I can't figure how access the predefined constants.For example, in my ViewControler I do like below but XCode can't find kABFirstNamePropery. I already added framework 'AddressBook' in my rb_main.rb:def awakeFromNibnotificationCenter = NSNotificationCenter.defaultCenternotificationCenter.addObserver(self,selector: "recordChanged:",name: ABPeoplePickerNameSelectionDidChangeNotification,object:peoplePicker)enddef recordChanged(notification)people = peoplePicker.selectedRecordsperson = people.firstputs kABFirstNamePropertyendAnyone can help me with this issue?Thanks in advance ;)_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel