• 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: Elango C <email@hidden>
  • Date: Fri, 6 Jan 2006 15:13:58 +0530

Diederik,

I tried with (kFSCatInfoGettableInfo | kFSCatInfoFinderInfo) but no luck.

--Elango

On 1/6/06, Diederik Hoogenboom <email@hidden> wrote:
> 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: Diederik Hoogenboom <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>)

  • Prev by Date: Converting Int Binary to Char String
  • Next by Date: Any idea for One time authorization....
  • 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