Re: KVO of nested objects
Re: KVO of nested objects
- Subject: Re: KVO of nested objects
- From: Scott Stevenson <email@hidden>
- Date: Fri, 29 Oct 2004 21:40:58 -0700
On Oct 29, 2004, at 7:28 PM, Bruce Truax wrote:
This worked. The problem came when I added a second nested key (i.e
rdPikup.scale). The key was added properly but when I tried to remove
the
observer for the second nested key the program crashed with a
"EXC_BAD_ACCESS" in
[surfaceArray removeObserver:self
fromObjectsAtIndexes: surfaceArrayIndexSet
forKeyPath:aKey];
I add and remove a large number of keys using these same two functions
and
they work fine until I attempt to remove a second nested key. Should
this
work? Is this a bug?
I don't think this is a KVO issue. It's probably a problem somewhere
with memory management.
For help tracking this down, check out this header file:
/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/
NSDebug.h
Here's some info on setting environment variables:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/
CustomizingXcode/Concepts/EnvironmentVars.html
- Scott
--
http://treehouseideas.com/
http://theobroma.treehouseideas.com/ [blog]
_______________________________________________
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