Mailing Lists: Apple Mailing Lists

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

Multi document: design question



Hi List,

I've just started with a simple database application, to learn Cocoa more deeply. (I did already some simple Cocoa stuff).

I want to edit documents. So for the model I thought about document manager (represented through a main window), that can create new and open existing documents (document windows). These documents are "generic documents" referenced through ID and composed on the fly from database.

I read about and would like to use multi document support, because of the all advantages. But as I understood, I have to subclass NSDocumentController, since the default one is designed to work with files only?

So here are my questions:

What are the issues I have to pay attention to?
Are there any examples, how to subclass a NSDocumentController?
Are there any examples, that shows NSDocumentController subclass working with "generic" documents?
Or would it be simpler to write my own document manager?


Best regards,
Alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.



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.