Window with no document ?
Window with no document ?
- Subject: Window with no document ?
- From: Bob Miller <email@hidden>
- Date: Mon, 25 Aug 2003 15:51:11 -0400
Hello,
This is probably a very basic question but, until now I've never
encountered the issue. I have a subclass of NSWindowController that I
am using as my window's File's Owner in a nib. I programatically load
the window using the controller's initWithWindowNibName method. then do
a few custom things within the windowDidLoad method. Everything loads
and displays fine. The question is I want to be able to give the user a
chance to save the window contents. By default I want the window to be
'dirty' because it gets populated using another object initially so
the contents start out dirty. When I click the close button on the
window my controller's close method never gets called. If I call the
controller's 'setDocumentEdited:YES' the close button shows dirty but
when clicked, still no close method call. Am I missing something ?
(obviously) Does anyone know what the correct implementation is to be
able to save a window without a document ?
Thanks in advance for any help.
Regards,
Bob Miller
_______________________________________________
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.