Re: Secondary doc window connection [SOLVED]
Re: Secondary doc window connection [SOLVED]
- Subject: Re: Secondary doc window connection [SOLVED]
- From: Justin Lundy <email@hidden>
- Date: Tue, 25 Mar 2003 10:26:34 -0800
Stupid me. I did not realize that NSDocument was already set up with
windowController methods for secondary windows. using the classes
built-in methods already accounts for this. Luckily I did not have to
change much to implement these methods.
Unfortunately, the secondary windows now have the document's name in
the title, instead of the custom title that I wanted...
On Tuesday, March 25, 2003, at 09:19 AM, Justin Lundy wrote:
I have a NSDocument that semi-acts as a doc. controller for secondary
windows, and I want to be able to call the print from the File menu
for these secondary windows. In order for the actual
NSDocumentController is still see a currentDocument when a secondary
window is main, I have to setDocument of the secondary window to it's
parent. The problem with this is that if I have unsaved changes to
the document when I close the secondary window, I get prompted to save
the document, but I don't want it to. Also, I don't want the
secondary window to show up as dirty, even if the document has unsaved
changes.
Any suggestions? Examples would be greatly appreciated.
- Justin
_______________________________________________
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.
_______________________________________________
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.