• 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
Re: Shift-clicking NSButtonCells?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Shift-clicking NSButtonCells? (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: Selection marquees (rubberband selection?)
  • Next by Date: Re: Unconventional memory leak problem
  • Previous by thread: Re: Shift-clicking NSButtonCells?
  • Next by thread: Selection marquees (rubberband selection?)
  • Index(es):
    • Date
    • Thread