I hope this isn't a silly question.
Let's say I have a class Foo, implemented in Foo.m like this:
How can I call _doPrivateBlah from a subclass of Foo without getting a compiler warning?
If I add #import "Foo.m" to my subclass' implementation file, it works fine in debug mode but I get an error when compiling in XCode with the standard release configuration. The error is as follows:
This is fair enough. Still, I'm now at a loss as to how I can get rid of those annoying warnings... Can anybody help?
Let's say I have a class Foo, implemented in Foo.m like this:
Code:
@interface Foo (Private)
- (void)_doPrivateBlah;
@end
@implementation Foo
- (void)doBlah; {}
@end
@implementation Foo (Private)
-(void)_doPrivateBlah; {}
@end
How can I call _doPrivateBlah from a subclass of Foo without getting a compiler warning?
If I add #import "Foo.m" to my subclass' implementation file, it works fine in debug mode but I get an error when compiling in XCode with the standard release configuration. The error is as follows:
Code:
multiple definitions of symbol .objc_category_name_Foo_Private
multiple definitions of symbol .objc_class_name_Foo
Command /usr/bin/gcc-4.0 failed with exit code 1
This is fair enough. Still, I'm now at a loss as to how I can get rid of those annoying warnings... Can anybody help?