seeking to understand ABPeoplePickerView behavior
seeking to understand ABPeoplePickerView behavior
- Subject: seeking to understand ABPeoplePickerView behavior
- From: "ronald b. kopelman" <email@hidden>
- Date: Tue, 07 Jun 2011 11:01:05 -0400
I have been trying to implement setNameDoubleAction: & setGroupDoubleAction: which I do in applicationDidFinishLaunching as follows:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
"stuff"
[pickerView setNameDoubleAction:@selector(doNameSelection:)];
[pickerView setGroupDoubleAction:@selector(doGroupSelection:)];
}
Allows Multiple Selection, Allows Group Selection, & Multiple Value Selection are set for the picker in IB. Everything wired up, classes included, & nameDoubleAction works fine. So does groupDoubleAction but only when I choose "All Contacts" or more than 1 group. Choosing only 1 group (other than ll Contacts) always results in "Abe[2333:903] Controller cannot be nil". However, this never occurs when I double click a single name!
Apple literature has been less than helpful in this so I have searched the web. I finally found an example at http://pommedev.mediabox.fr/utilisation-des-classes-cocoa/abpeoplepickerview-un-bug-dans-l'api/ which suggested using [pickerView setTarget:self]; So…
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification //NSApplicationDelegate
{
"stuff"
[pickerView setTarget:self];
[pickerView setNameDoubleAction:@selector(doNameSelection:)];
[pickerView setGroupDoubleAction:@selector(doGroupSelection:)];
}
works like a charm!
Ok, it's running but I can't understand why this is needed for the groupDoubleAction but not the nameDoubleAction. Any hints or suggestions as to this behavior?
ronald b. kopelman_______________________________________________
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