• 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: @class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: @class


  • Subject: Re: @class
  • From: Jean Suisse <email@hidden>
  • Date: Thu, 21 Mar 2013 22:20:48 +0100

A few minutes search gave me this. While I haven't taken a deep look to these resources, they do look good.

- What's a forward declaration ? (several languages including Obj-C)
http://en.wikipedia.org/wiki/Forward_declaration

- When to use a forward declaration (C++):
http://stackoverflow.com/questions/553682/when-to-use-forward-declaration

- Objective C Programming Tutorial | Using @class And #import Directives
http://www.youtube.com/watch?v=0b9Qok2uHhU

@class allows you to declare a class.
Example: @class MyClass;

The forward declaration is used to tell the compiler: "The word MyClass represents a class. I don't give you the implementation yet, but it represents a class, and the implementation will be provided later".

Jean

On 21 mars 2013, at 21:43, H Miersch <email@hidden> wrote:

> hi.
>
> what exactly does @class do?
>
> and what does "forward declaration" mean?
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: @class
      • From: Diederik Meijer | Ten Horses <email@hidden>
References: 
 >@class (From: H Miersch <email@hidden>)

  • Prev by Date: Re: @class
  • Next by Date: Re: iOS restricted distribution security question - is this the right place to ask it?
  • Previous by thread: Re: @class
  • Next by thread: Re: @class
  • Index(es):
    • Date
    • Thread