• 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
Re: Informing one class about another class's methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Informing one class about another class's methods


  • Subject: Re: Informing one class about another class's methods
  • From: Kai-Mikael Jää-Aro <email@hidden>
  • Date: Thu, 23 Aug 2007 13:53:18 +0200


Roland Silver kirjoitti 2007-08-23 kello 13:45:

Suppose this:
1. Sub is a subclass of Super, hence it has a <#include "Super.h">;
2. Sub defines the method sub;
3. Super defines a method whose code contains the message: [Sub sub].
How can I get Super to know about Sub's sub method? Having a <#include "Sub.h"> in Super.m causes a compiler error, while <@class Sub;> tells Super that there's a Sub class, but nothing about its methods.

Would #import "Sub.h" in Super.m work better?


_______________________________________________

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


References: 
 >Informing one class about another class's methods (From: Roland Silver <email@hidden>)

  • Prev by Date: Re: Informing one class about another class's methods
  • Next by Date: Re: Is this good programming?
  • Previous by thread: Re: Informing one class about another class's methods
  • Next by thread: Re: Informing one class about another class's methods
  • Index(es):
    • Date
    • Thread