Multiple Document Question
Multiple Document Question
- Subject: Multiple Document Question
- From: Mike Burns <email@hidden>
- Date: Tue, 15 May 2007 11:13:38 -0400
I've begun work on a World Builder-esque application which allows
users to create their own adventure games. (More as a learning
experience than anything.)
Being somewhat new to Cocoa and document-based application, I have a
fundamental question regarding the use of NSDocument. In my
application, the main document is called WBProjectDocument -- it
holds everything in the project and saves it to a .proj file with
NSKeyedArchiver. Now within this project you can create and open
objects, scenes, scene scripts, global scripts, etc. Although all
these things will be saved in the main project file (i.e. I don't
need/want to be able to save a scene as it's own file) I am wondering
what is the proper way to handle these sub-document objects. Should
I create a WBSceneDocument and a WBObjectDocument, or is having more
then one document like that problematic?
Thanks!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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