• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ABPeoplePickerView and setNameDoubleAction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Does Apple have any API's that can interface with this?
  • Next by Date: completely and utterly confused with NSImage + MySQL
  • Previous by thread: Does Apple have any API's that can interface with this?
  • Next by thread: completely and utterly confused with NSImage + MySQL
  • Index(es):
    • Date
    • Thread