Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: observing dealloc




On May 28, 2007, at 1:30 PM, Jim Correia wrote:

On May 28, 2007, at 3:29 PM, Shawn Erickson wrote:

On May 28, 2007, at 11:24 AM, Diederik Hoogenboom wrote:

The documentation says:

"The default implementation of this method retrieves the information from a global dictionary keyed by the receiver’s pointers.

For improved performance, this method can be overridden to retrieve the opaque data pointer in an instance variable. Overrides of this method must not attempt to send Objective-C messages to the stored data, including retain and release."

So it doesn't say it's an opaque pointer. Just that you can override this method to return an opaque pointer.

What it IS is undefined. Apple's classes are free to use any type of data structure they want... as are your own.

Not quote. The observationInfo is for the use of KVO. You can override the method to store the info in an iVar if this is important for performance, but that's about all you can do. KVO owns the data and its format.

Correct.

-Shawn

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >observing dealloc (From: Ken Tozier <email@hidden>)
 >Re: observing dealloc (From: Jim Correia <email@hidden>)
 >Re: observing dealloc (From: Ken Tozier <email@hidden>)
 >Re: observing dealloc (From: Ken Tozier <email@hidden>)
 >Re: observing dealloc (From: Diederik Hoogenboom <email@hidden>)
 >Re: observing dealloc (From: Jim Correia <email@hidden>)
 >Re: observing dealloc (From: Diederik Hoogenboom <email@hidden>)
 >Re: observing dealloc (From: Shawn Erickson <email@hidden>)
 >Re: observing dealloc (From: Jim Correia <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.