• 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: How to make a NSToolbarItem for view mode a la Finder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make a NSToolbarItem for view mode a la Finder?


  • Subject: Re: How to make a NSToolbarItem for view mode a la Finder?
  • From: Philip Dow <email@hidden>
  • Date: Mon, 24 Jul 2006 16:02:00 +0200

You don't need to subclass at all unless you need more specific control over enabling/disabling.

Like Savant suggested, use an NSSegmentedControl. You could also use an NSMatrix. Set everything up in Interface Builder and make an outlet for the control. Then as you set up your toolbar, use that - setView method Savant mentioned, passing in your control. You may also want to set a min and max size as well.

-Phil

On Jul 24, 2006, at 12:17 PM, David Chan wrote:

Hi All,

I intend to create an item in my toolbar which is similar to the
toggle buttons for view mode in the Finder. That is, under one
toolbaritem, there are two buttons with different target action. I
know that I have to subclass the view for that toolbaritem, but I am
not sure what to do in the subclass in order to achieve this. Is there
any object I can use? Thank you.

Regards
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How to make a NSToolbarItem for view mode a la Finder? (From: "David Chan" <email@hidden>)

  • Prev by Date: Re: writing huge C-array to a file
  • Next by Date: Custom window with small stoplight
  • Previous by thread: Re: How to make a NSToolbarItem for view mode a la Finder?
  • Next by thread: Best way to create string from an array of dictionaries?
  • Index(es):
    • Date
    • Thread