• 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: Sandor Szatmari <email@hidden>
  • Date: Fri, 26 Aug 2016 23:44:27 -0400

Doug,

> On Aug 26, 2016, at 17:58, Doug Hill <email@hidden> wrote:
>
>> On Aug 26, 2016, at 1:52 PM, Jens Alfke <email@hidden> wrote:
>>
>>> On Aug 26, 2016, at 8:42 AM, Andreas Falkenhahn <email@hidden> wrote:
>>>
>>> But once again, I think it's a crime that there is no mentioning of this in the class
>>> documentation of "setDelegate" and "setDatasource" :(
>>
>> In the Xcode 8 docs for NSTableView.dataSource, it does:
>>    "Note that in versions of OS X prior to v10.12, the table view did not retain the data source in a managed memory environment."
>>
>> I’m sure I won’t be the first person to suggest that you switch to ARC. If you find ref-counting confusing, ARC will help you a lot.
>>
>> —Jens
>
> As usual, Jens speaks truthfully about using ARC.
>
> However, in your case I wonder what the static analyzer in Xcode tells you about the bug you see?

I believe Andreas mentioned he does not use Xcode as his product is cross platform, but this is a good suggestion.

Andreas,

If you add a static analysis phase to your Makefile does it help highlight these issues?

http://clang-analyzer.llvm.org

Sandor Szatmari

> Can it catch the bug? In manual ref-counting, the analyzer has saved my skin more than once. :)
>
> Doug
> _______________________________________________
>
> 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

_______________________________________________

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: Jeff Szuhay <email@hidden>
References: 
 >Re: Mysterious crash with NSTableView (From: "Gary L. Wade" <email@hidden>)
 >Re: Mysterious crash with NSTableView (From: Andreas Falkenhahn <email@hidden>)
 >Re: Mysterious crash with NSTableView (From: Jens Alfke <email@hidden>)
 >Re: Mysterious crash with NSTableView (From: Doug Hill <email@hidden>)

  • Prev by Date: Re: length of file from NSFileHandle?
  • Next by Date: Re: length of file from NSFileHandle?
  • Previous by thread: Re: Mysterious crash with NSTableView
  • Next by thread: Re: Mysterious crash with NSTableView
  • Index(es):
    • Date
    • Thread