• 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: Newbie Question about Document/Window/Text Field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Question about Document/Window/Text Field


  • Subject: Re: Newbie Question about Document/Window/Text Field
  • From: Deirdre Saoirse Moen <email@hidden>
  • Date: Tue, 15 May 2001 17:27:17 -0700

At 12:29 AM +0100 5/16/01, mmalcolm crawford wrote:
What I've got for reading in:
- (BOOL)readFromFile:(NSString *)fileName ofType:(NSString *)docType

Any particular reason for using this (and using writeToFile: ...) rather than:
- (BOOL)loadDataRepresentation:(NSData *)docData
ofType:(NSString *)docType
?

Yes -- because the reading and writing using the NSData types were not stored in plain text, so it was difficult to see if it was being read and/or written correctly. I just simply decided to use a simpler approach. Right now, that works. For my compound model, I needed something fancier.

Have you provided an implementation of lDR?

I can't parse that sentence. :)

Again, right now, I'm not worrying too much (given that I'm writing teensy files) about the finer points of memory management.

Please, don't ever not worry about the finer points of memory management. It *will* bite you, honestly.

http://www.stepwise.com/Articles/Technical/2001-03-11.01.html

I know -- I just wanted it to read and write -- and then polish it. It does that now (thanks Greg!).

As it turns out, I seem to have followed all the rules listed, which is pretty much as I expected (it is a simple app).
--
_Deirdre Stash-o-Matic: http://weirdre.com http://deirdre.net
Macintosh Developer (seeking work): Will work for Cocoa
"I love deadlines. I like the whooshing sound they make as they fly by."
- Douglas Adams


References: 
 >Re: Newbie Question about Document/Window/Text Field (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Newbie Question about Document/Window/Text Field
  • Next by Date: Re: Still having problume with Security API
  • Previous by thread: Re: Newbie Question about Document/Window/Text Field
  • Next by thread: Re: Newbie Question about Document/Window/Text Field
  • Index(es):
    • Date
    • Thread