• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Obj-C private and XCode 2.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Obj-C private and XCode 2.3
      • From: Bill Bumgarner <email@hidden>
    • Re: Obj-C private and XCode 2.3
      • From: j o a r <email@hidden>
  • Prev by Date: Re: When to use Stabs or DWARF?
  • Next by Date: Time to split the documentation from the Xcode installer?
  • Previous by thread: Re: Framework problem
  • Next by thread: Re: Obj-C private and XCode 2.3
  • Index(es):
    • Date
    • Thread