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 protected])
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 [email protected]