• 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: Custom NSToolbarItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Custom NSToolbarItem
      • From: "Colin O'Connor" <email@hidden>
References: 
 >Custom NSToolbarItem (From: "Colin O'Connor" <email@hidden>)

  • Prev by Date: Question about NSImage and NSImageView
  • Next by Date: Re: [Proposal] On-the-fly NIB localization
  • Previous by thread: Custom NSToolbarItem
  • Next by thread: Re: Custom NSToolbarItem
  • Index(es):
    • Date
    • Thread