• 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
NSToolbar with NSSearchField crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSToolbar with NSSearchField crash


  • Subject: NSToolbar with NSSearchField crash
  • From: Keith Blount <email@hidden>
  • Date: Tue, 17 Oct 2006 13:52:58 -0700 (PDT)

Hello,

I have a toolbar that has an NSSearchField in it, using setView: on NSToolbarItem. However, I am experiencing a crash when running the toolbar customisation palette, when the search field is not visible and the user attempts to drag the search field to the toolbar. The debugger just shows lots of private and internal methods, but things seem to crash on NSMenuItem -encodeWithCoder:. My search field has a menu, and it seems that this is what is causing problems for the customisation palette. If I disconnect the menu from the search field, I don't get any crashes, so this is almost certainly the culprit.

So, my question is, how do I fix this? I notice that in Xcode, the search field only shows its menu drop down arrow when it is actually in the toolbar, and not in the customisation palette, but I don't know how I would go about disconnecting the menu only in this circumstance. Other programs, such as DevonThink and Camino, don't seem to have any problems with having a menu in a search field in the toolbar customisation palette...

If anyone could give me any advice on how to fix this bug, I would be most grateful.
Many thanks in advance,
Keith



 _______________________________________________
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

  • Follow-Ups:
    • Re: NSToolbar with NSSearchField crash
      • From: Michael Watson <email@hidden>
  • Prev by Date: Re: Re: Re: How to make my application open file directly from Finder?
  • Next by Date: Re: NSToolbar with NSSearchField crash
  • Previous by thread: Re: How to capture Key event in a NSApp?
  • Next by thread: Re: NSToolbar with NSSearchField crash
  • Index(es):
    • Date
    • Thread