• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AddressBook.framework & binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AddressBook.framework & binding


  • Subject: AddressBook.framework & binding
  • From: Robert Cerny <email@hidden>
  • Date: Mon, 28 Apr 2008 13:01:07 +0200

hi everybody,
I searched the web but I'm probably not asking the right question :/ Is there a way how to use AddressBook data with bindings directly (I mean without writing glue code for extracting values wrapped with properties)?


I mean I can write bunch of repeating code and add it to ABPerson category like:

@implementation ABPerson (_binding_)
- (NSString*)lastName
{
	return [self valueForProperty:kABLastNameProperty];
}

- (NSString*)firstName
{
	return [self valueForProperty:kABFirstNameProperty];
}
@end

but is there a more clever way?

Thanks
Robert
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Initial value of on/off buttons
  • Next by Date: Re: NSMenuItem and images
  • Previous by thread: Re: autosizing problem
  • Next by thread: Using an NSTableHeaderView as a Custom View
  • Index(es):
    • Date
    • Thread