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

Re: Undo's setActionName: and Core Data


  • Subject: Re: Undo's setActionName: and Core Data
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 12 Aug 2009 07:03:59 -0700


On 2009 Aug 11, at 11:32, Squ Aire wrote:

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?

Custom Accessors. That's the way I've done it.

Sounds like an inefficient way just to get undo action names looking good...

I agree, although my custom accessors also perform other business logic, which seem just as inefficient.


I've concluded that, despite the "You do not need any of these" warning you get from Xcode's menu Design > Data Model, you're going to need lots and lots of custom accessors by the time you finish any serious Core Data application. Just get accustomed to it.

any other ways?

Good question.

_______________________________________________

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


References: 
 >Undo's setActionName: and Core Data (From: Squ Aire <email@hidden>)

  • Prev by Date: NSStatusItem refresh problem
  • Next by Date: FSDetermineIfRefIsEnclosedByFolder(): No const for Cocoa's Temp Dir?
  • Previous by thread: Re: Undo's setActionName: and Core Data
  • Next by thread: [MEET]: LA Cocoa Heads Thursday 8/13 7:30pm
  • Index(es):
    • Date
    • Thread