Re: NSOpenGLView and setNeedsDisplayInRect()...
Re: NSOpenGLView and setNeedsDisplayInRect()...
- Subject: Re: NSOpenGLView and setNeedsDisplayInRect()...
- From: Kyle Sluder <email@hidden>
- Date: Wed, 21 May 2014 16:09:27 -0700
On Wed, May 21, 2014, at 04:00 PM, Peters, Brandon wrote:
> Question:
>
> I have an NSOpenGLView with a ā3Dā table and a ball on top. The ball will
> move. Is it more efficient to use setNeedsDisplayInRect() and if so how
> would I do it for this 3D application? Thanks.
1. Objective-C methods don't have parentheses.
2. -setNeedsDisplayInRect: is only for standard AppKit 2D drawing. Once
you start involving OpenGL, all of that goes out the window.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden