If you don't do this, the array will likely go away and the app will
crash (or at least not work correctly). You also have to make sure
you do [contact release] in MyController's -dealloc method. Make one
if it doesn't exist:
Do your best to read up on Objective-C memory management so
understand what's going on.
The other thing is that I don't think ABPerson implements a method
called -name (though I could be wrong), so this might not work at
all. If it doesn't, you'll probably have to create your own class
which *does* have a -name method and gets its name data from an
ABPerson instance.
To do that, you'd use ABRecord's -valueForProperty: method with
kABFirstNameProperty and kABLastNameProperty.
That might be sort of confusing if you're a newbie but this isn't
completely simple stuff. Trying to explain it all in a single email
would take quite a bit of time. Hopefully you have enough to get
started.
Hope that helps,
- Scott
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com