Re: Can I put UTIs in NSFilesPromisePboardType promise drag array?
Re: Can I put UTIs in NSFilesPromisePboardType promise drag array?
- Subject: Re: Can I put UTIs in NSFilesPromisePboardType promise drag array?
- From: Nathan Vander Wilt <email@hidden>
- Date: Thu, 30 Oct 2008 12:27:29 -0700
So I was reading through the Leopard AppKit release notes today, and
stumbled across the "Support for UTIs in NSView and NSWindow" (a few
sections below http://developer.apple.com/releasenotes/Cocoa/AppKit.html#UTIs)
.
It states:
"NSView's -dragPromisedFilesOfTypes:fromRect:source:slideBack:event:
method now accepts UTIs as type strings, in addition to the sort of
file name extensions that were accepted in Mac OS 10.4."
So it looks like there is NOT any reason to build an
NSFilesPromisePboardType array out of UTIs on 10.5+ after all! I've
filed yet another "why is this only buried in the release notes?!?"
bug on the documentation: rdar://problem/6332711.
thanks,
-natevw
On Oct 1, 2008, at 2:27 PM, Nathan Vander Wilt wrote:
I am initiating a promise drag by adding an array of strings to my
pasteboard using for the NSFilesPromisePboardType. The documentation
states that "the types can be specified as filename extensions or as
HFS file types encoded [as strings]". Is there any reason to not
build an array of UTIs instead?
thanks,
-natevw
_______________________________________________
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