Re: Invisible Files (email@hidden)
Re: Invisible Files (email@hidden)
- Subject: Re: Invisible Files (email@hidden)
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 07 Feb 2003 23:43:02 +0100
I had the sale problem not long time ago.
You don't have other choice than use Carbon.
For exmple
- (BOOL)IsVisible:(NSString *)chem
{
NSURL *tNSURL;
FSRef tFileRef;
FSCatalogInfo tInfo;
FInfo tFinderInfo;
FSCatalogInfoBitmap tBitmapInfo;
if ([[NSString stringWithString:[chem lastPathComponent]]
characterAtIndex:0] =='.')
return NO;
tNSURL=[NSURL fileURLWithPath:chem];
if (true==CFURLGetFSRef((CFURLRef) tNSURL, &tFileRef))
{
tBitmapInfo= kFSCatInfoFinderInfo;
if
(noErr==FSGetCatalogInfo(&tFileRef,tBitmapInfo,&tInfo,NULL,NULL,NULL))
{
BlockMoveData(&tInfo.finderInfo,&
tFinderInfo,16*sizeof(unsigned
char));
if ((tFinderInfo .fdFlags &
kIsInvisible)== kIsInvisible)
{
return NO;
}
else
{
return YES;
}
}
else
{
return YES;
}
}
return YES;
}
_______________________________________________
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.