NSSearchField in toolbars - toolbar won't customize
NSSearchField in toolbars - toolbar won't customize
- Subject: NSSearchField in toolbars - toolbar won't customize
- From: Ian <email@hidden>
- Date: Tue, 9 Dec 2003 00:38:45 +0000
Hi - not much on mamasam about this, so thought I'd run it by you...
In my toolbar I have an NSView that contains an NSSearchField.
When runToolbarCustomizationPalette: is invoked on the window, the
palette fails to run.
It was working fine a few hours ago - so a quick check in the backtrace
shows that things are getting stuck at -[NSMenu encodeWithEncoder:] so
obviously I broke it by adding a searchMenuTemplate to the search
field.
I've solved the problem by connecting the Customize Toolbar menu item
to a method of my own which removes the offending menu, sends
runToolbarCustomizationPalette: to the document window and then puts it
back again.
This works great - but I was wondering that as search fields with menus
are so common, and they almost always live in toolbars, is there
something simple I've missed somewhere?
I'm pretty sure I'm not supposed to go through this workaround?
Thanks for any ideas.
Ian
_______________________________________________
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.