• 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: How can I be so wrong about graphics?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I be so wrong about graphics?


  • Subject: Re: How can I be so wrong about graphics?
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 09 Jun 2011 16:08:26 -0700

On Mon, 06 Jun 2011 14:31:28 -0700, Development <email@hidden> said:
>According to like a million examples... If I place the follow bit of code in a view's drawRect: method I should get a line from pointA to pointB however I get nothing.

What I would suggest you do is start with code that *does* work and then modify it gradually so that it does what you want. When it breaks, that's when you broke it. :)

My book's Drawing chapter can be studied here:

  http://www.apeth.com/iOSBook/ch15.html

And even better, the example projects themselves can now be downloaded here:

  https://github.com/mattneub/Programming-iOS-4-Book-Examples

The point is that this way you can start with an *entire project* that works. When you copy and paste code into your own project, all kinds of conditions can be incorrect, but when you have an entire project that embodies the example code and that the author is telling you works right out of the box (just build and run and look at the result) you have a firm starting-place from which to experiment. m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Manually setting orientation makes a mess out of my interface
  • Next by Date: Re: tools for writing help books
  • Previous by thread: Re: How can I be so wrong about graphics?
  • Next by thread: Re: Handling mouse events on transparent window conditionally
  • Index(es):
    • Date
    • Thread