• 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
Problem with NSAlternateKeyMask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with NSAlternateKeyMask


  • Subject: Problem with NSAlternateKeyMask
  • From: Christopher Drum <email@hidden>
  • Date: Wed, 19 Jan 2005 14:28:02 -0800

I have a custom view that allows drag and drop from it into a text editor. I am implementing a system by which different modifier keys affect the formatting of the text that is dragged. So far, a straight drag and drop does what I have defined, holding down Command does a different formatting and holding down Command + Option creates a third formatting option. I need one more formatting option, so I tried to implement it by holding down only the Option key. However, holding down option and doing the drag from my application is snapped back by the receiving text editor. If I temporarily change the code in question to trigger by just the Command key, it works fine. So, I know something is going onto the clipboard during the drag and that it's formatting properly. I just can't figure out why Option by itself as a modifier to the drag and drop is refused by a text editor. If I Option-drag from XCode into TextEdit, it seems to work just fine. So, clearly this action is allowed between applications.

What would prevent NSAlternateKeyMask from performing a task that NSCommandKeyMask handles perfectly?


------------------------------------------------------------------ Christopher Drum http://homepage.mac.com/christopherdrum

Check out FileWrangler, my five-star rated (MacUpdate, VersionTracker) Cocoa app written in Objective-C for the batch renaming of files.

_______________________________________________
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


  • Follow-Ups:
    • Re: Problem with NSAlternateKeyMask
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: Dynamic menu for document-based app? (SOLVED)
  • Next by Date: Re: Binding a text field's editable binding to a matrix
  • Previous by thread: Re: Re: NSURLConnection Certificate Problem
  • Next by thread: Re: Problem with NSAlternateKeyMask
  • Index(es):
    • Date
    • Thread