How to set NSButtonCell image and alternate image using InterfaceBuilder
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