Re: Invoking the superclass from a private method correctly
Re: Invoking the superclass from a private method correctly
- Subject: Re: Invoking the superclass from a private method correctly
- From: Dave Camp <email@hidden>
- Date: Thu, 3 Feb 2005 09:49:09 -0800
On Feb 3, 2005, at 9:39 AM, Nick Zitzmann wrote:
I have a question for the runtime wranglers out there... I checked the
archives and didn't see anything that would answer this question...
I have a project that has several private methods, and some of these
private methods exist in concrete subclasses that need to call the
private method in the superclass. I could just write [super
someMethod], but the compiler complains about that because the method
isn't defined anywhere. I already noticed that calling [super
performSelector:] winds up generating an infinite loop. So I wrote
this category method for NSObject...
What about declaring the method as a category on the superclass in a
MySuperClassPrivate.h file that is included by both .m files?
Dave
---
You are in a maze of testy little Java VMs, all subtly different.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden