Re: Custom NSView and NSUndoManager
Re: Custom NSView and NSUndoManager
- Subject: Re: Custom NSView and NSUndoManager
- From: Jim Correia <email@hidden>
- Date: Thu, 10 Nov 2005 07:31:08 -0500
On Nov 10, 2005, at 5:58 AM, Benjamin Dunton wrote:
I was thinking about this some more this morning, and with what you
are saying, tell me if this makes since. I have a text view in the
application as well, and after calling [self setAllowsUndo] in the
awakeFromNib:, undo/redo works. I am thinking that if I get the
undo manager from the text views delegate (which also happens to be
my window controller), that things might start working?
Does your window controller own its own undo manager?
If your window doesn't, it probably should at this point, and you
should make yourself the window's delegate and return it from
- (NSUndoManager *)windowWillReturnUndoManager:(NSWindow *)window;
Jim
_______________________________________________
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