• 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
Re: Crash in objc_msgSend_rtp when calling add action of NSArrayController (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Crash in objc_msgSend_rtp when calling add action of NSArrayController (From: Camillo Lugaresi <email@hidden>)

  • Prev by Date: Re: CoreData document based app with single source
  • Next by Date: NSMatrix NSImageCell binding
  • Previous by thread: Re: Crash in objc_msgSend_rtp when calling add action of NSArrayController
  • Next by thread: Core Data compare NSNumber question
  • Index(es):
    • Date
    • Thread