• 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: Adding an NSTabView causes problems..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding an NSTabView causes problems..


  • Subject: Re: Adding an NSTabView causes problems..
  • From: Jonathan del Strother <email@hidden>
  • Date: Fri, 25 Jun 2004 23:33:19 +0100

On 25 Jun 2004, at 23:09, Nick Zitzmann wrote:


On Jun 25, 2004, at 3:48 PM, Jonathan del Strother wrote:

2004-06-25 22:45:11.285 iTunes[9839] *** _NSAutoreleaseNoPool(): Object 0x55bd330 of class NSCarbonWindow autoreleased with no pool in place - just leaking
[...]
Any ideas what's causing this / how to fix it?

Try allocating & initializing an NSAutoreleasePool before the program does any Objective-C work at all, and releasing the pool just before the method that created the pool is done. This question does get asked from time to time, so you could have searched the archives for "NSAutoreleaseNoPool"... <http://cocoa.mamasam.com/>


Thanks for the suggestions, but this appears to be occurring somewhere outside of my control - it's after my method to show the Cocoa window has exited. Autorelease pools are allocated around both my entry points to the Cocoa app (InitializeBundle and ShowWindow). I call both of these, control then returns to the Carbon app, and then I get the no-autorelease errors.

Should those autorelease pools be local to those 2 methods, or should I be using a global one that gets released when the user closes the dialog?

Thanks,
Jon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Adding an NSTabView causes problems.. (From: Jonathan del Strother <email@hidden>)
 >Re: Adding an NSTabView causes problems.. (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Online Version Checking
  • Next by Date: Re: Online Version Checking
  • Previous by thread: Re: Adding an NSTabView causes problems..
  • Next by thread: Online Version Checking
  • Index(es):
    • Date
    • Thread