• 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
Delete key and panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Delete key and panther
      • From: Brian Webster <email@hidden>
  • Prev by Date: Re: itunes for windows HOWTO ???
  • Next by Date: Re: itunes for windows HOWTO ???
  • Previous by thread: NSWorkSpace openFile does not open file
  • Next by thread: Re: Delete key and panther
  • Index(es):
    • Date
    • Thread