• 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: Question regarding NSArrayController, KVO and Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question regarding NSArrayController, KVO and Core Data


  • Subject: Re: Question regarding NSArrayController, KVO and Core Data
  • From: Todd Cash <email@hidden>
  • Date: Sun, 15 Jan 2006 20:30:08 -0800

I have the code in the AwakeFromNib method in my AppDelegate.
LogController is not null at that point (but it has no records in it yet).


I've also tried wiring this up to the ManagedObjectContext but that does not work either.



In my AppDelegate I've tried both of these code snippets but my
implementation of observerValueForKeyPath:ofObject:change:context:
is never getting called -

[logsController addObserver:self forKeyPath@"selection.date"
options:NSKeyValueObservingOptionNew context:NULL];


Where did you put this code? Is logsController nil...?

Note you should avoid using NULL as the context.  At some stage you
may need to discriminate between observations.

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Question regarding NSArrayController, KVO and Core Data
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Calculating volume free space
  • Next by Date: Open an NSMenu in Code/Global Hotkeys
  • Previous by thread: Re: Question regarding NSArrayController, KVO and Core Data
  • Next by thread: Re: Question regarding NSArrayController, KVO and Core Data
  • Index(es):
    • Date
    • Thread