• 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: beginner's question: having problems with saving/loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: beginner's question: having problems with saving/loading
  • From: Gabriel Roth <email@hidden>
  • Date: Tue, 12 May 2009 17:48:15 -0400

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 (large) gaps
in my understanding.

gr.





On Tue, May 12, 2009 at 4:10 PM, mmalc Crawford <email@hidden> wrote:
>
> 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 encoding/archiving this object.
> You're combining a model and a controller object.
>
> Given that you have a document class (which serves as a controller), there
> shouldn't be any need for an additional AppController class.
> If you want to save a string in a document-based application, then implement
> the relevant NSDocument methods (e.g. dataOfType:error:).
>
> You should review the Document-Based Applications Guide, in particular
> <http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/Concepts/RolesOfDocObjects.html>.
> Review also
> <http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html#//apple_ref/doc/uid/TP40002974-CH6-SW1>.
>
> mmalc
>
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >beginner's question: having problems with saving/loading (From: Gabriel Roth <email@hidden>)
 >Re: beginner's question: having problems with saving/loading (From: mmalc Crawford <email@hidden>)

  • Prev by Date: struggling with binding, NSOutlineView, and NSTableView
  • Next by Date: Core Data Problem: Creating a child object creates unwanted parent
  • Previous by thread: Re: beginner's question: having problems with saving/loading
  • Next by thread: instance management in IB
  • Index(es):
    • Date
    • Thread