• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disable "missing [super dealloc] call" warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Disable "missing [super dealloc] call" warning (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Can not install developer documentation from Tiger install DVD
  • Next by Date: Update IB class when adding instance variables?
  • Previous by thread: Re: Disable "missing [super dealloc] call" warning
  • Next by thread: Re: Disable "missing [super dealloc] call" warning
  • Index(es):
    • Date
    • Thread