Hello,

Change

Id valueId = change[NSKeyValueObserving.NSKeyValueChangeKindKey];

to

NSNumber value =
change[NSKeyValueObserving.NSKeyValueChangeKindKey].CastTo<NSNumber>();

Regards, Laurent Etiemble.

2009/2/4 Joanna Carter <[email protected]>:
> Laurent Etiemble a écrit :
>
>> What version of Monobjc are you using ? A lot of constants have been
>> fixed in the latest version (2.0.313), and NSKeyValueObserving is part
>> of the fixes. Tell me if you still have the issue with the 2.0.313.
>
> Thank you Laurent, that fixed that problem.
>
> Now, I just have the problem of casting/converting the Id returned from
this
> code :
>
>  Id valueId = change[NSKeyValueObserving.NSKeyValueChangeKindKey];
>
> ... into an NSNumber.
>
> Any ideas ?
>
> Joanna
>
> --
> Joanna Carter
> Carter Consulting
>
>

Reply via email to