Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Syntax error in header file



I'm sure this is simple, but I'm new to Obj-C, so I can't figure it out.

I've modified the QuartzLines Cocoa project to test drawing lines as flyweights.  I've created a singleton factory called KCLineFactory that stores an NSMutableDictionary of KCLine objects


I'm getting the following compiler error:

/Users/ryan/Downloads/QuartzLines/KCLineFactory.h:20: error: syntax error before 'KCLine'



and here is KCLineFactory.h:

1:  //

2:  //  LineFactory.h

3:  //  QuartzLines

4:  //

5:  //  Created by Ryan on 4/24/08.

6:  //  Copyright 2008 Initech, Inc.. All rights reserved.

7:  //

8:

9:  #import <Cocoa/Cocoa.h>

10: #import "KCLine.h"

11: #import "KCColor.h"

12:

13: @interface KCLineFactory : NSObject 

14: {

15: NSDictionary *linesByColor;

16: }

17:

18: + (KCLineFactory *)sharedKCLineFactory;

19:

20: - (KCLine *)getLineWithColor:(KCColor *)color;

21:

22: @end



KCLine and KCColor are objects defined in KCLine.m and KCColor.m
Where is the syntax error?


Thanks 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.