ABPeoplePickerView and multi-value properties
ABPeoplePickerView and multi-value properties
- Subject: ABPeoplePickerView and multi-value properties
- From: Nik Sands <email@hidden>
- Date: Thu, 6 May 2004 15:19:11 +1000
I'm converting an application from using my own custom interface to the
Address Book, to using the (new to 10.3) ABPeoplePickerView. Most of
the functionality works, but there are 2 critical things that I cannot
get to work at all, with ABPeoplePickerView:
1. - (NSArray *)selectedValues
This always returns NULL, no matter if I have values selected or not.
I've used the "- (NSString *)displayedProperty" method to make sure
that the property I want is actually the displayed property (even
though I can actually see it displayed on screen), and I have one or
more of the values in this column selected, but I still only get a NULL
result from the selectedValues method.
(Incidentally, the similar " (NSArray *)selectedRecords" method works
fine).
2. ABPeoplePickerValueSelectionDidChangeNotification
Although my object has registered for this notification, as well as the
ABPeoplePickerNameSelectionDidChangeNotification, (both with the same
selector), it is only when the name selection changes that the selector
is invoked. The value selection notification never seems to occur,
even if I do actually change the selection.
Has anybody used either of the above method or notification for
multi-value properties and got them to work?
Could anybody show me some sample code for either of these that
actually works?
I'm at my wits end, and would be grateful for any help.
Thanks,
Nik.
========================================================
NIK SANDS - Systems Administrator
IT Services
University of Tasmania, Australia
Phone: 61-3-63243732 (BH)
AIM: brassnix
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.