Re: Drag and drop
Re: Drag and drop
- Subject: Re: Drag and drop
- From: Stephen Chu <email@hidden>
- Date: Thu, 17 Nov 2005 09:45:07 -0500
On Nov 17, 2005, at 4:07 AM, Jerry wrote:
On 17 Nov 2005, at 08:52, Cameron Hayne wrote:
On 17-Nov-05, at 3:11 AM, Ed Gronenschild wrote:
I just made the transition from Codewarrior to XCode 2.2 and the
first
thing I noticed was that the Editor is not capable of performing
drag and drop. Is this indeed not possible or do I need to set
a flag somewhere?
Ii suspect that perhaps what you are encountering is the
difference in the way that text-dragging works between Carbon and
Cocoa. In a Cocoa app (e.g. XCode), to drag a few words of text:
you select them, then release the mouse button, click on the
selected text and keep the mouse still for a fraction of a second,
and then you drag.
It is the fraction of a second keeping the mouse still that you
are missing.
Is there any way to change this behaviour? I prefer the CodeWarrior
method - I get loads of failed drags in XCode because the delay
seems to be quite variable.
Also, when dragging in the project file list you may have to hold
the mouse button down for several seconds before dragging starts.
This is really frustrating when you're trying to drag groups of
files into build phases.
I've been bothered by this idiotic text drag delay ever since OS X
first came out. But until I started using XCode recently, I tolerated
it. Not any more now that I was angered by it almost everyday and
wanted to smash the screen...
OK. Enough for the rant. I did find a fix for it thought: Open your
com.apple.Xcode.plist in Property List Editor. Find the entry named
"NSDragAndDropTextDelay" and set it to "1". It controls the delay
time in mS. But DO NOT set it to "0". It doesn't work the same way
our typical logic does. Zero means completely disable text drag and
drop.
You can also achieve the same thing with "defaults write
com.apple.Xcode NSDragAndDropTextDelay -int 1" Terminal command.
I found the tip here: <http://hetima.com/xtip/000001.html>
--
Stephen Chu <mailto:email@hidden>
Rampage Systems, Inc. <http://www.rampageinc.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden