• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Not getting filetype info from FSGetcatlogInfo() function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Not getting filetype info from FSGetcatlogInfo() function (From: Elango C <email@hidden>)
 >Re: Not getting filetype info from FSGetcatlogInfo() function (From: Diederik Hoogenboom <email@hidden>)
 >Re: Not getting filetype info from FSGetcatlogInfo() function (From: Elango C <email@hidden>)
 >Re: Not getting filetype info from FSGetcatlogInfo() function (From: Diederik Hoogenboom <email@hidden>)
 >Re: Not getting filetype info from FSGetcatlogInfo() function (From: Elango C <email@hidden>)

  • Prev by Date: Checkbox Array and Bindings
  • Next by Date: Re: NSSearchField - detect loss of focus
  • Previous by thread: Re: Not getting filetype info from FSGetcatlogInfo() function
  • Next by thread: Re: Not getting filetype info from FSGetcatlogInfo() function
  • Index(es):
    • Date
    • Thread