• 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
Undo's setActionName: and Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Undo's setActionName: and Core Data


  • Subject: Undo's setActionName: and Core Data
  • From: Squ Aire <email@hidden>
  • Date: Tue, 11 Aug 2009 18:32:31 +0000
  • Importance: Normal

Take the usual example of an Employee entity. The employees are shown in a one column table view through an NSArrayController.

Employee has one 'name' attribute.

The question is: How can I set the name of the undo action to "Modify Name" using setActionName of the MOC's undo manager just before the user changes an employee's name in the table view (or by any other means)?


Do I have to subclass the MO and override the accessor methods? Sounds like an inefficient way just to get undo action names looking good... any other ways?



--.
_________________________________________________________________
Share your memories online with anyone you want.
http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1_______________________________________________

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: Undo's setActionName: and Core Data
      • From: Jerry Krinock <email@hidden>
    • Re: Undo's setActionName: and Core Data
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: converting unicode text representation to unichar
  • Next by Date: Re: converting unicode text representation to unichar
  • Previous by thread: Possible to work around 10.4 LaunchAgent bugs?
  • Next by thread: Re: Undo's setActionName: and Core Data
  • Index(es):
    • Date
    • Thread