Re: KVO returning nil for old values, and mmalc's Graphics Bindings example
Re: KVO returning nil for old values, and mmalc's Graphics Bindings example
- Subject: Re: KVO returning nil for old values, and mmalc's Graphics Bindings example
- From: "Sean McBride" <email@hidden>
- Date: Thu, 19 May 2005 18:51:34 -0400
- Organization: Rogue Research
On 2005-05-18 21:55, Tim Lucas said:
>Did anybody figure out why in mmalc's Graphics Bindings example he had
>to to the following workaround, because KVO wasn't returning the old
>values?
>
>Quoting "Graphics Bindings" example, GraphicsView.m,
>observeValueForKeyPath:ofObject:change:context:
>> /*
>> Should be able to use
>> NSArray *oldGraphics = [change objectForKey:NSKeyValueChangeOldKey];
>> etc. but the dictionary doesn't contain old and new arrays...??
>> */
Its simply a bug in the OS. Maybe its fixed in 10.4?
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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