Re: multiple documents, single window
Re: multiple documents, single window
- Subject: Re: multiple documents, single window
- From: Oliver Cameron <email@hidden>
- Date: Fri, 8 Oct 2004 18:38:02 +0100
Hey
Im currently in the middle of doing something similar. I, at first
tried to use NSDocument and extend it to make it possible, but it just
never worked how I wanted. So I am now in the process or not using
NSDocument at all, and using NSWindowController to control the windows.
The things NSDocument provides aren't too difficult to implement, just
takes a bit of work to piece it together. In the end, I know I'll have
a much more flexible system, and in probably a lot less code.
Thanks,
Oliver
On 8 Oct 2004, at 17:33, Brendan Younger wrote:
Essentially, you'll need to override -makeWindowControllers in your
NSDocument and somehow find the correct window controller for your
document. You'll probably also have to override -setDocument in
NSWindowController, probably making it a no-op, otherwise the document
architecture will get confused. Other than that, though, it should be
doable.
As for those who think this is "highly unusual", I personally think
it's a travesty that the document architecture doesn't make it easier
to do this.
Brendan
On Oct 8, 2004, at 6:04 AM, 陳銘崧 a.k.a. James Chen wrote:
On Oct 8, 2004, at 2:15 PM, Jacob Lukas wrote:
I am designing a document-based application, and I wish for the user
to be able to have more than one document in a single window. I
really don't know where to start. Is there a good tutorial on this
sort of thing?
Thanks for any sort of kick in the right direction
Jacob _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (Cocoa-dev@ .apple.com)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden