• 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: NSToolbar Design
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSToolbar Design


  • Subject: Re: NSToolbar Design
  • From: j o a r <email@hidden>
  • Date: Wed, 6 Mar 2002 07:38:55 +0100

On Wednesday, March 6, 2002, at 12:16 , Matthew Cox wrote:

I am curious to know why Apple did not implement NSToolbar and NSToolbarItem as subclasses of NSView. This would seem to allow developers to specialize the functionality of toolbars, as well as modify event behavior. Since neither of those two classes inherit NSView, it would seem that the window displaying them draws the toolbars. Is this so?

No, the window does not draw the toolbar - The toolbar system as a whole contains NSToolbarView and NSToolbarItemViewer classes to do this, but no access to them is provided through the API.

My guess is that Apple, thinking in the Model-View-Controller design pattern, only exposed an interface to the model & controller since this among other things gives them more control over the visual representation of the toolbar. This is something that they might feel is of importance right now, during the introduction of the Aqua UI.

j o a r
_______________________________________________
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.

References: 
 >NSToolbar Design (From: Matthew Cox <email@hidden>)

  • Prev by Date: Re: Parsing strings? File getline?
  • Next by Date: Re: Parsing strings? File getline?
  • Previous by thread: Re: NSToolbar Design
  • Next by thread: Re: NSToolbar Design
  • Index(es):
    • Date
    • Thread