Re: Autorelease question
Re: Autorelease question
- Subject: Re: Autorelease question
- From: Dmitry Markman <email@hidden>
- Date: Thu, 3 Apr 2008 20:45:25 -0400
Hi, Hamish
or yes I'm pretty sure
I can see result on the screen
code in question is called from the mac os x bundle
neither bundle project nor project of the main application
have any NSAutoreleasePool creation
in fact there is only one file that include <Cocoa/Cocoa.h>
On Apr 3, 2008, at 8:19 PM, Hamish Allan wrote:
On Fri, Apr 4, 2008 at 1:03 AM, Dmitry Markman <email@hidden>
wrote:
but from other hand in the complex Carbon application, where I never
explicitly created NSAutoreleasePool object
I can call
NSString *textString = [NSString
stringWithCString:"Hello From
Cocoa" encoding:NSMacOSRomanStringEncoding];
without any warnings about _NSAutoreleaseNoPool
You are quite sure this code is being executed?
so I suppose default NSAutoreleasePool was created for me
I don't think it ever gets created for you; XCode can generate code
that creates it; if so, you should be able to find "NSAutoreleasePool"
with a project-wide search.
Hamish
Dmitry Markman
_______________________________________________
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