[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some errors from Renaissance
From: |
Nicola Pero |
Subject: |
Re: Some errors from Renaissance |
Date: |
Wed, 21 Apr 2004 09:19:47 +0100 (BST) |
> Hi,
>
> Just report some error messages I got from Renaissance examples on Mac
> (10.3)
> The application works fine though.
> Tested on both binary and source code version of Renaissance.
>
> When compiling, it reports:
>
> Compiling file main.m ...
> gcc: -framework: linker input file unused because linking not done
> gcc: Renaissance: linker input file unused because linking not done
> Compiling file Calculator.m ...
> gcc: -framework: linker input file unused because linking not done
> gcc: Renaissance: linker input file unused because linking not done
Thanks - I fixed this, dirty compilation flags.
> When running, it reports:
>
> 2004-04-20 12:36:12.734 Calculator[766] Could not connect the action
> buttonPressed: to target of class NSApplication
> 2004-04-20 12:36:12.736 Calculator[766] Could not connect the action
> buttonPressed: to target of class NSApplication
> 2004-04-20 12:36:12.738 Calculator[766] Could not connect the action
> buttonPressed: to target of class NSApplication
> 2004-04-20 12:36:12.740 Calculator[766] Could not connect the action
> buttonPressed: to target of class NSApplication
It's not clear why this happens. It seems to happen whenever you call
NSApplicationMain () without loading a NIB - eg if you open up
ProjectBuilder with the default Cocoa application project, remove the
MainMenu NIB, then remove the setting of the main NIB from the Info.plist,
you get exactly the same error when NSApplicationMain () is executed; you
also get a default Apple application menu, -- which seems to be loaded
from a framework inside Carbon.framework ?
My guess is that this default NIB which is automatically loaded has got a
buttonPressed: action somewhere. Opening up the NIB (assuming it is the
one inside Carbon.framework) with Interface Builder does not have a
buttonPressed: action defined, but the menu items are bound to commands
(?) presumably those are later matched to Carbon callbacks via
buttonPressed: ?
Anyway, the warnings seem to be harmless (if not for the fact that it
seems to imply that Cocoa is wasting startup time by loading a default NIB
which is never displayed or used), and maybe we should add -
@implementation NSApplication (shutCocoaUp)
- (void) buttonPressed: (id)sender
{
/* Do nothing */
}
@end
which shuts Cocoa up, and the buttonPressed: method is never actually
called.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Some errors from Renaissance,
Nicola Pero <=