• 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
saveGraphicsState vs. lockFocus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

saveGraphicsState vs. lockFocus


  • Subject: saveGraphicsState vs. lockFocus
  • From: "Eric Lin" <email@hidden>
  • Date: Tue, 2 May 2006 13:07:55 -0700

I'm a bit confused as to what's the difference between calling
saveGraphicsState (NSGraphicsContext) and lockFocus (NSView).  They
appear to be doing something quite similar.  Does lockFocus simply
invoke saveGraphicsState?

And when should saveGraphicsState and lockFocus be called?  (whenever
I use functions like NSRectFill() and matrix transformation matrix?)

Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: saveGraphicsState vs. lockFocus
      • From: Scott Thompson <email@hidden>
  • Prev by Date: Re: Refactoring tools available for Cocoa / ObjC?
  • Next by Date: NSTokenField, how to query the selection?
  • Previous by thread: TableView binded to an Arraycontroller - How to customize sorts ?
  • Next by thread: Re: saveGraphicsState vs. lockFocus
  • Index(es):
    • Date
    • Thread