• 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
Cannot find protocol declaration for 'NSTableViewDelegate'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cannot find protocol declaration for 'NSTableViewDelegate'


  • Subject: Cannot find protocol declaration for 'NSTableViewDelegate'
  • From: Thomas Wetmore <email@hidden>
  • Date: Fri, 05 Nov 2010 00:48:31 -0400

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 of NSTableViewDelegate, so I fail to see what's happening here. Googling the error message leads to the advice that all circular/recursive import/include loops be avoided, but I fail to see how one could be happening here.

In versions of NSTableView.h before 10.6 the delegate was not defined as a protocol but as a category on NSObject, so if an older version of the header file were being imported I could understand the message.

But I'm assuming the NSTableView.h that is being imported must be the one that I see when I check under the header files under the Frameworks tab in the Xcode Groups&Files navigator. I do see the older version of NSTableView.h that define the delegate in a category in the directory:

/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/NSTableView.h

But I'm building with the 10.6 SDK. Is there some mechanism that might be causing the older NSTableView.h to nevertheless get imported?

Thanks,
Tom Wetmore_______________________________________________

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

  • Follow-Ups:
    • Re: Cannot find protocol declaration for 'NSTableViewDelegate'
      • From: Thomas Wetmore <email@hidden>
    • Re: Cannot find protocol declaration for 'NSTableViewDelegate'
      • From: vincent habchi <email@hidden>
  • Prev by Date: Re: Switching app type from background only to full UI, and back?
  • Next by Date: Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
  • Previous by thread: Re: Switching app type from background only to full UI, and back?
  • Next by thread: Re: Cannot find protocol declaration for 'NSTableViewDelegate'
  • Index(es):
    • Date
    • Thread