Re: Custom NSToolbarItem
Re: Custom NSToolbarItem
- Subject: Re: Custom NSToolbarItem
- From: The Karl Adam <email@hidden>
- Date: Mon, 15 Nov 2004 22:24:00 -0500
In order for this to work you need to init your view(button) with the
correct rect size dimension and make sure to set NSToolbarItem's
maxSize and minSIze so that the view has an area to draw into. Also
what you want is very possible as I have done it myself in an app I am
writing.
-Karl
On Mon, 15 Nov 2004 21:22:17 -0500, Colin O'Connor
<email@hidden> wrote:
> I want to use an NSToolbar to switch views of my application (like is done
> in System Prefs, and many other apps), but I also want to include a couple
> NSButtons in the toolbar. My attempts to do so have been unsuccessful thus
> far.
>
> Is it possible to have an NSToolbar with both selectable items (like the
> standard Config, Save, etc.) and items that act as if they weren't in a
> toolbar (like the NSButton)? Is so, can you point me in the direction? I
> tried adding a button using setView: but that didn't work.
>
> Thanks,
> Colin
>
> _______________________________________________
> 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