[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Categories and selector
From: |
Sébastien Pierre |
Subject: |
Categories and selector |
Date: |
Mon, 18 Nov 2002 13:57:11 +0100 |
Hi all,
I ran into a problem when using categories:
@interface MyClass (MyCategory)
- (void) helloWorld
@end
Then I sublcass MyClass with MyClass2
helloWorld is not defined in MyClass.
In another source code, I make invoke [myClass2Instance helloWorld],
and I get:
Uncaught exception NSInvalidArgumentException, reason:
MyClass2(instance) does not recognize helloWorld.
Maybe the categories are not inherited by the MyClass2 class... which
would be really strange as this compiles and works fine under OSX.
tia,
-- Sébastien
--
«Life begins at the centerfold and expands outward.»
<http://www.type-z.org> -- Miss November, 1966
- Categories and selector,
Sébastien Pierre <=