Re: Window with no document ?
Re: Window with no document ?
- Subject: Re: Window with no document ?
- From: Neil Earnshaw <email@hidden>
- Date: Tue, 26 Aug 2003 09:23:39 +0100
Bob,
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 ?
One possible problem occurs if you are using your own notifications in
the app and at some point your window controller does [nc
removeObserver:self]. This will stop -windowWillClose: being delivered
to it when you hit the close button on the window, though
-windowShouldClose: still gets delivered because its not a notification.
Also, has the window controller been made the window's delegate in IB?
This is a prerequisite for getting -windowWillClose:
-Neil
_______________________________________________
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.