Re: Subclassing NSToolBar.
Re: Subclassing NSToolBar.
- Subject: Re: Subclassing NSToolBar.
- From: Greg Titus <email@hidden>
- Date: Fri, 5 Oct 2001 13:50:54 -0700
On Friday, October 5, 2001, at 01:08 PM, Ali Ozer wrote:
>
> 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
>
Absolutely. In which case our app would very likely break, and we'd need
to find either where the bits had moved, and/or need to implement
something else. We're aware of that and have chosen to use non-public
features of NSToolbar anyway. It's our own fault, and we promise not to
complain if/when you move them. :-)
(I suppose a disclaimer on my original message would have been helpful,
but I thought it was fairly obvious that I was describing private bits
that could easily change and break.)
--Greg