Re: import
Re: import
- Subject: Re: import
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 23 Jan 2008 19:04:07 -0700
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>) |