• 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: Weird compiler issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird compiler issue


  • Subject: Re: Weird compiler issue
  • From: Geert Clemmensen <email@hidden>
  • Date: Tue, 15 Mar 2005 17:23:57 +0100

On Mar 15, 2005, at 5:17 PM, Ian was here wrote:

I have many classes in my application. Some classes
need to cross reference each other. For example: Class
A needs to #import "ClassB.h" and Class B needs to
#import "ClassA.h". This obviously creates a compiler
error.

Therefor, I changed it like this:

Class A: #import "ClassB.h"
Class B: @class ClassA

Class B methods used by Class A are OK, but Class A
methods used by Class B give a warning stating that
"Class A may not repond to method X".


Does anyone know how to resolve this issue?

In ClassA.m you can do #import "ClassB.h" and vice versa.

Regards,
Geert B. Clemmensen
www.frontbase.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Weird compiler issue (From: Ian was here <email@hidden>)

  • Prev by Date: Re: Blurring, phycedelic NSTableViews.
  • Next by Date: Re: Weird compiler issue
  • Previous by thread: Weird compiler issue
  • Next by thread: Re: Weird compiler issue
  • Index(es):
    • Date
    • Thread