Re: Newbie Question about Document/Window/Text Field
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