• 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: System Preferences behaviour for NSToolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System Preferences behaviour for NSToolbar


  • Subject: Re: System Preferences behaviour for NSToolbar
  • From: Jens Bäckman <email@hidden>
  • Date: Fri, 28 Nov 2003 10:51:35 +0100

On 2003-11-28, at 10.38, j o a r wrote:

Hej,

What is it that you need help with? Adding a toolbar is easy, right? Let's say that you keep an array of views - the preference plugin views. Just hook up the toolbar items to a method that switch to the correct view, and then do [myWindow setContentView: someView]. If you want the animated resize you might have to do a little bit more work, but that's basically all there is to it.
Anything else?

Switching between views is easy. What I don't understand is how to make the toolbar item "selected". Let's say that you press the Show All item. Now, the item will be marked and the view is switched. This behavior was introduced in Panther, btw.
_______________________________________________
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.
  • Follow-Ups:
    • Re: System Preferences behaviour for NSToolbar
      • From: j o a r <email@hidden>
References: 
 >System Preferences behaviour for NSToolbar (From: Jens Bäckman <email@hidden>)
 >Re: System Preferences behaviour for NSToolbar (From: j o a r <email@hidden>)

  • Prev by Date: RE: System Preferences behaviour for NSToolbar
  • Next by Date: Re: System Preferences behaviour for NSToolbar
  • Previous by thread: Re: System Preferences behaviour for NSToolbar
  • Next by thread: Re: System Preferences behaviour for NSToolbar
  • Index(es):
    • Date
    • Thread