• 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
NSSearchField in toolbars - toolbar won't customize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: XCode problem
  • Next by Date: The NSOutlineView didClickTableColumn problem
  • Previous by thread: Re: NSUserDefaultsController and KVO
  • Next by thread: The NSOutlineView didClickTableColumn problem
  • Index(es):
    • Date
    • Thread