Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Obj-C private and XCode 2.3



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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.