Connecting NSSearchField to it's handler
Connecting NSSearchField to it's handler
- Subject: Connecting NSSearchField to it's handler
- From: Ken Tozier <email@hidden>
- Date: Mon, 6 Aug 2007 22:24:55 -0400
Hi
I wrote a NSWindowController subclass that has a method to handle
actions from its NSSearchField and can't figure out how to tell the
search field to send actions to this method in IB. It's trivial to do
it in the NSWindowController's awake from nib method, took 5 minutes
to figure it out.
- (void) awakeFromNib
{
[searchField setAction: @selector(handleSearch:)];
[searchField setTarget: self];
}
By contrast, after almost two hours of Googling and looking at
example projects, reading up on bindings etc, I can't figure out how
to do it in IB.
Any pointers appreciated
Ken
_______________________________________________
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