• 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
Re: Drag and drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Drag and drop
      • From: James Bucanek <email@hidden>
References: 
 >Drag and drop (From: Ed Gronenschild <email@hidden>)
 >Re: Drag and drop (From: Cameron Hayne <email@hidden>)
 >Re: Drag and drop (From: Jerry <email@hidden>)

  • Prev by Date: Re: xcode 2.2 beachball of death
  • Next by Date: Fwd: g++ 4 & MACOSX_DEPLOYMENT_TARGET=10.2
  • Previous by thread: Re: Drag and drop
  • Next by thread: Re: Drag and drop
  • Index(es):
    • Date
    • Thread