FROM : I. Savant
DATE : Thu Jan 10 18:50:17 2008
> I've already got NSTreeController working with NSOutlibeView and
> binding in a non-Core Data app but now I need some advice on how to
> one allow certain file type drops.
NSWorkspace has a method called -typeOfFile:error: ... this will
attempt to give you the Uniform Type Identifier of a given file or an
error explaining why it couldn't. That's better than going by
extension, I'd imagine, though it doesn't seem perfectly robust
itself.
--
I.S.
DATE : Thu Jan 10 18:50:17 2008
> I've already got NSTreeController working with NSOutlibeView and
> binding in a non-Core Data app but now I need some advice on how to
> one allow certain file type drops.
NSWorkspace has a method called -typeOfFile:error: ... this will
attempt to give you the Uniform Type Identifier of a given file or an
error explaining why it couldn't. That's better than going by
extension, I'd imagine, though it doesn't seem perfectly robust
itself.
--
I.S.
| Related mails | Author | Date |
|---|---|---|
| Jonathan Dann | Jan 10, 18:24 | |
| I. Savant | Jan 10, 18:50 |






Cocoa mail archive

