• 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: NSWindowController retain count confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowController retain count confusion


  • Subject: Re: NSWindowController retain count confusion
  • From: James Walker <email@hidden>
  • Date: Tue, 30 Sep 2008 18:46:07 -0700

Jonathan Hess wrote:

On Sep 30, 2008, at 12:01 PM, James Walker wrote:

However, I did solve my problem. I neglected to mention that I'm working in a mostly Carbon app. When I surrounded the alloc, init, and showWindow calls with a local autorelease pool, the problem went away and the NSWindowController gets deallocated without funny business. I thought I had read that it was no longer necessary to set up my own autorelease pools.

Interesting. Was there a corresponding console message about an object being autoreleased with no pool in place? If not, you should consider filing a radar with a small reproducible test case.

No, there was no such console message.

I'll consider working on a radar, but I might not be able to come up with a small test case. The app in question uses PowerPlant and WaitNextEvent. When I tried testing with a toy Carbon app that used RunApplicationEventLoop, the problem didn't happen.
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.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


References: 
 >NSWindowController retain count confusion (From: James Walker <email@hidden>)
 >Re: NSWindowController retain count confusion (From: Jonathan Hess <email@hidden>)
 >Re: NSWindowController retain count confusion (From: James Walker <email@hidden>)
 >Re: NSWindowController retain count confusion (From: Jonathan Hess <email@hidden>)

  • Prev by Date: Re: NSWindowController retain count confusion
  • Next by Date: Re: NSWindowController retain count confusion
  • Previous by thread: Re: NSWindowController retain count confusion
  • Next by thread: Re: NSWindowController retain count confusion
  • Index(es):
    • Date
    • Thread