• 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
Re: Subclassing NSToolBar.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Subclassing NSToolBar.
      • From: "John C. Randolph" <email@hidden>
    • Re: Subclassing NSToolBar.
      • From: Ali Ozer <email@hidden>
References: 
 >Re: Subclassing NSToolBar. (From: Ali Ozer <email@hidden>)

  • Prev by Date: Re: Subclassing NSToolBar.
  • Next by Date: Re: NSDocument - when is it a new document?
  • Previous by thread: Re: retainCount
  • Next by thread: Re: Subclassing NSToolBar.
  • Index(es):
    • Date
    • Thread