Re: Crash in objc_msgSend_rtp when calling add action of NSArrayController (SOLVED)
Re: Crash in objc_msgSend_rtp when calling add action of NSArrayController (SOLVED)
- Subject: Re: Crash in objc_msgSend_rtp when calling add action of NSArrayController (SOLVED)
- From: Camillo Lugaresi <email@hidden>
- Date: Sat, 24 Dec 2005 21:47:23 +0100
On 23/dic/05, at 22:46, Camillo Lugaresi wrote:
I have a table view with two columns bound to an NSArrayController
which is in turn bound to an NSMutableArray. A button which invokes
the add: action is connected to the NSArrayController.
Viewing and sorting the table works fine, but when I click the
button the program crashes inside objc_msgSend_rtp.
The crash turned out to have an embarrassingly stupid reason: the
setter for the array value in the "master" controller (which does not
have indexed accessors yet) failed to retain the new value. I had
NSZombieEnabled, but unfortunately it does not cover CoreFoundation
objects, which is what the concrete array instance actually is. I
should have activated CFZombie as well.
I'm writing this for the sake of future Cocoa Bindings newbies who
might search the list archives for objc_msgSend_rtp after falling
victim to a similar oversight. :-)
Camillo
_______________________________________________
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