• 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 an NSImage into a custom NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing an NSImage into a custom NSView


  • Subject: Re: Drawing an NSImage into a custom NSView
  • From: Josh Abernathy <email@hidden>
  • Date: Wed, 16 Oct 2002 08:10:08 -0400

-[NSView lockFocus] and -[NSView unlockFocus] are automatically called when
drawing in the view's drawRect method.
- josh


> From: email@hidden
> Reply-To: email@hidden
> Date: Tue, 15 Oct 2002 22:00:45 -0700
> To: email@hidden
> Subject: cocoa-dev digest, Vol 2 #1391 - 11 msgs
>
> However, looking at his code again, I see that it's not the solution to
> the problem after all - the actual problem is probably caused by the
> fact that the drawInRect command is not wrapped in a -[NSView
> lockFocus] and -[NSView unlockFocus]. If those methods are added, it
> will probably work.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: FwUp: Customizing NSSavePanel behavior - solution(?)
  • Next by Date: Re: how do I get the names of other runnings apps and start/stop one?
  • Previous by thread: Re: Drawing an NSImage into a custom NSView
  • Next by thread: Cocoa-nuts!
  • Index(es):
    • Date
    • Thread