Re: Hidden file and 64bits Cocoa
Re: Hidden file and 64bits Cocoa
- Subject: Re: Hidden file and 64bits Cocoa
- From: Olivier Tristan <email@hidden>
- Date: Tue, 24 Aug 2010 00:26:44 +0200
You guys just made my day.
Thanks,
On Mon, Aug 23, 2010 at 10:56 PM, James Walker <email@hidden> wrote:
> On 8/23/2010 6:57 AM, Olivier Tristan wrote:
>
>> 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.
>
>
> So what? The UI parts of Carbon didn't make it to 64 bits, but as far as I
> know, FSPathMakeRefWithOptions and LSCopyItemInfoForRef are fine.
> Note that CarbonCore.framework is within CoreServices.framework.
> --
> James W. Walker, Innoventive Software LLC
> <http://www.frameforge3d.com/>
>
--
Olivier Tristan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden