Re: Invisible files (was Re: Small problem)
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.