Re: Subclassing NSToolBar.
Re: Subclassing NSToolBar.
- Subject: Re: Subclassing NSToolBar.
- From: Ali Ozer <email@hidden>
- Date: Fri, 5 Oct 2001 13:08:53 -0700
>
So, it looks like Apple uses NSToolbar for System Preferences now, and
>
if you look at the header for NSToolbar you'll find that it has some
>
interesting new flags like "clickAndDragPerformsCustomization",
>
"showsNoContextMenu", and "firstMoveableItemIndex". If you set those up
>
appropriately by adding category methods to NSToolbar, and then you
>
figure out that the toolbar view accepts drags of the
>
"NSToolbarItemIdentiferPboardType", so you can implement your own
>
equivalent to the customization sheet, you can do quite a bit without
>
having to even subclass NSToolbar.
Sigh, those bits are private and definitely likely to move in a future
release...
Ali