• 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: From Carbon to Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Sending image from separate thread back to AppController
  • Next by Date: Re: Sending image from separate thread back to AppController
  • Previous by thread: Re: From Carbon to Cocoa
  • Next by thread: Question about how Cocoa handles multiple occurences of the same window
  • Index(es):
    • Date
    • Thread