Unexpected copyWithZone invoked when adding object to NSArrayController
Unexpected copyWithZone invoked when adding object to NSArrayController
- Subject: Unexpected copyWithZone invoked when adding object to NSArrayController
- From: Rick Hoge <email@hidden>
- Date: Wed, 14 Jul 2004 21:10:28 -0400
I have some code in which I add objects to an NSArrayController, and
have been experiencing some strange results.
After adding an object to the controller, as in [myArrayController
addObject:[[[NSObject alloc] init] autorelease]], I get the following
message if a table column is bound to the array controller:
*** -[NSObject copyWithZone:]: selector not recognized
I also get the same behaviour when I add a custom NSObject subclass to
the controller - I was just trying it with NSObject to make sure my own
class was not at fault. For some reason, there is no problem if I add
an NSString. If I remove the binding from the UI the problem also goes
away.
I've looked over the attributes of the controller and the bindings
settings dozens of times now, and can't figure out why copyWithZone
would be invoked. Anyone have any idea what might be causing this?
Thanks!
Rick
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.