Re: Cannot find protocol declaration for 'NSTableViewDelegate'
Re: Cannot find protocol declaration for 'NSTableViewDelegate'
- Subject: Re: Cannot find protocol declaration for 'NSTableViewDelegate'
- From: Laurent Daudelin <email@hidden>
- Date: Thu, 4 Nov 2010 23:09:38 -0700
I had a similar stupid error with a project I hadn't worked on for some time. I couldn't for the life of me find why the compiler was barking at the same thing. I then changed the "Base SDK for all configurations" to the new setting "Latest Mac OS X (currently set to Mac OS X 10.6) and that fixed the problem. It seems that this is going to be the preferred setting as it is also for iPhone projects (always use the latest SDK for your base configuration). Of course, you can always set the deployment to an earlier version.
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
On Nov 4, 2010, at 22:54, vincent habchi wrote:
> Le 5 nov. 2010 à 05:48, Thomas Wetmore <email@hidden> a écrit :
>
>> I've been staring at this error message for the past hour.
>>
>> When trying to compile the code ...
>>
>> -------------------------------------
>> #import <Cocoa/Cocoa.h>
>>
>> @interface TWInterpreterController : NSWindowController <NSTableViewDelegate>
>> ...
>> @end
>> --------------------------------------
>>
>> the compiler issues the error:
>>
>> "Cannot find protocol declaration for 'NSTableViewDelegate'"
>>
>> The import of Cocoa/Cocoa.h causes the import of AppKit/NSTableView.h which contains the protocol definition
>
> What happens if you import AppKit/NSTableView.h directly?
>
> Since Xcode uses header precompiling, maybe something goes wrong during this preliminary stage?
_______________________________________________
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