• 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
One NSTextView, several model objects - how to synchronise undo manager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

One NSTextView, several model objects - how to synchronise undo manager


  • Subject: One NSTextView, several model objects - how to synchronise undo manager
  • From: Rui Pacheco <email@hidden>
  • Date: Wed, 17 Mar 2010 00:09:00 +0000

Hi all,

I've a window with a fairly complex layout - one NSTextView and several
tables, all displaying different types of data. To keep things in order,
I've created a model object that holds the data for all these interface
elements. The window may also hold several instances of the model object and
I list them in a table.

My problem is how to keep the undo manager for the text view synchronised
with a particular instance of a model object. As the user switches between
model objects, I want him to be able to do cmd + z transparently with the
window knowing what changed in that particular instance.

Some research seems to indicate that using core data would give me this for
free - make my model objects extend NSManagedObject and I would have undo
for free. Is this correct?

--
Best regards,
Rui Pacheco
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: One NSTextView, several model objects - how to synchronise undo manager
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Nil items in NSMutableSet
  • Next by Date: Creating a console view
  • Previous by thread: Re: Anyone using IKImageView?
  • Next by thread: Re: One NSTextView, several model objects - how to synchronise undo manager
  • Index(es):
    • Date
    • Thread