• 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: NSButton with image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButton with image


  • Subject: Re: NSButton with image
  • From: Graham Cox <email@hidden>
  • Date: Mon, 14 Jun 2010 22:55:33 +1000

On 14/06/2010, at 10:46 PM, Adam Gerson wrote:

> If all I want is an image that acts like a button, do I need to
> subclass NSButton? I just want my button to show only my image and no
> "Apple" style button backgrounds.

You don't need to subclass, and it can be set in IB.

Set the image (by name). Set the 'Position' to icon only, no text (second option from left in array of position buttons), and uncheck 'bordered'.

--Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSButton with image (From: Adam Gerson <email@hidden>)

  • Prev by Date: Re: NSButton with image
  • Next by Date: Re: NSButton with image
  • Previous by thread: Re: NSButton with image
  • Next by thread: Re: NSButton with image
  • Index(es):
    • Date
    • Thread