Re: NSButtonCell Ignores Button Type
Re: NSButtonCell Ignores Button Type
- Subject: Re: NSButtonCell Ignores Button Type
- From: Seth Willits <email@hidden>
- Date: Tue, 29 Mar 2005 09:44:28 -0800
On Mar 29, 2005, at 5:29 AM, Stephane Sudre wrote:
I have a bunch of NSButtonCells in an NSMatrix and no matter what I
do, the cells toggle their states when clicked on, despite their
button types being set to NSMomentaryPushInButton. I have looked at
this for an hour and tried a million things, but I can't figure out
why this is happening. I can setup a small test matrix and they work
just fine, but mine refuses to.
Any ideas? I'm tired, desperate, and very cranky.
What is the mode of your NSMatrix? Radio button, list, etc...?
- (id)initWithFrame:(NSRect)frameRect
{
...
[cell setButtonType:NSMomentaryPushInButton];
[super initWithFrame:frameRect mode:NSHighlightModeMatrix
prototype:cell numberOfRows:24 numberOfColumns:3];
...
}
Later I set these again.
--
Seth Willits
_______________________________________________
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