Maybe I spoke too soon. Compilation was successful but I got two
warnings which are causing runtime issues.
<snip>
/Users/ryan/Downloads/QuartzLines/KCLineFactory.m:36: warning:
receiver 'KCLine' is a forward class and corresponding @interface
may not exist
In KCLineFactory.m you still need to:
#import "KCLine.h"
#import "KCColor.h"
Users/ryan/Downloads/QuartzLines/KCLineFactory.m:37: warning:
'NSDictionary' may not respond to '-setObject:forKey:'
The reason for this warning is that the type of "linesByColor" is
NSDictionary instead of NSMutableDictionary.
I've lookup up the "forward class..." error and it seems this is
caused by @class KCLine; Does anyone ever use the old C trick for
Obj-C header files ?
#ifndef _STDIO_H_
#define _STDIO_H_
/* contents of stdio.h */
#endif
No. You don't need to do that as long as you use forward declarations
and #import statements as has been suggested in this thread.
j o a r
_______________________________________________
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