Re: Drawing an NSImage into a custom NSView
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.