Obj-C private and XCode 2.3
Obj-C private and XCode 2.3
- Subject: Obj-C private and XCode 2.3
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 24 May 2006 10:49:25 +0200
I have installed XCode 2.3 and i have a problem with a piece of code.
I'have two classes like this:
@interface MyClass : NSObject {
@private
id sd_delegate;
}
@end
@interface MySubClass : MyClass {
@private
id sd_delegate;
}
@end
With XCode 2.2.1, private ivar from superclass was hidden in
subclasses @interface (and @implementation), and it compile well, but
with XCode 2.3 it appears that private ivars are only hidden in
subclasses @implementation and i get this error: duplicate member
'sd_delegate'.
Gcc invocation look like this:
/usr/bin/gcc-4.0 -x objective-c -arch i386 -pipe -Wno-trigraphs -
fobjc-exceptions -fpascal-strings -fasm-blocks -O0 -Wreturn-type -
Wunknown-pragmas -Wfour-char-constants -Wsign-compare -DDEBUG -
fmessage-length=0 -fobjc-direct-dispatch -mfix-and-continue -mmacosx-
version-min=10.4 -gdwarf-2 -IHeaders.hmap -Wmost -Wno-four-char-
constants -Wno-unknown-pragmas -fpch-preprocess -F/build/Development -
I/build/Development/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-c MyClass.m -o MyClass.o
Is this a last gcc version bug, or was this a gcc 4.0 bug?
Which XCode version was right?
_______________________________________________
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