I’m trying to translate a Qt project in Objective-C
It is a blockbraker.
I need to find the equivalent for QPainter, un Qt object that call the Windows fonction to draw something on the screen.
So I need anything that allows me to draw lines, ellipse and, most important of all, png images.
Thanks
You’ll want to have a look at the Cocoa Drawing Guide, which explains how to draw things in Cocoa. Specifically, the
NSBezierPathlets you draw shapes, andNSImagelets you work with PNGs. But there are other classes you need to know about in order to change colors, etc.