• 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: Can't seem to import QuartzCore.h correctly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Can't seem to import QuartzCore.h correctly
      • From: "Carter R. Harrison" <email@hidden>
References: 
 >Can't seem to import QuartzCore.h correctly (From: "Carter R. Harrison" <email@hidden>)

  • Prev by Date: Re: NIB Files + Views. Is it a good practice?
  • Next by Date: Re: NIB Files + Views. Is it a good practice?
  • Previous by thread: Re: Can't seem to import QuartzCore.h correctly
  • Next by thread: Re: Can't seem to import QuartzCore.h correctly
  • Index(es):
    • Date
    • Thread