Re: Can I put UTIs in NSFilesPromisePboardType promise drag array?

2008-10-30 Thread Nathan Vander Wilt
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

Re: Can I put UTIs in NSFilesPromisePboardType promise drag array?

2008-10-05 Thread Jim Correia
On Oct 5, 2008, at 12:44 AM, Nathan Vander Wilt wrote: I'm not sure what you mean here. The documentation for promise drags says to encode the OSType using NSFileTypeForHFSTypeCode() which in my testing just turns the characters the programmer sees in their source into a string (ie 'uint'

Re: Can I put UTIs in NSFilesPromisePboardType promise drag array?

2008-10-04 Thread Nathan Vander Wilt
On Oct 1, 2008, at 3:09 PM, Jim Correia wrote: On Oct 1, 2008, at 5: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

Re: Can I put UTIs in NSFilesPromisePboardType promise drag array?

2008-10-04 Thread Jim Correia
On Oct 4, 2008, at 10:45 PM, Nathan Vander Wilt wrote: HFS types seem to be well deprecated in nearly every other area, the drag destination guides don't encourage checking the types anyway Can you post a reference? You generally should check the type in the drag, and not offer to accept

Re: Can I put UTIs in NSFilesPromisePboardType promise drag array?

2008-10-04 Thread Nathan Vander Wilt
On Oct 4, 2008, at 8:31 PM, Jim Correia wrote: On Oct 4, 2008, at 10:45 PM, Nathan Vander Wilt wrote: HFS types seem to be well deprecated in nearly every other area, the drag destination guides don't encourage checking the types anyway Can you post a reference? You generally should

Can I put UTIs in NSFilesPromisePboardType promise drag array?

2008-10-01 Thread Nathan Vander Wilt
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