OpenGL Error

I created a class which uses a display list having a sphere and a torus (atom like). I kept on add more until I hit this error in XCode:

2009-02-18 18:12:50.225 openFrameworksDebug[2294:10b] *** -[GLUTView wantsLayer]: unrecognized selector sent to instance 0x47c050
2009-02-18 18:12:50.227 openFrameworksDebug[2294:10b] GLUT Fatal Error: internal error: NSInvalidArgumentException, reason: *** -[GLUTView wantsLayer]: unrecognized selector sent to instance 0x47c050

Any ideas?