Re: NSToolbar Design
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.