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

Re: import


  • Subject: Re: import
  • From: Daniel Child <email@hidden>
  • Date: Wed, 23 Jan 2008 22:06:38 -0500

Thanks! That did the trick.

On Jan 23, 2008, at 9:04 PM, Nick Zitzmann wrote:


On Jan 23, 2008, at 5:56 PM, Daniel Child wrote:

Any clues on where to look?


#import guards against including the same file twice, but it doesn't guard against circular includes, which is what is happening in this case.

#import "CentralController.h" // ERROR WHEN ADDING THIS

If your ControllerA.h file is making a reference to a class that is defined in CentralController.h, then instead of importing the header, you need to add an @class prototype for the class to ControllerA.h and import CentralController.h in ControllerA.m.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

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


References: 
 >import (From: Daniel Child <email@hidden>)
 >Re: import (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Core Animation and NSImageView
  • Next by Date: Re: [[NSView animator] setHidden:YES] doesn't fade?
  • Previous by thread: Re: import
  • Next by thread: grid lines and strange drawing behavior
  • Index(es):
    • Date
    • Thread