NSToolbar Design
NSToolbar Design
- Subject: NSToolbar Design
- From: Matthew Cox <email@hidden>
- Date: Tue, 5 Mar 2002 18:16:07 -0500
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?
If toolbars inherited classes like NSView and NSResponder, the toolbar
itself could be modified to allow, for example, them to act as
destinations for drag & drop. Or they could be graphically modified to
insert a silk screened image onto the piping.
So, why is NSToolbar implemented as a direct descendent of NSObject, and
is there a workaround to specialize the event handling and appearance of
toolbars?
_______________________________________________
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.