Home » Code

JLNDragEffectManager

25 November 2009 707 views One Comment

Cocoa developers were treated to a nice Interface Builder makeover in version 3. One effect we’ve all been admiring is dragging an item from the Library palette onto a window. It’s actually not too hard and just takes a little showmanship. In this post Joshua Nozzi shows  you how it’s done and provides sample code.

Read it and get code here

One Comment »

  • Joshua Nozzi said:

    Hi, all. Very impressive turnout – seems I was right in guessing lots of Cocoa developers would love to know how this works. Even bad enough to brave the scary drag queen. :-)

    I have a followup post of which you might not be aware. It shows how I used this code to provide excellent UI feedback when creating a new document from dragged rows in a table:

    http://joshua.nozzi.name/2009/11/drag-effect-in-action/

    I hope this “giving back” effort helps some of you.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.