Delete key and panther
Delete key and panther
- Subject: Delete key and panther
- From: Rosyna <email@hidden>
- Date: Mon, 10 Nov 2003 21:37:11 -0700
I'm overriding the sendEvent: method in an NSTableView subclass to do
some delete key handling. I want to delete the selected item when the
delete key is pressed. I do this by checking the key against
NSDeleteCharacter (unichar key = [[event charactersIgnoringModifiers]
characterAtIndex:0];) and making sure the event modifier flags are 0.
In Jaguar, this worked fine but now in panther the modifierFlags
method on NSEvent is returning 256 (1<<8).
What modifier flag is 256 and why is it being returned instead of 0
when no modifiers are being pressed?
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
---
Please include any previous correspondence in replies, it helps me
remember what we were talking about. Thanks.
_______________________________________________
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.