• 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: Piers Uso Walter <email@hidden>
  • Date: Wed, 28 Sep 2005 17:22:06 -0400


On 28.09.2005, at 16:45, Marc Respass wrote:

So what's the deal with @class then? In the past, I have used it and not gotten that error.

@class comes in handy in header files when you want to declare instance variables of a certain class without importing the header file of this class.


Importing as little as possible into a header file is desirable because this helps reduce compiler dependencies. (A change in the imported class header would not only force a recompile of the importing header file, but also of all other files that import the importing header file).

Importing a class header into an implementation file, as in your case, is perfectly fine because it does not cause such a multi-level compiler dependency issue.

With kind regards

Piers

--
Piers Uso Walter <email@hidden>
ilink Kommunikationssysteme GmbH

_______________________________________________
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: viewing globals?
  • 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