Re: Problem with NSAlternateKeyMask
Re: Problem with NSAlternateKeyMask
- Subject: Re: Problem with NSAlternateKeyMask
- From: Ricky Sharp <email@hidden>
- Date: Wed, 19 Jan 2005 17:18:51 -0600
On Jan 19, 2005, at 4:28 PM, Christopher Drum wrote:
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?
option-drag is typically reserved for copy operations. For example,
try option-dragging an item from within Finder. It will ultimately
duplicate the item.
Instead of using option as a modifier, how about using Shift?
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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