Re: Fwd: Drawing in custom views
Re: Fwd: Drawing in custom views
- Subject: Re: Fwd: Drawing in custom views
- From: email@hidden
- Date: Sat, 24 Dec 2005 18:19:38 EST
The explanation of your problem was incomprehensible to me. You might
benefit from posting code.
Short of that, here are some basic guidelines:
1) All custom view drawing should take place within the -drawRect: method of
the custom view.
2) Unless you have done something to change it, the view's coordinate system
has its origin in the lower left cornet of the view.
3) The Anguish, Buck, Yacktman book's examples can be downloaded from
_www.cocoaprogramming.net_ (
http://www.cocoaprogramming.net/) , and as far as I
know, the examples all work.
4) There are several samples on Apple's web site that implement drawing in a
custom view.
Drawing with Cocoa is generally trivially simple, so I am guessing you are
doing something very basic wrong. Try reading the earlier chapters in "Cocoa
Programming" and Apple's conceptual documentation on the topic. I am sure
you will have the critical "Ah ha" moment.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden