• 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
Seemingly Documentation confusion?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Seemingly Documentation confusion?


  • Subject: Seemingly Documentation confusion?
  • From: Michael de Haan <email@hidden>
  • Date: Thu, 29 Oct 2009 04:58:21 -0700

I wonder if someone could explain the following.


In "NSDraggingDestination Protocol Reference (informal protocol)", it states:


"The NSDraggingDestination informal protocol declares methods that the destination object (or recipient) of a dragged image must implement."

 The methods ( which include )

        - prepareForDragOperation:  required method
        - performDragOperation:  required method
        - concludeDragOperation:  required method

are all marked as "required method".



However, in the " Drag and Drop Programming Topics for Cocoa" , in the section " Receiving Drag Operations " the following is noted.

"When the image is dropped with a drag operation other than NSDragOperationNone, the destination is sent a prepareForDragOperation: message followed by performDragOperation: andconcludeDragOperation:. You can cancel the drag by returning NO from either of the first two methods.
You do the bulk of the data handling in the performDragOperation: method; ***the other two methods are implemented only if necessary***." (My emphasis)



In my test app, the latter statement seems to be true ie only "performDragOperation:" seemed necessary to allow the drop.



Is this a contradiction, or my not following exactly what the documentation is saying? (more likely :-) )


_______________________________________________

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: Seemingly Documentation confusion?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: "Could not merge data"-error on save in a single moc app
  • Next by Date: Re: Seemingly Documentation confusion?
  • Previous by thread: re: "Could not merge data"-error on save in a single moc app
  • Next by thread: Re: Seemingly Documentation confusion?
  • Index(es):
    • Date
    • Thread