Re: How can I be so wrong about graphics?
Re: How can I be so wrong about graphics?
- Subject: Re: How can I be so wrong about graphics?
- From: Manfred Schwind <email@hidden>
- Date: Tue, 07 Jun 2011 08:22:34 +0200
> 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 the correct graphics context, coordinate system transformations etc. and then calls drawRect. If you call drawRect yourself (what you should never do!), you end up drawing into "somewhere".
Regards,
Mani
--
http://mani.de - friendly software
_______________________________________________
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