• 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: Putting NSToolbar in an NSView...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Putting NSToolbar in an NSView... (From: Albert Atkinson <email@hidden>)

  • Prev by Date: Re: NSUserDefaults, an array, and SIGBUS 10
  • Next by Date: Re: NSUserDefaults, an array, and SIGBUS 10
  • Previous by thread: Putting NSToolbar in an NSView...
  • Next by thread: Is there a convention...
  • Index(es):
    • Date
    • Thread