Nil Object Crashing KVO
Nil Object Crashing KVO
- Subject: Nil Object Crashing KVO
- From: Gordon Apple <email@hidden>
- Date: Sun, 24 Aug 2008 09:00:47 -0500
- Thread-topic: Nil Object Crashing KVO
I¹m having a problem that only shows up in Release mode. I have an
object that should have ³editLayer² ivar automatically initialized to nil.
A second object has a KVO on this ivar property. When the first object
calls setEditLayer (as a result of it¹s own KVO notification observation
from elsewhere), the program crashes before the second object receives its
KVO, but only in release mode. Is there some issue here with the KVO
dictionary passing nil for NSKeyValueObservingOptionOld? I normally test for
a NSNull in the second object¹s observation, but it doesn¹t even get that
far in release mode.
_______________________________________________
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