• 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: Drawing from lower left, why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing from lower left, why?


  • Subject: Re: Drawing from lower left, why?
  • From: Michael Watson <email@hidden>
  • Date: Mon, 18 Jun 2007 10:39:55 -0400

I don't see why it wouldn't. The graphics state is saved and a new one gets pushed onto the stack by the time a view's -drawRect: method gets called. After -drawRect: returns, the graphics state is restored.


-- m-s

On 17 Jun, 2007, at 15:05, Ken Tozier wrote:

The save and restore graphics state is unneeded in the above.

The drawCells method uses transforms to scale page icons and I just wanted to make sure that, upon exit, drawRect restored everything.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Drawing from lower left, why? (From: Ken Tozier <email@hidden>)
 >[Moderator] Drawing from lower left, why? (From: cocoa-dev-admins <email@hidden>)
 >Re: [Moderator] Drawing from lower left, why? (From: Ken Tozier <email@hidden>)
 >Re: [Moderator] Drawing from lower left, why? (From: Shawn Erickson <email@hidden>)
 >Re: Drawing from lower left, why? (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: NSImageView + NSViewAnimation
  • Next by Date: Re: Drawing from lower left, why?
  • Previous by thread: Re: Drawing from lower left, why?
  • Next by thread: Re: Drawing from lower left, why?
  • Index(es):
    • Date
    • Thread