Re: KVO query

2014-08-14 Thread Jonathan Mitchell
On 13 Aug 2014, at 23:40, Ken Thomases wrote: > > You have to issue the -willChange… _before_ the property has changed. That's > because that's KVO's only opportunity to get the value that's about to become > "old" and remove its observations for the properties of that old object. > > So, t

Re: KVO query

2014-08-14 Thread Jonathan Mitchell
On 13 Aug 2014, at 23:41, Quincey Morris wrote: > On Aug 13, 2014, at 14:53 , Jonathan Mitchell wrote: > >> At one point i need to invoke a manual KVO notification like so: >> >> [submission willChangeValueForKey:@“status”]; >> [submission didChangeValueForKey:@“status”]; >> >> This raises

Re: KVO query

2014-08-13 Thread Quincey Morris
On Aug 13, 2014, at 14:53 , Jonathan Mitchell wrote: > At one point i need to invoke a manual KVO notification like so: > > [submission willChangeValueForKey:@“status”]; > [submission didChangeValueForKey:@“status”]; > > This raises like so: > > Terminating app due to uncaught exception 'NSInt

Re: KVO query

2014-08-13 Thread Ken Thomases
On Aug 13, 2014, at 4:53 PM, Jonathan Mitchell wrote: > I have a key path like so which is observed: > > submission.status.name > > At one point i need to invoke a manual KVO notification like so: > > [submission willChangeValueForKey:@“status”]; > [submission didChangeValueForKey:@“status”];

Re: KVO query

2014-08-13 Thread Lee Ann Rucker
Have you implemented +automaticallyNotifiesObserversForKey: and returned NO for “status” ? On Aug 13, 2014, at 2:53 PM, Jonathan Mitchell wrote: > I have a key path like so which is observed: > > submission.status.name > > At one point i need to invoke a manual KVO notification like so: > >

KVO query

2014-08-13 Thread Jonathan Mitchell
I have a key path like so which is observed: submission.status.name At one point i need to invoke a manual KVO notification like so: [submission willChangeValueForKey:@“status”]; [submission didChangeValueForKey:@“status”]; This raises like so: Terminating app due to uncaught exception 'NSInte