• 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
Re: NSSearchField not calling target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >NSSearchField not calling target (From: Steve Palmer <email@hidden>)
 >Re: NSSearchField not calling target (From: Nicko van Someren <email@hidden>)
 >Re: NSSearchField not calling target (From: Steve Palmer <email@hidden>)

  • Prev by Date: Re: NSSearchField not calling target
  • Next by Date: Problem with a tableview and image in the bg
  • Previous by thread: Re: NSSearchField not calling target
  • Next by thread: Re: NSSearchField not calling target
  • Index(es):
    • Date
    • Thread