• 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: NSUndoManager retain/release of arguments - ad infinitum
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUndoManager retain/release of arguments - ad infinitum


  • Subject: Re: NSUndoManager retain/release of arguments - ad infinitum
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 11 Jan 2011 11:35:31 -0500
  • Organization: Rogue Research Inc.

On Mon, 10 Jan 2011 22:35:28 -0800, Jerry Krinock said:

>Aside: Reading this thread really makes one appreciate Core Data.
>
>I've written a Core Data app which can Undo Sort.  The sortable objects
>are the 'many' members of to-many relationships.  Each one has an
>'index' parameter, which is re-set during sorting.  When you 'Undo
>Sort', all of the 'index' parameters get set back to their original
>values.  There is no code to 'Undo Sort' or 'Redo Sort'.  It really is
>"for free" (well, after you've tamed Core Data's Undo Groupings).
>
>I should not discourage John from doing it the hard way first, though.
>The usual warning against Cocoa beginners diving into Core Data applies :)

I agree that Core Data is helpful here.  But it's not a panacea.  For
one, there doesn't seem to be a nice way to get the Undo menu item to
say descriptive things like "Undo Typing", "Redo Size Change", etc.
When doing things 'the hard way' that part's actually easier.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: NSUndoManager retain/release of arguments - ad infinitum
      • From: Jerry Krinock <email@hidden>
References: 
 >NSUndoManager retain/release of arguments - ad infinitum (From: John Bartleson <email@hidden>)
 >Re: NSUndoManager retain/release of arguments - ad infinitum (From: Graham Cox <email@hidden>)
 >Re: NSUndoManager retain/release of arguments - ad infinitum (From: John Bartleson <email@hidden>)
 >Re: NSUndoManager retain/release of arguments - ad infinitum (From: Graham Cox <email@hidden>)
 >Re: NSUndoManager retain/release of arguments - ad infinitum (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Composing an NSImage to print
  • Next by Date: Mapping model
  • Previous by thread: Re: NSUndoManager retain/release of arguments - ad infinitum
  • Next by thread: Re: NSUndoManager retain/release of arguments - ad infinitum
  • Index(es):
    • Date
    • Thread