Re: From Carbon to Cocoa
Re: From Carbon to Cocoa
- Subject: Re: From Carbon to Cocoa
- From: Mel Walker <email@hidden>
- Date: Tue, 20 Jul 2004 16:13:25 -0600
On Jul 20, 2004, at 3:37 PM, Scott Thompson <email@hidden> wrote:
On Jul 20, 2004, at 2:57 PM, Tim Conkling wrote:
Specifically, I'm currently trying to figure out the relationship
between NSWindows, NSViews, and CGContexts so that I can use Quartz
APIs (also new to me; I'm used to QD) to draw things into a window.
NSWindow is like a Carbon WindowRef.
NSView is a rectangular drawing area within an NSWindow that knows how
to respond to events as well.
And it's the NSView you want to subclass, if you need a subclass. Not
the NSWindow.
Just do your drawing in the NSView's drawRect: method.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.