• 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: NSOpenGLView and setNeedsDisplayInRect()...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSOpenGLView and setNeedsDisplayInRect()... (From: "Peters, Brandon" <email@hidden>)

  • Prev by Date: NSOpenGLView and setNeedsDisplayInRect()...
  • Next by Date: Re: CGDisplaySetDisplayMode only working properly after calling twice in a row
  • Previous by thread: NSOpenGLView and setNeedsDisplayInRect()...
  • Next by thread: Don't stop the music
  • Index(es):
    • Date
    • Thread