• 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 from a second NSThread (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenGLView from a second NSThread (SOLVED)


  • Subject: Re: NSOpenGLView from a second NSThread (SOLVED)
  • From: Nicolas Berloquin <email@hidden>
  • Date: Sat, 22 May 2004 17:59:33 +0200

OK, so that people can benefit from this in the future, here is what I
did,
thanks to suggestions :

I overrided the following methods :
- (void) prepareOpenGL;
- (void) drawRect:(NSRect)rect;
- (void) clearGLContext;

- (void)update;
- (void)reshape;


and in clearGLContext, update and reshape, all I do is call :
for example, for update :
{
[mylock lock];
[super update];
[mylock unlock];
}

and I brace any other method with the same NSLock and no more Kernel
Panics !
But as alex said, user-space code should NEVER hose the kernel. Let us
write
the bugs we want, for christ sake ^_^

thanks to alex and shaun for their help and brent for his eagerness ;-)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: NSOpenGLView from a second NSThread (From: Alex Eddy <email@hidden>)

  • Prev by Date: NSTableView and NSArrayController
  • Next by Date: Re: Menu-less popup buttons
  • Previous by thread: Re: NSOpenGLView from a second NSThread
  • Next by thread: Utility Panel and Child Windows
  • Index(es):
    • Date
    • Thread