Re: How to make a NSToolbarItem for view mode a la Finder?
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