Thanks to everyone that has responded to me. It has been a big help.

> > I want to draw in a NSView but not when drawRect is called.
>
> Others have pointed this out, but I want to reiterate: no you don't.
> Trying to draw outside of drawRect: will only lead to pain. (It is
> useful, on rare occasions. You are not experiencing one of them.) Work
> with the view machinery. Call -setNeedsDisplay:.
>

I understand that the preferred method of doing thing is do your drawing in
drawRect:. I would like to understand better what are the issues and draw
backs to using lockFocus and then drawing.

thanks
-dave
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to