Re: Putting NSToolbar in an NSView...
Re: Putting NSToolbar in an NSView...
- Subject: Re: Putting NSToolbar in an NSView...
- From: Chris Giordano <email@hidden>
- Date: Mon, 29 Jul 2002 10:41:10 -0400
Albert,
I don't believe that you can use an NSToolbar anyplace other than
attached to a window (and only windows with a titlebar, at that). That
doesn't mean you can't roll your own, though.
You might want to take a look at Omni's Preferences subproject in their
OmniAppKit. Their preferences code has an OAPreferencesIconView class
that does approximately what you want to do -- namely, it draws the
icons (you could customize this behavior to draw them at half size),
handles clicks, etc. You would essentially want to just draw one row of
icons where you want them, and tie the actions of the buttons in to
whatever you want them to do. It's not an NSToolbar, but it should do
essentially the same thing.
chris
On Saturday, July 27, 2002, at 11:09 PM, Albert Atkinson wrote:
Hello!
I am needing to put a small NSToolbar on top of my tab pane...I was
wondering if there was any way to do this or if I would have to
subclass something...can anyone help with some sample code or
anything? It does not have to be customizable, just so it looks just
like an NSToolbar only with the icons half the size...
Thanks!
Albert
_______________________________________________
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.
_______________________________________________
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.