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

@class causing grief


  • Subject: @class causing grief
  • From: Scott Squires <email@hidden>
  • Date: Tue, 18 Mar 2008 00:32:07 -0700


I'm starting to go in circles at this point.
I know I've got a number of interconnecting files.
Since I was getting errors I replaced the #import as much as possible with @class defines


I'm still getting the following error:
error: syntax error before 'AT_NAME' token

This indicates @class myClass; in the following examples.
Most of these work fine but if I end up swapping #import instead then other areas break the compiler.


Any suggestions on areas to look at (missing @end or something else?)

Thanks.

example:

#import <stdStuff/stdStuff.h>
@class myClass;

@interface anotherClass : NSObject
{

	myClass *theMyClassObject;

}

@end



_______________________________________________

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 causing grief
      • From: Jens Alfke <email@hidden>
    • Re: @class causing grief
      • From: Quincey Morris <email@hidden>
    • Re: @class causing grief
      • From: Ron Fleckner <email@hidden>
  • Prev by Date: Re: How to track all keyboard event?
  • Next by Date: CoreData code working on Tiger - not on Leopard
  • Previous by thread: Re: NSMatrix
  • Next by thread: Re: @class causing grief
  • Index(es):
    • Date
    • Thread