• 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
Not getting filetype info from FSGetcatlogInfo() function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Not getting filetype info from FSGetcatlogInfo() function


  • Subject: Not getting filetype info from FSGetcatlogInfo() function
  • From: Elango C <email@hidden>
  • Date: Thu, 5 Jan 2006 12:55:04 +0530

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Not getting filetype info from FSGetcatlogInfo() function
      • From: Scott Ribe <email@hidden>
    • Re: Not getting filetype info from FSGetcatlogInfo() function
      • From: Matt Gough <email@hidden>
    • Re: Not getting filetype info from FSGetcatlogInfo() function
      • From: Diederik Hoogenboom <email@hidden>
  • Prev by Date: sorting with nstreecontroller
  • Next by Date: Re: Observing Collections
  • Previous by thread: Re: sorting with nstreecontroller
  • Next by thread: Re: Not getting filetype info from FSGetcatlogInfo() function
  • Index(es):
    • Date
    • Thread