• 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
How to set NSButtonCell image and alternate image using InterfaceBuilder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to set NSButtonCell image and alternate image using InterfaceBuilder


  • Subject: How to set NSButtonCell image and alternate image using InterfaceBuilder
  • From: Peter Teeson <email@hidden>
  • Date: Fri, 15 Mar 2013 15:31:44 -0400

Lion 10.7.5, Xcode 4.5.2

I have sub-classed an NSMatrix and populated it with sub-classed NSButtonCells.

Is there a way to set the image and alternate image of an NSButtonCell using IB?
In particular an NSPushOnPushOff type that is style Square?

I have set the Title and AlternateTitle using IB. But can't find out how to set the images using IB.

The attributes Inspector for a NSButtonCell and for an NSButton both show fields for those images.

The NSSetImage method is inherited from NSCell and the NSSetAlternateImage method seems to be an implementation just for the NSButtonCell class.
There is an NSSetAlternateImage in NSButton but NSButtonCell does not inherit from that.

Certainly I can do it programatically but I would like to know if it can be done in IB.

TIA

Peter







 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to set NSButtonCell image and alternate image using InterfaceBuilder
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Enabling AddressSanitizer from Xcode
  • Next by Date: Re: How to set NSButtonCell image and alternate image using InterfaceBuilder
  • Previous by thread: Re: using an iOS dev certificate for multiple users
  • Next by thread: Re: How to set NSButtonCell image and alternate image using InterfaceBuilder
  • Index(es):
    • Date
    • Thread