mail-archives/mono-osx/2010-October/003232.html

173 строки
8.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] NSApp global
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20NSApp%20global&In-Reply-To=C8EE0E8E.3803%25gnorton%40novell.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="003231.html">
<LINK REL="Next" HREF="003233.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] NSApp global</H1>
<B>David Rivera</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20NSApp%20global&In-Reply-To=C8EE0E8E.3803%25gnorton%40novell.com"
TITLE="[Mono-osx] NSApp global">mithril at me.com
</A><BR>
<I>Wed Oct 27 17:24:26 EDT 2010</I>
<P><UL>
<LI>Previous message: <A HREF="003231.html">[Mono-osx] NSApp global
</A></li>
<LI>Next message: <A HREF="003233.html">[Mono-osx] NSApp global
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3232">[ date ]</a>
<a href="thread.html#3232">[ thread ]</a>
<a href="subject.html#3232">[ subject ]</a>
<a href="author.html#3232">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>I think I originally sent the reply wrong, so here it is again.
The attached test case always shows NSApplication.SharedApplication as null for me.
-Dave R
On Oct 27, 2010, at 4:15 PM, Geoff Norton wrote:
&gt;<i> Just zip it up and email it.
</I>&gt;<i>
</I>&gt;<i> From: David Rivera &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">mithril at me.com</A>&gt;
</I>&gt;<i> Date: Wed, 27 Oct 2010 16:14:06 -0500
</I>&gt;<i> To: &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">gnorton.novell at gmail.com</A>&gt;, Mono-osx Mailing List List &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">mono-osx at lists.ximian.com</A>&gt;
</I>&gt;<i> Subject: Re: [Mono-osx] NSApp global
</I>&gt;<i>
</I>&gt;<i> How would you like the test case? Given its a monomac app, several files involved, including a xib file, not quite sure how to consolodate that so that it would be useful for you...
</I>&gt;<i>
</I>&gt;<i> -Dave R
</I>&gt;<i>
</I>&gt;<i> On Oct 27, 2010, at 4:09 PM, Geoff Norton wrote:
</I>&gt;<i>
</I>&gt;&gt;<i> Could you please send me a test case?
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> From: David Rivera &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">mithril at me.com</A>&gt;
</I>&gt;&gt;<i> Date: Wed, 27 Oct 2010 16:08:29 -0500
</I>&gt;&gt;<i> To: &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">gnorton.novell at gmail.com</A>&gt;, Mono-osx Mailing List List &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">mono-osx at lists.ximian.com</A>&gt;
</I>&gt;&gt;<i> Subject: Re: [Mono-osx] NSApp global
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> The app has fully loaded. I am trying to do it via a button click in the main window, and everything else in the window is working. I am accessing it from the main windows controller class where my button action is handled, currently.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> -Dave Rivera
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> On Oct 27, 2010, at 4:05 PM, Geoff Norton wrote:
</I>&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> When are you doing it?
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Has NSApplication kicked into the NSApplicationDelegate (or later) ?
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> -g
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> From: David Rivera &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">mithril at me.com</A>&gt;
</I>&gt;&gt;&gt;<i> Date: Wed, 27 Oct 2010 16:02:14 -0500
</I>&gt;&gt;&gt;<i> To: &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">gnorton.novell at gmail.com</A>&gt;, Mono-osx Mailing List List &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">mono-osx at lists.ximian.com</A>&gt;
</I>&gt;&gt;&gt;<i> Subject: Re: [Mono-osx] NSApp global
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> This doesn't seem to be getting populated. I'm trying to get a sheet working, but NSApplication.SharedApplication always seems to be null for me. Any ideas why?
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> -Dave Rivera
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> On Oct 27, 2010, at 9:05 AM, Geoff Norton wrote:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> NSApplication.SharedApplication if I remember correctly.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> -g
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> From: &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">gareth.baker at stfc.ac.uk</A>&gt;
</I>&gt;&gt;&gt;&gt;<i> Date: Wed, 27 Oct 2010 11:17:55 +0100
</I>&gt;&gt;&gt;&gt;<i> To: &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">gnorton.novell at gmail.com</A>&gt;, &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">mono-osx at lists.ximian.com</A>&gt;
</I>&gt;&gt;&gt;&gt;<i> Subject: [Mono-osx] NSApp global
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> In the objective-C Cocoa world the variable NSApp is declared globally. Is there an equivalent global variable in MonoMac?
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Thanks
</I>&gt;&gt;&gt;&gt;<i> Gareth Baker
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> ----
</I>&gt;&gt;&gt;&gt;<i> Ecc 10 vv8&amp;9
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Whoever digs a pit may fall into it;
</I>&gt;&gt;&gt;&gt;<i> whoever breaks through a wall may be bitten by a snake.
</I>&gt;&gt;&gt;&gt;<i> Whoever quarries stones may be injured by them;
</I>&gt;&gt;&gt;&gt;<i> whoever splits logs may be endangered by them.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> ca 250-200BC
</I>&gt;&gt;&gt;&gt;<i> (the first Risk Assessment?)
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> --
</I>&gt;&gt;&gt;&gt;<i> Scanned by iCritical.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> _______________________________________________ Mono-osx mailing list <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at lists.ximian.comhttp</A>://lists.ximian.com/mailman/listinfo/mono-osx
</I>&gt;&gt;&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;&gt;&gt;<i> Mono-osx mailing list
</I>&gt;&gt;&gt;&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at lists.ximian.com</A>
</I>&gt;&gt;&gt;&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</A>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> _______________________________________________ Mono-osx mailing list <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at lists.ximian.comhttp</A>://lists.ximian.com/mailman/listinfo/mono-osx
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> _______________________________________________ Mono-osx mailing list <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at lists.ximian.comhttp</A>://lists.ximian.com/mailman/listinfo/mono-osx
</I>&gt;<i>
</I>&gt;<i> _______________________________________________ Mono-osx mailing list <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at lists.ximian.com</A> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</A>
</I>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20101027/94c14e30/attachment-0002.html">http://lists.ximian.com/pipermail/mono-osx/attachments/20101027/94c14e30/attachment-0002.html</A>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestingNSApp.zip
Type: application/zip
Size: 24433 bytes
Desc: not available
Url : <A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20101027/94c14e30/attachment-0001.zip">http://lists.ximian.com/pipermail/mono-osx/attachments/20101027/94c14e30/attachment-0001.zip</A>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20101027/94c14e30/attachment-0003.html">http://lists.ximian.com/pipermail/mono-osx/attachments/20101027/94c14e30/attachment-0003.html</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="003231.html">[Mono-osx] NSApp global
</A></li>
<LI>Next message: <A HREF="003233.html">[Mono-osx] NSApp global
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3232">[ date ]</a>
<a href="thread.html#3232">[ thread ]</a>
<a href="subject.html#3232">[ subject ]</a>
<a href="author.html#3232">[ 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>