Re: undo without dirty document
Re: undo without dirty document
- Subject: Re: undo without dirty document
- From: Frode <email@hidden>
- Date: Tue, 27 Jun 2006 14:27:50 +0200
Hi!
I manage to find a solution so I post a follow up.
Firstly, when receiving a windowControllerDidLoadNib, I observed that
the document's NSWindow and its NSTextView didn't had the same undo
manager as MyDocument at this early stage. So adding
- (NSUndoManager *)windowWillReturnUndoManager:(NSWindow *)window {
return [self undoManager];
}
to my document solved the problem.
Secondly, a break at windowWillReturnUndoManager shows that is it
first received when the window sets the initial key view in respons
to NIB loading. And my window's initialFirstResponder is a NSTabView,
and its first page's initial responder is a NSComboBox.
I remember now that one of the recent changes I added to my program
was wiring the initial firstResponder in Interface Builder to be this
NSComboBox.
Thanks for your time.
Rog
_______________________________________________
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