Re: NSToolbars and NSToolbarItems
Re: NSToolbars and NSToolbarItems
- Subject: Re: NSToolbars and NSToolbarItems
- From: j o a r <email@hidden>
- Date: Wed, 6 Aug 2003 08:20:30 +0200
Safari doesn't use a NSToolbar, so that's how they solved that
problem...
No, NSToolbar doesn't support selective configurability - it's all or
nothing. I don't think that you can achieve this behaviour using the
built in components.
One thing you might do is to create your own toolbar item configuration
palette where you allow the user to position the movable items, and
then have your toolbar delegate propagate these changes to the real
toolbar. If you subclass NSToolbar you could open this custom palette
when the user request to configure the toolbar.
It's probably not worth the effort though, and it's also bad practice
to change the behaviour of the standard controls like this.
j o a r
On Wednesday, Aug 6, 2003, at 07:57 Europe/Stockholm, Francisco
Tolmasky wrote:
Ok, can I have a toolbar item that MUST be in a toolbar in a given
position. For example, in Safari, the search text field and url text
field are always there. I want to know if there's a way to make it so
that a certain item always appears at the very right of my toolbar,
regardless, but allows every thing else to be customized.
_______________________________________________
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.