• 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: What am I doing wrong with creating a package?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What am I doing wrong with creating a package?


  • Subject: Re: What am I doing wrong with creating a package?
  • From: "Joe Goh" <email@hidden>
  • Date: Fri, 3 Nov 2006 16:57:30 +0800

On 11/3/06, Joe Goh <email@hidden> wrote:
I then try to create a directory using this code:

[[NSFileManager defaultManager] createDirectoryAtPath:directoryPath
attributes:nil]; // directoryPath being an NSString to the path where
the directory will be created

All that's being shown in the Finder is a normal directory.

Found the solution to this problem! Packages cannot be created using createDirectoryAtPath: and must be created using the initDirectoryWithFileWrappers: method in NSFileWrapper apparently.

Joe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >What am I doing wrong with creating a package? (From: "Joe Goh" <email@hidden>)

  • Prev by Date: Re: Invisible Characters & Specifying Their "Width"
  • Next by Date: Re: Copyright Violations using Apple Icons in own Applications?
  • Previous by thread: What am I doing wrong with creating a package?
  • Next by thread: Timeline View
  • Index(es):
    • Date
    • Thread