NSToolbar with NSSearchField crash
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