• 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: Modified date in CoreData model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modified date in CoreData model


  • Subject: Re: Modified date in CoreData model
  • From: Aaron Wallis <email@hidden>
  • Date: Sat, 14 Jul 2007 16:32:31 +1000

Thanks for that, worked a treat...
however, (this is my first core data app so I may be doing something major n00b-esk)
willChangeValueForKey and didChangeValueForKey are both being called on all my models keys when the app i'm building starts up!?


Any ideas why that would be happening?
ATM - the application is a model, and a few IB bindings :s

I'm very confused :(


On 14/07/2007, at 3:47 PM, Marcus S. Zarra wrote:

[self setPrimitiveValue:[NSDate date] forKey:@"modifiedDate"];

Marcus S. Zarra
Zarra Studios LLC
Simply Elegant Software for OS X
www.zarrastudios.com

On 7/13/07, Aaron Wallis <email@hidden> wrote:
Hi all.

I'm stuck in a bit of an infinite loop here guys,
I need to set a *modified date* value for a CoreData model i'm
building. I've been using the following peice of code, but for
obvious reasons, it causes an infinite loop.

- ( void ) didChangeValueForKey : ( NSString * ) key
{
        [self setValue:[NSDate date] forKey:@"modifiedDate"];
}

how would I go about doing such a thing?

ta

________________________/Az.________
http://isnot.tv



_______________________________________________

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:
40zarrastudios.com


This email sent to email@hidden


________________________/Az.________

Aaron Wallis
http://isnot.tv



_______________________________________________

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: 
 >Modified date in CoreData model (From: Aaron Wallis <email@hidden>)
 >Re: Modified date in CoreData model (From: "Marcus S. Zarra" <email@hidden>)

  • Prev by Date: NSMutableAttributedString initWithHTML / initWithData trouble
  • Next by Date: Re: Software Update APi in Cocoa
  • Previous by thread: Re: Modified date in CoreData model
  • Next by thread: Re: Modified date in CoreData model
  • Index(es):
    • Date
    • Thread