Re: Object not being drawn in Cmd + N. Why? SOLVED
Re: Object not being drawn in Cmd + N. Why? SOLVED
- Subject: Re: Object not being drawn in Cmd + N. Why? SOLVED
- From: Peter Teeson <email@hidden>
- Date: Wed, 05 Dec 2012 13:59:13 -0500
On Oct 25th 2012 I posted about this.
I finally got around to digging into what the cause was and have now got my app working correctly (or at least the way I want it to).
In summary it was all related to saving and restoring the graphic context correctly in -drawRect.
In my case I use a number of gradients as well a bezier paths and the crucial thing was to understand just where and when to save/restore the context.
None of the tools available were of much use, nor was output in the debugger, either console, stack, or variables. It came down to good old-fashioned slicing drawRect till I discovered the cause.
So I'm very glad the problem occurred and forced me to research it. I learned a great deal and as the saying goes "K is P".
Peter
_______________________________________________
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