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

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

Reply via email to