Navigation Menu

Skip to content

Commit

Permalink
Write an explanation for UI init failure's common case to stderr.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 27, 2004
1 parent 0ae331a commit c6ae79b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui_carbon.c
Expand Up @@ -25,7 +25,10 @@ int ui_init(void)
return(1);

if (CreateNibReference(CFSTR("mojopatch"), &nibRef) != noErr)
{
fprintf(stderr, "MOJOPATCH: You probably don't have a .nib file!\n");
return(0); /* usually .nib isn't found. */
} /* if */

err = SetMenuBarFromNib(nibRef, CFSTR("MenuBar"));
if (err == noErr)
Expand Down

0 comments on commit c6ae79b

Please sign in to comment.