Hi,

I'm looking for a way to get the hidden attribute of a file using cocoa as my applications is going to be ported to 64bits. I've took a look to NSFileManager and it do not seems to provide such facility.

I used to do this

|FSRef ref;
OSStatus err = FSPathMakeRefWithOptions(path, kFSPathMakeRefDoNotFollowLeafSymlink, &ref, 0);
if (err == noErr)
{
  LSItemInfoRecord info;
  err = LSCopyItemInfoForRef(&ref, kLSRequestBasicFlagsOnly, &info);
  if (err == noErr)
  {
    return ((info.flags & kLSItemInfoIsInvisible) != 0);
  }
}
return false;|

but this code required Carbon as far as I know.

Any idea ?

Thanks,

--
Olivier Tristan
Ultimate Sound Bank

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to