Re: How can I be so wrong about graphics?

2011-06-09 Thread Matt Neuburg
On Mon, 06 Jun 2011 14:31:28 -0700, Development developm...@fornextsoft.com 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

Re: How can I be so wrong about graphics?

2011-06-07 Thread Manfred Schwind
Hmm... it looks like it does draw the line... way off in the ether somewhere... I think I drew in the global coord system not the local to the view Are you sure you are _not_ calling drawRect yourself, but let the system call it when needed? If a view needs to be redrawn, the system sets up

How can I be so wrong about graphics?

2011-06-06 Thread Development
I'm really loosing faith in my ability to read simple english 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. How can subclassing UIView be this difficult? I have turned off

Re: How can I be so wrong about graphics?

2011-06-06 Thread David Duncan
On Jun 6, 2011, at 2:31 PM, Development wrote: I'm really loosing faith in my ability to read simple english 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. How can

Re: How can I be so wrong about graphics?

2011-06-06 Thread Andy Lee
How do you know you are getting an empty path? Did you put a breakpoint in the code and step through with the debugger? Is it possible you forgot to assign the view class in IB? --Andy On Jun 6, 2011, at 2:31 PM, Development developm...@fornextsoft.com wrote: I'm really loosing faith in my

Re: How can I be so wrong about graphics?

2011-06-06 Thread Development
Hmm... it looks like it does draw the line... way off in the ether somewhere... I think I drew in the global coord system not the local to the view On Jun 6, 2011, at 2:37 PM, David Duncan wrote: On Jun 6, 2011, at 2:31 PM, Development wrote: I'm really loosing faith in my ability to read

Re: How can I be so wrong about graphics?

2011-06-06 Thread Evadne Wu
Something along the line of [self convertPoint:aPoint fromView:nil] should do the trick, if you’re very sure that the points were global. Hope it helps. -ev On Jun 7, 2011, at 05:51, Development wrote: Hmm... it looks like it does draw the line... way off in the ether somewhere... I think

Re: How can I be so wrong about graphics?

2011-06-06 Thread David Duncan
If you are unsure, I would start with the line from 0,0 to bounds.size.width,bounds.size.height. On Jun 6, 2011, at 2:51 PM, Development wrote: Hmm... it looks like it does draw the line... way off in the ether somewhere... I think I drew in the global coord system not the local to the view