• 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
Path of least resistance with NSDocument.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Path of least resistance with NSDocument.


  • Subject: Path of least resistance with NSDocument.
  • From: "John C. Randolph" <email@hidden>
  • Date: Mon, 20 Aug 2001 07:03:00 -0700

I'm working on an NSDocument-based app, that accumulates data in a temporary file, and I'm doing this:

- (NSData *)dataRepresentationOfType:(NSString *)type
{
return [NSData dataWithContentsOfFile:tempPath];
}

to let the user save the file.

Now, taking this route, is there any way for me to set the file extension and the HFS type code, or do I have to abandon this approach and implement - writeToFile:ofType: instead?

Isn't there some property list or something I

-jcr

"This is not a book to be tossed aside lightly. Rather, it should be hurled with great force." -Dorothy Parker


  • Follow-Ups:
    • Re: Path of least resistance with NSDocument.
      • From: Vince DeMarco <email@hidden>
  • Prev by Date: Re: FIFOs.
  • Next by Date: How to check a given input?
  • Previous by thread: Re: NSOutline view with draggable/reorderable items?
  • Next by thread: Re: Path of least resistance with NSDocument.
  • Index(es):
    • Date
    • Thread