Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: NSMatrix Question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMatrix Question...



On Jun 29, 2004, at 9:34 PM, Jerry LeVan wrote:

I have an NSMatrix of subclassed NSImageCells. The matrix is
setup in radiobutton mode so my action will be called when
a cell is clicked.

Is there any way I can keep the selected cell highlighted when
clicking on the rascal?

You could change your NSImageCells to NSButtonCells, then by setting up the NSMatrix as an NSRadioModeMatrix, it should handle the highlighting for you.

In the awakeFromNib:

[theNSMatrix setMode:NSRadioModeMatrix];

It might be less work.

Stephen Norum
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >NSMatrix Question... (From: Jerry LeVan <email@hidden>)
 >Re: NSMatrix Question... (From: "Mark A. Stratman" <email@hidden>)
 >Re: NSMatrix Question... (From: Jerry LeVan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.