• 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
import statement issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

import statement issues


  • Subject: import statement issues
  • From: Andrew Kinnie <email@hidden>
  • Date: Thu, 3 Apr 2003 15:13:29 -0500

OK, I'm apparently an idiot. I am trying to develop a strategy game.
I have several of my own custom classes, e.g. Hex, Force, etc. A Hex
can have a Force, and a Force must be in a Hex. I therefore have
instance variable in each: Force has an instance variable hex of type
Hex, and Hex has an instance variable force of type Force.

I have created new Cocoa Obj-C files (.h and .m) for these in my
project. However, when I tried to compile, I get

Force.h:20: undefined type, found `Hex'

etc. I added an

#import "Hex.h"

below the normal cocoa import statement. I still get the error.
Likewise for Hex.h, I add

#import "Force.h"

What idiotic thing am I missing???

Andrew
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: import statement issues
      • From: Peter Fischer <email@hidden>
  • Prev by Date: Bringing an NSTask forward
  • Next by Date: Re: Rendering an NSControl into a NSImage? (resolved)
  • Previous by thread: Re: Bringing an NSTask forward
  • Next by thread: Re: import statement issues
  • Index(es):
    • Date
    • Thread