Re: self release
Re: self release
- Subject: Re: self release
- From: sinclair44 <email@hidden>
- Date: Mon, 12 May 2003 15:42:17 -0400
On 5/12/03 2:46 PM, "Wolfgang Ante" <email@hidden> wrote:
>
[[MyWorkingBee workingBeeWithWorkDesc:info] runInBackground];
>
>
...which is of course autoreleased and then in 'runInBackground' I
>
[self retain] and when finished I just [self release].
Or, if you're like me, you might want it to be:
[[[MyWorkingBee alloc] initWithWorkDesc:info]
runInBackgroundAndReleaseWhenDone];
Or whatever- each coder to their own! :p
--
-- sinclair44
[self becomeWorldDictator];
- (void)becomeWorldDictator
{
[self coverLegalButt];
[[GeorgeBush principalClass] assassinate:[world currentLeaders]];
[[BinLaden principalClass] terrorize:[world citizens]];
[world setCurrentLeaders:[NSArray arrayWithObject:self]];
}
- (void)coverLegalButt
{
/* The above does not reflect any plans, expressed or implied, real or
imaginative, to kill or assassinate anyone, or to harm anyone in any shape,
way or form. Any relation to actual events is purely coincidental. */
}
_______________________________________________
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.