ABPeoplePickerValueSelectionDidChangeNotification does not work?
ABPeoplePickerValueSelectionDidChangeNotification does not work?
- Subject: ABPeoplePickerValueSelectionDidChangeNotification does not work?
- From: Dave Camp <email@hidden>
- Date: Fri, 28 May 2004 16:57:09 -0700
I'm using an ABPeoplePickerView and I can't seem to get
ABPeoplePickerValueSelectionDidChangeNotification to work. I'm
registering for the following notifications:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(abValueSelectionChanged:)
name:ABPeoplePickerValueSelectionDidChangeNotification object:NULL];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(abValueSelectionChanged:)
name:ABPeoplePickerNameSelectionDidChangeNotification object:NULL];
and I've set...
[ppView setValueSelectionBehavior:ABSingleValueSelection];
[ppView addProperty:kABPhoneProperty];
[ppView setAllowsGroupSelection:YES];
[ppView setAllowsMultipleSelection:YES];
My notification method is called when I click on different names, but
not when I click on a different phone number for the same person. In
other words, If there is no selection and I click on the Work number
for a contact, I get a
ABPeoplePickerNameSelectionDidChangeNotification. However, if I
subsequently click on the Home number of the same contact, the visible
selection changes, but I don't get a notification for it.
What am I doing wrong?
Dave
---
Among the chief weapons of UNIX: Fear, surprise and ruthless
efficiency.
_______________________________________________
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.