From: Patrick H. <ph...@gm...> - 2007-12-23 22:04:31
|
This is probably more of a cocoa question than a rubycocoa question, so feel free to ignore me :-) I am trying to work with address book, and at least at the moment I am stumped by labels in AbMultiValueCoreDataWrapper. I expect to see "Home", but I get "_$<Home>!$_". Thanks for any help, pointers to docs, etc. pth require 'osx/cocoa' include OSX OSX.require_framework "AddressBook" me = ABAddressBook.sharedAddressBook.me # => #<OSX::ABPerson:0xbf3d8 class='ABPerson' id=0x514af0> addr_info = me.valueForProperty("Address") # => #<OSX::ABMultiValueCoreDataWrapper:0xbf04a class='ABMultiValueCoreDataWrapper' id=0x51f0e0> addr_info.labelAtIndex(0).to_s # => "_$!<Home>!$_" addr_info.identifierAtIndex(0).to_s # => "E2E83CDE-3FE3-4F89-9EBD-1030C483A6D8" |