• 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: Object not being drawn in Cmd + N. Why? SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Object not being drawn in Cmd + N. Why? SOLVED
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Operations Beachball
  • Next by Date: Cascading windows
  • Previous by thread: Re: Cocoaheads Lake Forest meets tonight
  • Next by thread: Re: Object not being drawn in Cmd + N. Why? SOLVED
  • Index(es):
    • Date
    • Thread