Re: Can't seem to import QuartzCore.h correctly
Re: Can't seem to import QuartzCore.h correctly
- Subject: Re: Can't seem to import QuartzCore.h correctly
- From: "John C. Randolph" <email@hidden>
- Date: Sun, 22 Oct 2006 06:55:03 -0700
Just out of curiosity, I created a new project with a view subclass in
it, and declared a CIContext as an ivar:
#import <Cocoa/Cocoa.h>
@interface MyView : NSView {
CIContext *theContext;
}
@end
#import "MyView.h"
@implementation MyView
- (void)drawRect:(NSRect)rect {
[[NSColor blueColor] set];
NSRectFill(rect);
}
@end
No problem building and running it.
Note that I didn't need to import Quartz or QuartzCore, they were
picked up by importing Cocoa.h.
-jcr
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden