• 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: Invisible files (was Re: Small problem)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invisible files (was Re: Small problem)


  • Subject: Re: Invisible files (was Re: Small problem)
  • From: Matt Gough <email@hidden>
  • Date: Sat, 14 Jun 2003 23:58:51 +0100

> status = FSGetCatalogInfo(&fsRef, kFSCatInfoNone, NULL, NULL,
> &fsSpec, NULL);
>
> FInfo fInfo;
>
> OSStatus err = FSpGetFInfo(&fsSpec, &fInfo);


This section is a non-optimal use of the carbon file manager as you can get
FSGetCatalogInfo to return the FileInfo directly and not bother asking it to
coerce the FSRef into an FSSpec:

I.e

FSCatalogInfo catInfo;

FSGetCatalogInfo( &fsRef, kFSCatInfoFinderInfo, &catInfo, nil, nil, nil);

BOOL invisibleFlag = ((FileInfo*)&catInfo.finderInfo)->finderFlags &
kIsInvisible;



(The above was not compiled and done from memory)

Matt Gough
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Invisible files (was Re: Small problem) (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: Cocoa's custom class delegate conventions
  • Next by Date: Re: Subclass
  • Previous by thread: Re: Invisible files (was Re: Small problem)
  • Next by thread: Re: Invisible files (was Re: Small problem)
  • Index(es):
    • Date
    • Thread