Re: Forcing the package bit
Re: Forcing the package bit
- Subject: Re: Forcing the package bit
- From: Ken Thomases <email@hidden>
- Date: Mon, 1 Mar 2010 21:39:00 -0600
On Mar 1, 2010, at 9:06 PM, Graham Cox wrote:
> [[NSFileManager defaultManager] setAttributes:[[self class] defaultFileAttributes] ofItemAtPath:[self path] error:&error];
>
> Where the default attributes are:
>
> + (NSDictionary*) defaultFileAttributes
> {
> return [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], NSFileExtensionHidden, nil];
> }
>
> But the extension is not hidden. Opening Get Info in the Finder, the "hide extension" checkbox is greyed out, though is is checked, as if the extension were hidden.
>
> Any idea what's going on there?
No, but you might try LSSetExtensionHiddenForURL(), instead.
Cheers,
Ken
_______________________________________________
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