Re: [solved, really!] Re: Human readable file type?
Re: [solved, really!] Re: Human readable file type?
- Subject: Re: [solved, really!] Re: Human readable file type?
- From: Allan Odgaard <email@hidden>
- Date: Sun, 7 Jul 2002 18:07:23 +0200
On sxndag, juli 7, 2002, at 05:43 , Finlay Dobbie wrote:
To avoid CoreServices you could do:
- (NSString *)humanReadableFiletype:(NSString *)path
{
NSString *res;
LSCopyItemInfoForURL( (CFURLRef)[NSURL fileURLWithPath:path],
(CFStringRef *)&res );
return [res autorelease];
}
Ahh... after some speculations I see that it should be
LSCopyKindStringForURL() instead... thanks!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.