• 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
Creating Interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating Interface


  • Subject: Creating Interface
  • From: "Christian Giordano" <email@hidden>
  • Date: Thu, 28 Aug 2008 11:14:54 +0100

Hi guys, I would like to create an Interface which will be eventually
implemented by some classes. I am a bit confused here, in objective-c
the .h files are basically already interfaces. Ok, but how could a .m
file implements more than one? I couldn't find any document explaining
how to implements multiple interfaces. In my ignorance I created a
normal .h file MyInterface.h and after importing it in my implementing
class header, I express it with the syntax that I've seen already:

@interface MyClass : NSObject <MyInterface> {
}

The problem is that I get a compiler error on the interface
declaration line saying: "cannot find protocol declaration for
'MyInterface'".

Does someone have any link or tips that might help me?


Thanks, chr
_______________________________________________

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: Creating Interface
      • From: Matthias Schonder <email@hidden>
  • Prev by Date: Re: Design Question: Bindings & Custom Views
  • Next by Date: Re: Creating Interface
  • Previous by thread: [MEET] Aachen CocoaHeads TODAY (August 28, 2008)
  • Next by thread: Re: Creating Interface
  • Index(es):
    • Date
    • Thread