• 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: Quastion about types in a NSPasteBoard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quastion about types in a NSPasteBoard


  • Subject: Re: Quastion about types in a NSPasteBoard
  • From: Graham Cox <email@hidden>
  • Date: Thu, 10 Dec 2009 21:39:49 +1100

On 10/12/2009, at 9:26 PM, Gustavo Pizano wrote:

> I have implemented a drag and drop, and I just wanted to check what I had in the NSPasteBoard on drop...
>
> I checked the types from the NSPasteBoard, and the type I declared when dragging is in the second place of the returning array. in first place it's. something like:
>
> dyn.ah62d4rv4gu8zuz4xkvw0q2pzrv4fq3pwsvy0g2pqnrka
>
> can somebody explain me what's that? can I  safely take the 2 type  in the array  so I can pass it to my AbstractFactory and avoid a bunch of code lines.?


Who can say, without knowing how you've implemented your AbstractFactory?

I'd say what you should do is follow the recommended approach for receiving data from a pasteboard, and request the types you're interested in in the order you want them. That way your code will be unaware of any private data the system has added to pasteboard and so you don't need to care about it.

http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/PasteboardGuide106/Introduction/Introduction.html

--Graham


_______________________________________________

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: Quastion about types in a NSPasteBoard
      • From: Gustavo Pizano <email@hidden>
References: 
 >Quastion about types in a NSPasteBoard (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Quastion about types in a NSPasteBoard
  • Next by Date: Detecting lack of user input system wide.
  • Previous by thread: Quastion about types in a NSPasteBoard
  • Next by thread: Re: Quastion about types in a NSPasteBoard
  • Index(es):
    • Date
    • Thread