Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Changing the undo manager

Changing the undo manager
Thread Tools
iOliverC
Grizzled Veteran
Join Date: Jun 2002
Status: Offline
Reply With Quote
Oct 26, 2004, 04:25 PM
 
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.

Thanks,
Oliver
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 06:17 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,