Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSApp and main window



On Sat, 1 Jan 2005 15:14:11 -0500, Coleman Nitroy <email@hidden> said:
>I am working on loading data from a file and putting it all into a data
>model class. So far all works well until I try to get it to work with
>the multiple document format. I have two questions:
>
>How do I make like the "new file" stuff. For example, when I load a
>existing file in, MyDocument handles loading of the data and creates
>the instance of the model data object, then fills it with the proper
>values and such, how do I say "when starting a new document create a
>instance of the model data object and fill it with this..."

I think MyDocument's init is what you are looking for. m.

-- 
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.