• 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
Nil Object Crashing KVO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Nil Object Crashing KVO
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: ObjC 2.0, properties, KVC, special _ hacks etc.
  • Next by Date: Re: ObjC 2.0, properties, KVC, special _ hacks etc.
  • Previous by thread: Re: Reading from Streams - Convenience methods
  • Next by thread: Re: Nil Object Crashing KVO
  • Index(es):
    • Date
    • Thread