• 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: NSStepper strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSStepper strangeness


  • Subject: Re: NSStepper strangeness
  • From: Thomas Lachand-Robert <email@hidden>
  • Date: Sun, 17 Mar 2002 21:11:44 +0100

Thanks a lot for your answer.

Le dimanche 17 mars 2002, ` 07:53 , Dietmar Planitzer a icrit :

Well, the core problem here is that you want to use GLUT with another GUI
framework. This mode of operation is not supported by GLUT no matter what
platform. While you may be able to mix and match stuff from GLUT and the
platform's own GUI framework, there is no guarantee that this works.

There is simply no way to correctly implement an API like GLUT such that it
can guarantee the same semantics as on X Windows and at the same time offer
the possiblity to mix it with another GUI framework like Cocoa, Carbon or
Java for that matter.

I managed to have it working approximately by using an NSTimer in place of the use of glutIdleFunc.


Anyway, I wonder why you are using GLUT at all in a Cocoa app. Couldn't you
use an NSOpenGLView instead ?


I'm currently porting a multiplatform computing application written one of my colleague. (See
http://lama-d134.univ-savoie.fr/~simon/guanaco.html
if you are interested.)

It has implementations working on Linux and Windows, with the UI interface handled by GLUT and something called GLUI (for buttons, etc.). I'm trying to keep its code and the GLUI code unchanged and I modify the calls to GLUT or GLUI to use Cocoa items. For the time being, there is still a number of GLUT things inside, but ultimately I may be able to remove them and use an NSOpenGLView instead (which will make life easier...) It turns out that the current code uses the idle function mainly to refresh UI and compute things so a Timer work as well.

Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.
_______________________________________________
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: NSStepper strangeness (From: Dietmar Planitzer <email@hidden>)

  • Prev by Date: Re: Trapping line breaks with a scanner
  • Next by Date: Re: abstract object of class NSCFDictionary?
  • Previous by thread: Re: NSStepper strangeness
  • Next by thread: didChangeText ???
  • Index(es):
    • Date
    • Thread