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 protected]

On Nov 4, 2010, at 22:54, vincent habchi wrote:

> Le 5 nov. 2010 à 05:48, Thomas Wetmore <[email protected]> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to