Ah! It compiled. Thank you very much! And thanks to Michael for putting together the sample project.
Now to get the CALayer to draw a path. Most of the documentation I've seen suggest to do this with a delegate function, is that correct? Here is the delegate function I've written (a.k.a. copied from another program): //******************************************************************************** - (void)drawLayer:(CALayer *)theLayer inContext:(CGContextRef)theContext { CGMutablePathRef thePath = CGPathCreateMutable(); CGPathMoveToPoint(thePath,NULL,15.0f,15.f); CGPathAddCurveToPoint(thePath, NULL, 15.f,250.0f, 295.0f,250.0f, 295.0f,15.0f); CGContextBeginPath(theContext); CGContextAddPath(theContext, thePath ); CGContextSetLineWidth(theContext, 1); CGContextSetRGBStrokeColor(theContext,0.0,0.0,1.0,1.0); CGContextStrokePath(theContext); } //****************************************************** I'm just seeing the black background right now. Again, thanks for your help and sorry I'm such a pain :) On Sun, Apr 13, 2008 at 1:29 AM, Michael Watson <[EMAIL PROTECTED]> wrote: > I noticed: > > //GameBoard.h********************************************* > > #import <Cocoa/Cocoa.h> > > #import <Quartz/Quartz.h> > > > > You've added QuartzCore.framework, but Quartz.h isn't the top-level header > for QuartzCore. You're importing a header in a framework you aren't linking > to. > > Either link to Quartz.framework and import <Quartz/Quartz.h>, or link to > QuartzCore.framework and import <QuartzCore/QuartzCore.h>. > > > -- > m-s > > > > On 13 Apr, 2008, at 02:17, Greg Sabo wrote: > > > Hmm, I just added it, and I still get the same linking error. Any other > > ideas? > > > > I could probably use an example project which successfully uses > > CALayers, > > too. I can't find any on the net that are helpful. > > > > > > On Sat, Apr 12, 2008 at 7:36 PM, Michael Vannorsdel <[EMAIL PROTECTED]> > > wrote: > > > > Did you put the QuartzCore framework in your project Frameworks? The > > > linker needs to know about QuartzCore before it can find the CALayer > > > class > > > symbols. > > > > > > > > > On Apr 12, 2008, at 5:58 PM, Greg Sabo wrote: > > > > > > I'm a Compsci student trying to learn Cocoa development, and I'm > > > trying > > > > > > > to > > > > write a simple program using Core Animation, but I'm having a hard > > > > time > > > > getting it to work. I just need someone to tell me what I'm doing > > > > wrong > > > > so I > > > > can move on and screw up something else :) > > > > Thanks, and I apologize for the newbie question! > > > > > > > > > > > _______________________________________________ > > > > > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > > > > > 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: > > > http://lists.apple.com/mailman/options/cocoa-dev/gregsabo%40gmail.com > > > > > > This email sent to [EMAIL PROTECTED] > > > > > > _______________________________________________ > > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/gregsabo%40gmail.com > > This email sent to [EMAIL PROTECTED] > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]