Switching Undo Manager
Switching Undo Manager
- Subject: Switching Undo Manager
- From: Oliver Cameron <email@hidden>
- Date: Wed, 27 Oct 2004 18:00:04 +0100
Hi guys,
I've been creating a application that when you switch to a different
row in a NSTableView, it loads a NSTextView appropriate for that row.
The NSTextView's data is stored inside the row in a special object I
created.
Basically, I am just wondering how I would go about, when you switch
the rows, and the NSTextView changes, the undo manager in the Edit menu
could then change. I can get the NSUndoManager data from the NSTextView
via 'undoManagerFromTextView', but I am looking for a way to switch the
undo manager. NSDocument provides a way via setUndoManager, but as I am
not using NSDocument, that's kinda redundant.
I've had a look in the NSUndoManager class documentation, and can't see
anything that can help me.
Any help appreciated,
Oliver
_______________________________________________
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