Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing in Darwin...



At 10:28 PM -0700 5/2/01, Ryan Dary wrote:
I would like to write a program for Darwin which will do some drawing on
the screen, is there an API for this at all? How does X11 and Window
Managers do it?

You need to decide where you want your program to run. If you are writing a program to run on Mac OS X, you have a vast array of options, but you will most likely want to stick with Carbon or Cocoa. These API's are off topic for this list, but are covered very well at Apple's Developers' Pages.

If you want to write for pure Darwin then I would suggest you use the X library and any of the various X toolkits. Darwin supports this through XFree86. There is a lot of information on the web on writing programs for the X window system.

X11 window managers use X library calls to draw to the screen. X11 window managers are just special clients of the X server, which actually does the drawing to the hardware. For a rudimentary introduction to the X Protocol and the client-server model, visit http://www.x.org/about_x.htm, which also has links to other resources for X development.

--Torrey




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.