Re: Autorelease question
Re: Autorelease question
- Subject: Re: Autorelease question
- From: Dmitry Markman <email@hidden>
- Date: Thu, 3 Apr 2008 20:13:56 -0400
Hi, Robert
thanks for your answer
our project never had that file
as matter of fact project in question doesn't have any .m files at all
(we just compile file with the Cocoa code with -x objective-c++
compiler flag)
thanks
dm
On Apr 3, 2008, at 8:07 PM, Robert Claeson wrote:
On 4 Apr 2008, at 02:03, Dmitry Markman wrote:
Hi
How can I tell that default autorelease pool exists?
Dmitry
The default autorelease pool is created in the <project name>.m file
of a newly created project. If you have messed around too much with
that file, you might have deleted it.
The interesting lines are:
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
...
[pool drain];
}
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