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 05:39:06 +0100
On 21 Jun 2004, at 5:12, Steve Palmer wrote:
The value of self is the value of the NSWindowController derived
object of which the toolbar is part. I put a breakpoint in the
itemForItemIdentifier code and verified that [toolbar _delegate] is
equal to self. So I'm pretty sure that the target is correct.
Strange. Have you tried throwing in a [self searchBrowser: nil] call
into the itemForItemIdentifier code in order to see if the right code
gets called that way?
The only other thing I can think of is that if an NSToolbarItem has is
a view item rather than an image item then the setAction: message gets
passed on to the view and the action is taken form the result of the
action message of the view. If you have a shared searchView or somehow
its action is getting reset you would get odd results.
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.