• 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: How to Solve the Refreshing Problems of NSOpenGLView Placed in a NSScrollVIew
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Solve the Refreshing Problems of NSOpenGLView Placed in a NSScrollVIew


  • Subject: Re: How to Solve the Refreshing Problems of NSOpenGLView Placed in a NSScrollVIew
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 28 Nov 2005 10:21:51 +0100

Am 28.11.2005 um 07:24 schrieb Janakiram:
I have placed nsopenglview in a nsscrollview. While moving the scroller the nsopenglview is not updating properly.
I tried to call the drawrect directly from the reshape method.And also tried to call flushbuffer method on openglcontext. But these didn't solve my problem.
Please help me to solve this. Thanks in Advance.

You posted the same message with the subject "Problems with NSOpenGLView in a Scroll View." not even 24 hours ago. Don't you want to give the people a couple of days to actually see your message and answer it? If you're so eager to get this resolved, I'd suggest you invest some of your own time and search http://www.cocoadev.com, http://www.cocoabuilder.com and of course http://www.google.com for possible answers on this problem.


I'm no authority on NSOpenGLView, but AFAIK it's a very special view that is intended only to be used as a static area containing OpenGL in a window, and due to the way OpenGL is painted into a Cocoa Window, a lot of stuff doesn't work for it as it does for other views. E.g. if you searched the list archives, you'd see that you can't have a button on top of an OpenGL view without it looking odd (i.e. the shadow won't alpha-blend in correctly etc.). So, I wouldn't be surprised if the OpenGL view didn't support scrolling and clipping.

Oh, another link you may want to check out is http:// developer.apple.com/. I just entered "NSOpenGLView" in the search box there and found the following:

http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSOpenGLView.html#//apple_ref/occ/ instm/NSOpenGLView/reshape

http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSOpenGLView.html#//apple_ref/occ/ instm/NSOpenGLView/update

I'd guess that trying to explicity call these methods might do the trick. It also brought up

	http://developer.apple.com/qa/qa2004/qa1167.html

Which sounds useful as well.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How to Solve the Refreshing Problems of NSOpenGLView Placed in a NSScrollVIew (From: Janakiram <email@hidden>)

  • Prev by Date: Re: Date to string
  • Next by Date: Re: Is Apple's singleton sample code correct?
  • Previous by thread: How to Solve the Refreshing Problems of NSOpenGLView Placed in a NSScrollVIew
  • Next by thread: NSOutlineView
  • Index(es):
    • Date
    • Thread