Re: Disable "missing [super dealloc] call" warning
Re: Disable "missing [super dealloc] call" warning
- Subject: Re: Disable "missing [super dealloc] call" warning
- From: Axel Andersson <email@hidden>
- Date: Sun, 1 May 2005 15:58:45 +0200
On May 1, 2005, at 12:45, Finlay Dobbie wrote:
Is there any reason that you don't just override the
retain/release/retainCount methods instead? That would seem more
semantically "correct" to me.
@implementation MyEvilSubclass
- (void)retain {}
- (id) release { return self; }
- (unsigned)retainCount { return (unsigned)-1; }
@end
It's not a singleton, so I want to run my -dealloc, but not my
superclass' -dealloc. I suppose I could make my -release method
invoke something like -_private_dealloc instead of -dealloc, but that
wouldn't be very pretty, and I tend to prefer Jonathan del Strother's
method if it's going to have to be a hack.
--
Axel Andersson
email@hidden
http://www.zankasoftware.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden