Re: Proper UTI for accepting files dropped on my table view?
Re: Proper UTI for accepting files dropped on my table view?
- Subject: Re: Proper UTI for accepting files dropped on my table view?
- From: Rick Mann <email@hidden>
- Date: Tue, 10 Aug 2010 00:04:27 -0700
Thanks, Kyle. Wow, the sure made it wordy to use.
On Aug 9, 2010, at 23:59:45, Kyle Sluder wrote:
> On Mon, Aug 9, 2010 at 11:53 PM, Rick Mann <email@hidden> wrote:
>> From that I can only get an NSPasteboard, as far as I can tell.
>
> 10.6 has a new pasteboard API based around NSPasteboardItem and
> protocols like NSPasteboardReading that natively understands multiple
> objects and URLs. You might have better luck using that API.
>
> Specifically, the Pasteboard Programming Guide has a section on using
> the new API with file URLs:
> http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/PasteboardGuide106/Articles/pbReading.html#//apple_ref/doc/uid/TP40008123-SW5
>
>> I pretty much followed Apple direction to get to this point. If there's a more modern pasteboard, they should mention it in the old pasteboard docs.
>
> They do in the Pasteboard Programming Guide, but it looks like some of
> the API reference hasn't been updated to point at the new API. The old
> API apparently hasn't been officially deprecated yet. *sigh* Also, see
> the pasteboard video from WWDC09. It's also got an awesome song at the
> end. :)
>
> In the meantime, file bugs on the documentation for methods like
> -propertyListForType:; maybe they'll be willing to put a note in there
> about the new API.
>
> --Kyle Sluder
_______________________________________________
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