• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fwd: Drawing in custom views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Questions About Hiring a Programmer
  • Next by Date: Replacement for openUntitledDocumentOfType:display:?
  • Previous by thread: Fwd: Drawing in custom views
  • Next by thread: Questions About Hiring a Programmer
  • Index(es):
    • Date
    • Thread