• 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: Newbie: Include file Loop!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: Include file Loop!


  • Subject: Re: Newbie: Include file Loop!
  • From: Jonathan Chaffer <email@hidden>
  • Date: Tue, 24 Sep 2002 17:30:07 -0400

On Tuesday, September 24, 2002, at 05:17 PM, Jay Prince wrote:

#import "Bar.h"
@interface Foo : NSObject
Bar * myBar;
@end

#import "Foo.h"
@interface Bar: NSObject
Foo * my Foo;
@end

Only use the #imports in your implementation file. In the interface file, use

@class Bar;
@interface Foo : NSObject
Bar * myBar;
@end

and

@class Foo;
@interface Bar : NSObject
Foo * myFoo;
@end

instead.
--
Jonathan Chaffer
Applications Developer, structure:interactive
(616) 364-7423 http://www.structureinteractive.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Newbie: Include file Loop!
  • Next by Date: Re: Newbie: Include file Loop!
  • Previous by thread: Newbie: Include file Loop!
  • Next by thread: Re: Newbie: Include file Loop!
  • Index(es):
    • Date
    • Thread