Re: NSSearchField not calling target
Re: NSSearchField not calling target
- Subject: Re: NSSearchField not calling target
- From: Nicko van Someren <email@hidden>
- Date: Mon, 21 Jun 2004 04:53:25 +0100
On 21 Jun 2004, at 3:43, Steve Palmer wrote:
I have an NSSearchField on a toolbar. The code that adds the field in
itemForItemIdentifier is:
...
[item setTarget:self];
[item setAction:@selector(searchBrowser:)];
...
The problem is that searchBrowser is never called. There's no error in
the console when I debug. I've looked over the documentation and I
can't see any obvious thing I'm missing. So why isn't the search field
calling my target?
I have essentially the same code in my application and it works fine.
What, exactly, is the value of "self" in this context? Unless you're
doing something odd it will be the toolbar delegate; is this the
correct target for the searchBrowser: message?
Nicko
_______________________________________________
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.