• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Switching Undo Manager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching Undo Manager


  • Subject: Re: Switching Undo Manager
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 28 Oct 2004 04:47:40 -0700 (PDT)

Oliver,

That's because what you really want is to use the
bindings. It is 'almost' trivial (after you understand
how to use them) with bindings.

I recommend checking out..

http://homepage.mac.com/mmalc/CocoaExamples/controllers.html

as well, you can google on something like 'cocoa
binding examples' and see what you get.

Ted

> 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 you Yahoo!?
Y! Messenger - Communicate in real time. Download now.
http://messenger.yahoo.com
_______________________________________________
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

  • Follow-Ups:
    • Re: Switching Undo Manager
      • From: Oliver Cameron <email@hidden>
  • Prev by Date: Fill a NSTableView with data in nib
  • Next by Date: Re: key codes
  • Previous by thread: Switching Undo Manager
  • Next by thread: Re: Switching Undo Manager
  • Index(es):
    • Date
    • Thread