Re: self release
Re: self release
- Subject: Re: self release
- From: Wolfgang Ante <email@hidden>
- Date: Mon, 12 May 2003 20:46:49 +0200
Yes, that is definitely a bad idea, since it violates basic memory
management principles. What you retain / alloc you must release!
Yes, good point!
So I think the best approach is your...
[[MyWorkingBee workingBeeWithWorkDesc:info] runInBackground];
...which is of course autoreleased and then in 'runInBackground' I
[self retain] and when finished I just [self release].
This way I do not break "what you retain/alloc you must release" and I
still get my suicidal object. ;-)
Thank you John and David for your help!
Bye, Wolfgang :-)
_______________________________________________
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.