ABPeoplePickerView and setNameDoubleAction
ABPeoplePickerView and setNameDoubleAction
- Subject: ABPeoplePickerView and setNameDoubleAction
- From: Steve Cronin <email@hidden>
- Date: Fri, 24 Feb 2006 22:27:27 -0600
Folks;
I've got a window which drops a sheet for picking people off the
ABPeoplePickerView.
Works fine with my Cocoa buttons which use "[[ABPicker
selectedRecords] objectAtIndex:0]"
Now I'm trying to allow a double-click in the view to select the
person AND close the sheet.
At awakeFromNib in the parent window's window controller I do:
[ABPicker setNameDoubleAction:@selector(setPersonAndClose:)];
NSLog(@"NameDoubleAction = %@",NSStringFromSelector([ABPicker
nameDoubleAction]));
Log is what I expect. Immediately before dropping the sheet I
reiterate the NSLog statement above and all is still well.
The WindowController.h says:
- (IBAction) setPersonAndClose:(id)sender;
The sheet has the Window Controller set as its delegate.
There is no way to set the delegate of the ABPeoplePickerView, which
is what my gut tells me I should do.
In any case, setPersonAndClose: is never called.
Anybody have any ideas?
BTW: 10.4.5
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden