• 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: ARC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARC


  • Subject: Re: ARC
  • From: Turtle Creek Software via Cocoa-dev <email@hidden>
  • Date: Mon, 26 Aug 2019 14:28:26 -0400

>> @property (weak) GSOutlineWindowController *mainWindowController;
>>self.mainWindowController = [[GSOutlineWindowController alloc]

initWithWindowNibName : @"GSOutlineWindowController"];
    [self.mainWindowController showWindow : self];

Sadly, nothing changes after the syntax changes.  @property (strong) also
fails.

>> A better way to investigate such issue is using the memory debugging
tools in Instrument IMHO.
>> That would let you see all stack traces of retain/release calls.

We tried that last week.  The problem with ARC debugging is that
breakpoints in dealloc()
happen long after the release.  You know it died, but not when or how.
Sometimes we turn off ARC for one class with compiler directives, then
breakpoint on release.
But Apple code does many retains and releases, all in Assembly code.  It
probably wouldn't
be too hard to figure out if source were available, but it's not.  We used
to step through PowerPlant
code a lot, and found/fixed several bugs for them.

Casey McDermott
TurtleSoft.com
_______________________________________________

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: ARC
      • From: Uli Kusterer via Cocoa-dev <email@hidden>
References: 
 >Re: ARC (From: Turtle Creek Software via Cocoa-dev <email@hidden>)
 >Re: ARC (From: Jens Alfke via Cocoa-dev <email@hidden>)
 >Re: ARC (From: Turtle Creek Software via Cocoa-dev <email@hidden>)
 >Re: ARC (From: Jean-Daniel via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: ARC
  • Next by Date: Re: Cocoa-dev Digest, Vol 16, Issue 72
  • Previous by thread: Re: ARC
  • Next by thread: Re: ARC
  • Index(es):
    • Date
    • Thread