• 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 in Same View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag and Drop in Same View


  • Subject: Re: Drag and Drop in Same View
  • From: email@hidden
  • Date: Sun, 19 Sep 2010 20:43:40 -0600

Sorry ... I did not say I had done that as follows:

[self registerForDraggedTypes:[NSArray arrayWithObjects:NSDragPboard, nil]];



On Sep 19, 2010, at 7:19 PM, Raleigh Ledet wrote:

You need to register as a dragging destination for your dragging type:
-registerForDraggedTypes:

http://developer.apple.com/library/mac/#documentation/Cocoa/ Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html #//apple_ref/occ/instm/NSView/registerForDraggedTypes:

-raleigh

On Sep 19, 2010, at 5:08 PM, email@hidden wrote:

I do 	

dragImage:at:offset:event:pasteboard:source:slideBack:

in a view's mouseDragged method.

The view also implements all the correct methods for dragging as outlined in the example Erik Buck referred to. These dragging methods are never called. So what must be done to Drop in the view that originates the Drag?

It this possible?

-koko



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Drag and Drop in Same View
      • From: Raleigh Ledet <email@hidden>
References: 
 >Drag and Drop in Same View (From: email@hidden)
 >Re: Drag and Drop in Same View (From: Raleigh Ledet <email@hidden>)

  • Prev by Date: Re: Drag and Drop in Same View
  • Next by Date: Re: Drag and Drop in Same View
  • Previous by thread: Re: Drag and Drop in Same View
  • Next by thread: Re: Drag and Drop in Same View
  • Index(es):
    • Date
    • Thread