Re: Shift-clicking NSButtonCells?
Re: Shift-clicking NSButtonCells?
- Subject: Re: Shift-clicking NSButtonCells?
- From: PGM <email@hidden>
- Date: Tue, 5 Sep 2006 22:09:28 -0400
Check this link: http://www.cocoabuilder.com/archive/message/cocoa/
2002/6/19/51217 to see how to get a very easy method to check whether
modifier keys are down (requires a tiny bit of Carbon, though). Once
you've done that you can just check in your action method whether the
shift key is down.
-(IBAction)buttonClick:(id)sender
{
if([NSEvent isShiftKeyDown]){
//set the value for a range of cells
}
else{
//do what you normally do on a click (possibly nothing)
}
}
Good luck, Patrick
On 5-Sep-06, at 21:32 PM, Jonathan del Strother wrote:
On 28 Aug 2006, at 23:09, Jonathan del Strother wrote:
I have an NSTableView with a column of NSButtonCells. Is there an
easy way of setting this up so I can shift-click to check/uncheck
a range of NSButtonCells?
No? _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40sympatico.ca
This email sent to email@hidden
_______________________________________________
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