• 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
Re: XCode 2.0 warning with @class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode 2.0 warning with @class?


  • Subject: Re: XCode 2.0 warning with @class?
  • From: Markus Hitter <email@hidden>
  • Date: Wed, 28 Sep 2005 23:34:04 +0200


Am 28.09.2005 um 22:45 schrieb Marc Respass:

So what's the deal with @class then?

You can use @class if you want to inform the compiler such a class exists. If one of your methods returns an instance of such a class, for example. This doesn't include additional features (inheritance, methods, ...) of the class, though.


You even need @class sometimes to avoid circular dependencies. Think of a header for class A #importing the header for class B. Class B's header can't #import class A's header now or you'd get a circular dependency. You have to use a "@class A" statement.

Usually, you want a @class statement for the stuff in the header an #import before you hit definitions. Having both in a header/source pair is fine.


HTH, Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/




_______________________________________________ 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: XCode 2.0 warning with @class?
      • From: Marc Respass <email@hidden>
References: 
 >XCode 2.0 warning with @class? (From: Marc Respass <email@hidden>)
 >Re: XCode 2.0 warning with @class? (From: Andy Lee <email@hidden>)
 >Re: XCode 2.0 warning with @class? (From: Marc Respass <email@hidden>)

  • Prev by Date: Re: XCode 2.0 warning with @class?
  • Next by Date: Re: XCode 2.0 warning with @class?
  • Previous by thread: Re: XCode 2.0 warning with @class?
  • Next by thread: Re: XCode 2.0 warning with @class?
  • Index(es):
    • Date
    • Thread