• 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: CoreData, Object/Array Controllers and KVO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData, Object/Array Controllers and KVO


  • Subject: Re: CoreData, Object/Array Controllers and KVO
  • From: Negm-Awad Amin <email@hidden>
  • Date: Fri, 15 Aug 2008 15:11:35 +0200


Am Do,14.08.2008 um 07:46 schrieb Jeff Hellman:

Hi Folks-
Hi

as already said, KVO is not the right place to do that.

If this is a real important property, you should think about a model user interface (update button, sheet) to handle it. You can use notifications or maybe "bindings through through a controller".

But first you have to think aboout the semantics of an undo. Is this a new change or should the update value go back to the last change before the undone opertation? Maybe a "real" change history would help yoou.

Cheers,

Amin


I've got a document based CoreData application.

When I open a file and add some of my NSManagedObject subclass objects
to either an NSArrayController (bound to an entity in my NIB) or
NSObjectController (-setContent) the

- (void)willChangeValueForKey:(NSString *)key

is called.  So is

- (void)didChangeValueForKey:(NSString *)key

Why is this?  I'm not actually changing the object values, am I?

Thanks-
Jeff




-- Jeff Hellman email@hidden _______________________________________________

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

Amin Negm-Awad email@hidden




_______________________________________________

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: 
 >CoreData, Object/Array Controllers and KVO (From: "Jeff Hellman" <email@hidden>)

  • Prev by Date: Re: Threading problem using AsyncSocket (Matthew Youney)
  • Next by Date: Re: Making a bound view re-read its value
  • Previous by thread: Re: CoreData, Object/Array Controllers and KVO
  • Next by thread: @try @catch
  • Index(es):
    • Date
    • Thread