[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx: [253] branches/fusegl/fuse/fusepb/views
Brought to you by:
fredm
From: <fr...@us...> - 2006-12-19 10:41:44
|
Revision: 253 http://svn.sourceforge.net/fuse-for-macosx/?rev=253&view=rev Author: fredm Date: 2006-12-19 02:41:41 -0800 (Tue, 19 Dec 2006) Log Message: ----------- Need to initialise fuse in awakeFromNib as outlets are not set until then. Modified Paths: -------------- branches/fusegl/fuse/fusepb/views/DisplayOpenGLView.h branches/fusegl/fuse/fusepb/views/DisplayOpenGLView.m Modified: branches/fusegl/fuse/fusepb/views/DisplayOpenGLView.h =================================================================== --- branches/fusegl/fuse/fusepb/views/DisplayOpenGLView.h 2006-12-19 06:40:16 UTC (rev 252) +++ branches/fusegl/fuse/fusepb/views/DisplayOpenGLView.h 2006-12-19 10:41:41 UTC (rev 253) @@ -49,5 +49,6 @@ -(void) updateEmulationForTimeDelta:(CFAbsoluteTime)deltaTime; -(id) initWithFrame:(NSRect)frameRect; +-(void) awakeFromNib; @end Modified: branches/fusegl/fuse/fusepb/views/DisplayOpenGLView.m =================================================================== --- branches/fusegl/fuse/fusepb/views/DisplayOpenGLView.m 2006-12-19 06:40:16 UTC (rev 252) +++ branches/fusegl/fuse/fusepb/views/DisplayOpenGLView.m 2006-12-19 10:41:41 UTC (rev 253) @@ -76,14 +76,17 @@ screenTexInitialised = NO; + return self; +} + +-(void) awakeFromNib +{ // FIXME: Do all the stuff that SDLMain.mm used // to do command line wise, drag-n-drop etc. here? // FIXME: Don't really like the argc, argv stuff being here... if( fuse_init( ac, av ) ) { fprintf( stderr, "%s: error initialising -- giving up!\n", fuse_progname ); } - - return self; } - (void)drawRect:(NSRect)aRect This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |