Re: UTI Example

2008-08-23 Thread Jonathan Dann
Reposted due to 25KB size limit. Sorry. On 23 Aug 2008, at 06:42, Adam Thorsen wrote: Are there any examples of using the UTI API to determine the UTI given a path to a file? Thanks, -Adam In my app I have a singleton UTI controller class that has an NSArray property of UTIs supported by

Re: UTI Example

2008-08-22 Thread Adam R. Maxwell
On Aug 22, 2008, at 10:42 PM, Adam Thorsen wrote: Are there any examples of using the UTI API to determine the UTI given a path to a file? On 10.4 and later, use LSCopyItemAttribute: FSRef fileRef; /* assuming valid fileRef */ CFStringRef theUTI; LSCopyItemAttribute(&fileRef, kLSRolesAll, k

UTI Example

2008-08-22 Thread Adam Thorsen
Are there any examples of using the UTI API to determine the UTI given a path to a file? Thanks, -Adam ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators