• 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: Diederik Hoogenboom <email@hidden>
  • Date: Fri, 6 Jan 2006 09:59:57 +0100

Elango,


Use kFSCatInfoGettableInfo instead of kFSCatInfoNone. If you only want the filetype then kFSCatInfoFinderInfo should be sufficient,though.




Diederik


On 5-jan-2006, at 8:25, Elango C wrote:

Hi,

I want to check the file type for my filter operation.  I have
implemented a code which will iterate a files folder in a specific
volume/partition.  For filtering the files I just implemented
following.

FileInfo			*fileInfo = NULL;
enumDir =  FSGetCatalogInfoBulk(iterator, 255, &actualObjects,
&containerChanged, kFSCatInfoNone, NULL, newSrcFSRefs, NULL, NULL);
           for (i = 0; i < actualObjects; i++)
{
     memset(&catalogInfo, 0, sizeof(catalogInfo));
     osErr = FSGetCatalogInfo (&newSrcFSRefs[i],
kFSCatInfoGettableInfo,  &catalogInfo, &outName, NULL, NULL);
      fileInfo = (FileInfo *) catalogInfo.finderInfo;
      fileInfo->fileType;  // It has to return ICNS or APPL
			   // based on the file type
}

But the fileinfo->filetype is not having anything.

Am I doing anything wrong... Can any body has the solution for this.

Regards,
Elango C
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40hoogenboom.be


This email sent to email@hidden


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

  • Prev by Date: Crash in _blinkCaretTimerAction (NSTextView)
  • Next by Date: Converting Int Binary to Char String
  • Previous by thread: Not getting filetype info from FSGetcatlogInfo() function
  • Next by thread: Re: Not getting filetype info from FSGetcatlogInfo() function
  • Index(es):
    • Date
    • Thread