about dealloc
about dealloc
- Subject: about dealloc
- From: Antonio Inojal <email@hidden>
- Date: Sun, 12 May 2002 22:24:42 -0400
Hi, say that I create two private objects in the .h file, meaning, they
are global. Now, changing the dealloc method and releasing the objects
there, will that release the objects? Let me illustrate my example.
Foo.h
There are, say, two private (non-IB) objects.
can I release those objects from the dealloc method such as:
in Foo.m:
- (void)dealloc
{
[other release];
[myText release];
[super dealloc];
}
where other and myText are two objects. Will this happen? Also, when
will the dealloc method get called, at the end of the program?? I
appreaciate your time very much. Thank You.
Tony
_______________________________________________
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.