Re: beginner's question: having problems with saving/loading

2009-05-13 Thread Gabriel Roth
Many thanks to Graham, Gunnar, and mmalc for your time. I will study and learn from your comments. Since Gunnar mentioned it: I'm currently working through the first half of Hillegass's book. I assigned myself this exercise to clarify encoding and archiving; it seems to have revealed other

Re: beginner's question: having problems with saving/loading

2009-05-12 Thread Gunnar Proppe
To: Cocoa-dev@lists.apple.com Sent: Monday, May 11, 2009 12:42:01 PM Subject: beginner's question: having problems with saving/loading In my attempt to learn Cocoa programming, I’m working on a tiny app to practice saving and loading files. Each document window contains a text field, a label

Re: beginner's question: having problems with saving/loading

2009-05-12 Thread mmalc Crawford
On May 11, 2009, at 12:42 PM, Gabriel Roth wrote: The app contains just one class (besides MyDocument), called AppController. The code for AppController is pasted below, followed by console output. Apart from issues others have already identified: You almost certainly shouldn't be

Re: beginner's question: having problems with saving/loading

2009-05-11 Thread Graham Cox
On 12/05/2009, at 5:42 AM, Gabriel Roth wrote: I don’t know what’s calling the generic init method So, set a breakpoint on it and have a look. It sounds like you may have two instances of app controller being made, maybe one from code and the other from a nib. Maybe. Your memory