Re: Not getting filetype info from FSGetcatlogInfo() function
Re: Not getting filetype info from FSGetcatlogInfo() function
- Subject: Re: Not getting filetype info from FSGetcatlogInfo() function
- From: Daniel Jalkut <email@hidden>
- Date: Fri, 6 Jan 2006 10:59:02 -0500
Not necessary - the file can have an extension with no "Mac OS file
type" set.
One workaround for this is, if you have an extension but no file
type, you can ask the system in a roundabout way for the associated
file type and creator. By abusing URLGetFileInfo, from URLAccess:
URLGetFileInfo("\pTest.bmp", &newType, &newCreator)
I'm not sure how long this trick will last but it still works in
10.4. URLGetFileInfo has been deprecated so I am hoping we'll get a
real API for this. Can't remember now whether I've reported a bug but
I will check.
Also, easier than downloading File Buddy or another utility to get
the file type, you can use the command-line tool:
/Developer/Tools//GetFileInfo
Daniel
On Jan 6, 2006, at 6:33 AM, Elango C wrote:
Yes I am not getting "filetype" and "filecreator" for most of the
files, but "FinderFlags" field () is getting filled for all the files;
But for the bitmap or Appilcaitons it should give ".BMP" and "APPL"
right?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden