зеркало из https://github.com/mono/mail-archives.git
132 строки
4.5 KiB
HTML
132 строки
4.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-osx] NIB files in non-executable assemby problem
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=Re%3A%20%5BMono-osx%5D%20NIB%20files%20in%20non-executable%20assemby%20problem&In-Reply-To=%3COFB62561DB.1348FE74-ON8625799F.005DDCE5-8625799F.0060558D%40ni.com%3E">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<style type="text/css">
|
|
pre {
|
|
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
|
|
}
|
|
</style>
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="004766.html">
|
|
<LINK REL="Next" HREF="004769.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-osx] NIB files in non-executable assemby problem</H1>
|
|
<B>Chris Hamons</B>
|
|
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=Re%3A%20%5BMono-osx%5D%20NIB%20files%20in%20non-executable%20assemby%20problem&In-Reply-To=%3COFB62561DB.1348FE74-ON8625799F.005DDCE5-8625799F.0060558D%40ni.com%3E"
|
|
TITLE="[Mono-osx] NIB files in non-executable assemby problem">chris.hamons at ni.com
|
|
</A><BR>
|
|
<I>Thu Feb 9 17:32:11 UTC 2012</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="004766.html">[Mono-osx] Solved (regarding bmac / dylib)
|
|
</A></li>
|
|
<LI>Next message: <A HREF="004769.html">[Mono-osx] NIB files in non-executable assemby problem
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#4768">[ date ]</a>
|
|
<a href="thread.html#4768">[ thread ]</a>
|
|
<a href="subject.html#4768">[ subject ]</a>
|
|
<a href="author.html#4768">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>I'm working with monomac and am trying to port some code. I'm unsure if
|
|
this is a problem with my code, with my project build settings, or an
|
|
actual bug. Any help would be appreciated:
|
|
|
|
I have two assemblies of interest, one setup as a Library and the other as
|
|
an Executable (that depends on the Library). The code in question is
|
|
roughly:
|
|
|
|
Executable Assembly:
|
|
|
|
static void Main (string [] args)
|
|
{
|
|
MyApplication.Run();
|
|
}
|
|
|
|
Library Assembly:
|
|
|
|
(MyApplication)
|
|
public static void Run()
|
|
{
|
|
try
|
|
{
|
|
NSApplication.Init ();
|
|
NSApplication.Main(new string[] {});
|
|
}
|
|
catch (Exception exception)
|
|
{
|
|
}
|
|
}
|
|
|
|
|
|
(AppDelegate)
|
|
public override void FinishedLaunching (NSObject notification)
|
|
{
|
|
mainWindowController = new MyController();
|
|
mainWindowController.Window.MakeKeyAndOrderFront(this);
|
|
}
|
|
|
|
|
|
// Call to load from the XIB/NIB file
|
|
public MyController() : base ("MyController")
|
|
{
|
|
Initialize ();
|
|
}
|
|
|
|
|
|
The Library Assembly also contains MyController.xib.
|
|
|
|
|
|
If I run the project as listed, mainWindowController.Window is null (and
|
|
thus I crash) and in some conditions I get a print to Application Output
|
|
about difficulty finding the xib file.
|
|
|
|
If I add a reference to MyController.xib in my executable assembly then I
|
|
see my window just fine.
|
|
|
|
Is there any way I can make this work without having to add this
|
|
reference? I've tried changing the build setting in MyController.xib in
|
|
the Library assembly to no effect.
|
|
|
|
If my example is unclear, I can create a simple project that shows this if
|
|
necessary.
|
|
|
|
Thanks,
|
|
--Chris
|
|
-------------- next part --------------
|
|
An HTML attachment was scrubbed...
|
|
URL: <<A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20120209/208a133d/attachment.html">http://lists.ximian.com/pipermail/mono-osx/attachments/20120209/208a133d/attachment.html</A>>
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="004766.html">[Mono-osx] Solved (regarding bmac / dylib)
|
|
</A></li>
|
|
<LI>Next message: <A HREF="004769.html">[Mono-osx] NIB files in non-executable assemby problem
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#4768">[ date ]</a>
|
|
<a href="thread.html#4768">[ thread ]</a>
|
|
<a href="subject.html#4768">[ subject ]</a>
|
|
<a href="author.html#4768">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
|
|
mailing list</a><br>
|
|
</body></html>
|