• 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: "I. Savant" <email@hidden>
  • Date: Mon, 24 Jul 2006 08:22:58 -0400

David:

The easiest approach is to use an NSSegmentedControl. Read the documentation on that, NSToolbar, and NSToolbarItem (paying particular attention to the -setView: method in NSToolbarItem). That should get you going.

--
I.S.


On Jul 24, 2006, at 6:17 AM, 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:
40gmail.com


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: Finder-like color label menu item in Cocoa?
  • Next by Date: Re: Application upgrades itself?
  • Previous by thread: How to make a NSToolbarItem for view mode a la Finder?
  • Next by thread: Re: How to make a NSToolbarItem for view mode a la Finder?
  • Index(es):
    • Date
    • Thread