• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Forcing the package bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Forcing the package bit (From: Graham Cox <email@hidden>)
 >Re: Forcing the package bit (From: Neil Allain <email@hidden>)
 >Re: Forcing the package bit (From: Graham Cox <email@hidden>)
 >Re: Forcing the package bit (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSForegroundColorAttributeName without AppKit
  • Next by Date: Re: NSForegroundColorAttributeName without AppKit
  • Previous by thread: Re: Forcing the package bit
  • Next by thread: Re: Forcing the package bit
  • Index(es):
    • Date
    • Thread