[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple draw example?

From: Riccardo Mottola
Subject: Re: Simple draw example?
Date: Fri, 19 Mar 2010 20:59:54 +0100
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv: Gecko/20100109 SeaMonkey/2.0.1


Alen Balja wrote:
Hello all,

I've just discovered this amazing GNUstep compiler but I'm having trouble
finding examples. I've been searching for a simple tutorial that would show
me how to draw rectangle, circle, etc, but no luck.

I basically want to subclass NSView, do some magic there, then add this as a
sub view to the main window's view. I know it must be very simple and I
think I got the concept right, but I just can't connect all the dots being a
OC newbie.

there are several examples around, however if you dare to look at something a little more complicated, Graphos in GAP just draws circles, lines... there is a lot of code you don't need, but the concept of drawing is the same.

The view calls drawRect and there it calls all shapes to draw themselves, you can easily check the code. It is split up that way just for versatility.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]