• 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
Modifier keys and panther...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modifier keys and panther...


  • Subject: Modifier keys and panther...
  • From: Jiva DeVoe <email@hidden>
  • Date: Tue, 16 Dec 2003 11:13:34 -0700

I'm having a strange problem with modifier keys. I have an NSView that
looks for the mouse down event, when the event comes in it seems to
always have the shift modifier. Here's the code.

-(void)mouseDown:(NSEvent *)event
{
if([event modifierFlags] && NSShiftKeyMask)
[self addToSelection:[self convertPoint:[event
locationInWindow] fromView:nil]];
else
[self selectCardAt:[self convertPoint:[event
locationInWindow] fromView:nil]];
}

This worked fine under Jaguar seems to have only started happening in
panther. In the debugger, the [event modifierFlags] comes back as
256.

What am I doing wrong? Or, if I am not doing anything wrong, anyone
have any clues? If you see this code and say "That's correct" please
let me know that too, so I won't wonder.

--
Jiva DeVoe
jiva at devoesquared.com
http://www.devoesquared.com

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.

  • Follow-Ups:
    • Re: Modifier keys and panther...
      • From: Stéphane Sudre <email@hidden>
    • Re: Modifier keys and panther...
      • From: Fabian Lidman <email@hidden>
  • Prev by Date: Changing the Locale for a single App?
  • Next by Date: NSFont system help or documentation needed
  • Previous by thread: Re: Changing the Locale for a single App?
  • Next by thread: Re: Modifier keys and panther...
  • Index(es):
    • Date
    • Thread