• 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: Mysterious crash with NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Mysterious crash with NSTableView
      • From: Andreas Falkenhahn <email@hidden>
References: 
 >Re: Mysterious crash with NSTableView (From: "Gary L. Wade" <email@hidden>)
 >Re: Mysterious crash with NSTableView (From: Andreas Falkenhahn <email@hidden>)

  • Prev by Date: Re: runModalForWindow() doesn't re-activate former window upon return
  • Next by Date: Re: Mysterious crash with NSTableView
  • Previous by thread: Re: Mysterious crash with NSTableView
  • Next by thread: Re: Mysterious crash with NSTableView
  • Index(es):
    • Date
    • Thread