Re: Circular references
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