Re: Mysterious crash with NSTableView
Re: Mysterious crash with NSTableView
- Subject: Re: Mysterious crash with NSTableView
- From: "Gary L. Wade" <email@hidden>
- Date: Fri, 26 Aug 2016 08:52:20 -0700
You would not see this if you hid or removed the table view first since it would not need its data source or delegate then. Try going with ARC or at least use autorelease on your delegate/data source.
--
Gary L. Wade (Sent from my iPad)
http://www.garywade.com/
> On Aug 26, 2016, at 8:42 AM, Andreas Falkenhahn <email@hidden> wrote:
>
>> On 26.08.2016 at 17:35 Gary L. Wade wrote:
>>
>> Try clearing your table view's data source and delegate before
>> releasing their object. It appears the pointer gets reassigned to an
>> NSRectSet before your table view completely goes away but after its delegate and data source have.
>
> Great, that solves it. Thanks a lot!
>
> But once again, I think it's a crime that there is no mentioning of this in the class
> documentation of "setDelegate" and "setDatasource" :(
>
> --
> Best regards,
> Andreas Falkenhahn mailto:email@hidden
>
_______________________________________________
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