• 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: Circular references
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Circular references


  • Subject: Re: Circular references
  • From: DKJ <email@hidden>
  • Date: Mon, 14 Sep 2009 00:00:00 -0700

For the archives: Joar's suggestion did the trick. Now it's all working just the way I want.

Thanks to all those who thought about it.

dkj


On 2009-09-13, at 15:08 , Joar Wingfors wrote:

Foo.h
==========
@class Bar; // <- Forward declaration of the Bar class
@interface Foo : NSObject {
	@private
	Bar *_bar;
}
@end
==========

Foo.m
==========
#import "Bar.h" // <- The forward declaration is "resolved" here
#import "Foo.h"
@implementation Foo
@end
==========

_______________________________________________

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: 
 >Circular references (From: DKJ <email@hidden>)
 >Re: Circular references (From: Joar Wingfors <email@hidden>)

  • Prev by Date: Re: Developing a Stand-Alone Service in Snow Leopard
  • Next by Date: Artur Zaiat/MOL/CEECIS/UNICEF is out of the office.
  • Previous by thread: Re: Circular references
  • Next by thread: Re: Circular references
  • Index(es):
    • Date
    • Thread