Re(2): Strange compile time error message...
Re(2): Strange compile time error message...
- Subject: Re(2): Strange compile time error message...
- From: "Ryan Poling" <email@hidden>
- Date: Fri, 1 Dec 2006 08:18:06 -0800
Thanks for the info - don't know how I missed that one; I have been
developing Cocoa apps for a while now and never really had a problem.
-Ryan
On Friday, December 1, 2006 at 00:12 , Keith Duncan email@hidden said:
>You shouldn't import a header into another header (unless you are
>subclassing), instead use the @class XYZ directive to let the
>compiler know that XYZ is a class. It then expects you to define it
>later, i.e. when importing the header into the implementation file.
>
>See http://www.cocoadev.com/index.pl?AdviceOnImportingHeaders for
>more info.
>
>
>On 30 Nov 2006, at 23:55, Ryan Poling wrote:
>
>> I have been getting a strange compile time error message in a Cocoa
>> project I'm working on. When I import header file "A.h" into header
>> file "B.h", I get the following two error messages in "B.m":
>>
>> error: parse error before 'MyHeader'
>> fatal error: method definition not in @implementation context
>>
>> If I instead import "A.h" into "B.m" (instead of into "B.h"), the
>> errors
>> disappear and everything compiles normally.
>>
>> "A" is a singleton class, and "B" isn't.
>>
>> Not sure if that's enough detail for anyone to help...
>>
>> Any ideas?
>>
>> Thanks,
>>
>> -Ryan
>>
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> 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:
>> 40mac.com
>>
>> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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