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: 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