Re: GLUT and nib files, creates more than one app on 10.2
Re: GLUT and nib files, creates more than one app on 10.2
- Subject: Re: GLUT and nib files, creates more than one app on 10.2
- From: Jörn Salewski <email@hidden>
- Date: Fri, 23 Jan 2004 08:59:49 +0100
Hi,
Sounds very much like the problem I had a few months ago. If you load a nib
file programmatically, make sure that in the nib file
a) the file owner is not NSApplication
b) you don't have a proxy instance of NSApp
In my case I somehow managed to do b in one of my nib files. This had no
impact on 10.3 but on 10.2 it prevented to load the nib and gave out the
"trying to create more than one application" error.
Hope this helps,
Joern Salewski
am 22.01.2004 23:54 Uhr schrieb Daniel Aarno unter
email@hidden:
>
Hi all!
>
>
I'm working on a project that uses GLUT and some Cocoa classes. What
>
happens is that after I enter the glutMainLoop() I want to load a nib
>
file. I do this using:
>
>
[NSBundle loadNibNamed:@"CocoaGameStarter" owner : self];
>
>
On 10.3 this works like a charm. On 10.2 on the other hand the
>
application exits because of an "internal glut error: trying to create
>
more than one application.". Running the debugger shows that
>
[NSApplication init] is called from within loadNibNamed: owner : on
>
10.2 but not on 10.3. Anyone have any ideas about how to solve this?
>
>
/Bishop
>
_______________________________________________
>
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.
_______________________________________________
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.