• 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
File Package without NSDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File Package without NSDocument


  • Subject: File Package without NSDocument
  • From: Carl Norum <email@hidden>
  • Date: Tue, 20 May 2003 19:03:04 -0600

Hi everyone - my current app is going to need file packages (a la RTFD) for its document format. Because of some weird requirements, I don't want to use NSDocument's
fileWrapperRepresentation method, so I am using the readFromFile: and writeToFile: methods.

The problem is that when I create a directory using NSFileManager, it isn't a bundle like I want it to be (shows up as a folder in the finder, instead of using my document icon and being unopenable).

The file behaves properly if I do a "SetFile -a B DOCUMENT" from the command line.

NSFileManager doesn't appear to support the options from SetFile (has bundle, visibility, etc). What should I be looking for?

Thanks a bunch!

--
Carl J Norum
5th Year Electrical Engineering/Computer Science Student
University of Saskatchewan
Saskatoon, Canada

http://norum.homeunix.net/~carl/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: File Package without NSDocument
      • From: Carl Norum <email@hidden>
  • Prev by Date: Re: Speed Traps
  • Next by Date: Re: Speed Traps
  • Previous by thread: Re: try / finally
  • Next by thread: Re: File Package without NSDocument
  • Index(es):
    • Date
    • Thread