• 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: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:


  • Subject: Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 27 May 2015 07:20:50 -0700

> On Apr 13, 2015, at 12:11 PM, Raglan T. Tiger <email@hidden> wrote:
>
> Just a quick follow-up and thanks to those that put me on the right path.
>
> I ran the code in GDB on a 10.6.8 machine and set NSZombieEnabled=YES.  This showed me the object that was released that Cocoa was calling tableView:objectValueForTableColumn:row: on after release.  This was only a problem on 10.6.8 machines.
>
> The solution was to set the datasource and delegate to nil on the table before exiting the stack that started the process.
>
> This does seem to be a bug when building with Xcode 6.2 and 10.9 SDK.

The bug is in your code. It has always been a requirement that you nil out any delegate and datasource backpointers before the thing they point to gets deallocated. You just happened to get away with it due to some aspect of older Xcode versions’ codegen.

This was a large motivation behind Zeroing Weak References (aka __weak in ARC).

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: Disabling auto-synthesis of property accessors.
  • Next by Date: Re: Anyone else having trouble with the Provisioning Profile?
  • Previous by thread: Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:
  • Next by thread: Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:
  • Index(es):
    • Date
    • Thread