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

What am I doing wrong with creating a package?


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

Hi everyone,

I'm trying to create a package as a document format for my app.  Its
going to contain an index file and a bunch of files in another
directory within the package directory, and I intend to use a flat
directory structure (sort of like how .rtfd files work).

I've tried using the instructions here:
http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBundles/Concepts/DocumentBundles.html#//apple_ref/doc/uid/20002128
, but they don't seem to work.

I have included the following keys into the Info.plist file in my test app:

	<key>CFBundleDocumentTypes</key>
	<array>
		<dict>
			<key>CFBundleTypeExtensions</key>
			<array>
				<string>foobar</string>
			</array>
			<key>CFBundleTypeIconFile</key>
			<string>someicon.icns</string>
			<key>CFBundleTypeName</key>
			<string>Foo Bar</string>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>LSTypeIsPackage</key>
			<true/>
		</dict>
	</array>

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.

What am I missing out here?  Hints anyone?

Thanks!
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


  • Follow-Ups:
    • Re: What am I doing wrong with creating a package?
      • From: "Joe Goh" <email@hidden>
  • Prev by Date: Re: Open my Application via safari
  • Next by Date: Re: Open my Application via safari
  • Previous by thread: Re: Pointers and NSImages
  • Next by thread: Re: What am I doing wrong with creating a package?
  • Index(es):
    • Date
    • Thread