Re: Rects and points...
Re: Rects and points...
- Subject: Re: Rects and points...
- From: Riccardo Santato <email@hidden>
- Date: Wed, 21 Nov 2001 00:07:00 +0100
First of all , THANK YOU ALL !!!! :-))
You've been too kind for the lots of answers. The sad thing is that a
huge number of doubts raised into my head...
I think I had several problems in drawing this stupid thing just because
I really can't understand from the docs the meanings of the classes. If
you consider, my experiment was much greater than the real needs (I
involved convertPoint and many other things), as I was desperately trying
to get a grip on those things :
1) I can't understand the differences, NOW , between Rects, Views, Images
in the Cocoa environment...
2) I was trying to make the coordinates as much as view-relative as
possible. I figured a better way would have been to set them from the
origin of the view in a RELATIVE and not ABSOLUTE way. That's is also the
cause I used the convertPoint routines...
3) In the first example Tom sent me, there was just one function, in the
later one several... but... HOW can Cocoa know which one is to call at a
desired time without using NSTimer things or mouse /keyboard / task events ?!?
4) If a method like drawRect: is already present in the NSView class, why
must I repeat it ?
5) Why didn't Apple supplied GOOD step-by-step tutorials on graphic
handling, event handling, file handling and similar ?!?
Pardon me, I'm a newcomer in Apple programming, as far as under AmigaOS
3.9 was much much more simple !! :-))
Thank you again !
--
Riccardo Santato
www.riccardosantato.com