[futurebasic] Menu nib won't load (-10 error)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2009 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Wed, 10 Jun 2009 19:33:00 -0400
I spent a ton of time making Compositor's menus as a nib, and for  
some reason it won't load.

I get a -10 error with SetMenuBarFromNib. The names are the correct  
ones as far as I can tell.


long if ( fn CreateNibReference( fn CFSTR("MainMenu"), @nib ) ==  
_noErr )
err = fn SetMenuBarFromNib( nib, fn CFSTR( "MenuBar" ) )  // MainMenu  
doesn't work either.
long if (err == _noErr)
<snipped>
xelse
stop STR$(err) // yields -10
end if
end if

Any suggestions? I can only find one reference on the web thus far  
and the solution was unclear. They mentioned trying CFShowPackage or  
something?
r
c