mail-archives/mono-osx/2009-February/001956.html

118 строки
5.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] How to hide mono and windows form in Mac Dock
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20How%20to%20hide%20mono%20and%20windows%20form%20in%20Mac%20Dock&In-Reply-To=21851379.post%40talk.nabble.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="001955.html">
<LINK REL="Next" HREF="001957.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] How to hide mono and windows form in Mac Dock</H1>
<B>Sandy Armstrong</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20How%20to%20hide%20mono%20and%20windows%20form%20in%20Mac%20Dock&In-Reply-To=21851379.post%40talk.nabble.com"
TITLE="[Mono-osx] How to hide mono and windows form in Mac Dock">sanfordarmstrong at gmail.com
</A><BR>
<I>Thu Feb 5 09:39:42 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="001955.html">[Mono-osx] How to hide mono and windows form in Mac Dock
</A></li>
<LI>Next message: <A HREF="001957.html">[Mono-osx] How to hide mono and windows form in Mac Dock
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#1956">[ date ]</a>
<a href="thread.html#1956">[ thread ]</a>
<a href="subject.html#1956">[ subject ]</a>
<a href="author.html#1956">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On 02/05/2009 05:29 AM, d_v wrote:
&gt;<i>
</I>&gt;<i>
</I>&gt;<i> Sandy Armstrong wrote:
</I>&gt;&gt;<i> On 02/04/2009 01:16 PM, d_v wrote:
</I>&gt;&gt;&gt;<i> Hi there,
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> I figure I can not run my C# 2.0 .NET Windows Service on mono, so I am
</I>&gt;&gt;&gt;<i> running the equivalent Windows Form (application) on mono.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> However the script editor, mono, and sometiimes the form (windows state
</I>&gt;&gt;&gt;<i> is
</I>&gt;&gt;&gt;<i> set to minimized) are all visible in the Dock. I use a script to launch
</I>&gt;&gt;&gt;<i> mono and the .exe.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> What do you advise is the best way to hide these programs from the Dock?
</I>&gt;&gt;&gt;<i> I am hoping for a manual way to do this and maybe a way to do it in
</I>&gt;&gt;&gt;<i> setup/or
</I>&gt;&gt;&gt;<i> code so I do not have to bother the user with setting this up.
</I>&gt;&gt;<i> Make a Mac app bundle. Download the OS X versions of MonoDevelop,
</I>&gt;&gt;<i> Banshee, or Tomboy for examples of how this is done. These are all gtk#
</I>&gt;&gt;<i> apps, but I don't see why it wouldn't work with winforms apps.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> By the way, there's a mono-osx list that might be more helpful with
</I>&gt;&gt;<i> future Mac questions.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Best,
</I>&gt;&gt;<i> Sandy
</I>&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;<i> Mono-osx mailing list
</I>&gt;&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at lists.ximian.com</A>
</I>&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;<i>
</I>&gt;&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> Thanks for the tip.
</I>&gt;<i> So I started looking up &quot;Mac bundles&quot; and I found this link:
</I>&gt;<i> <A HREF="http://www.mono-project.com/Guide:Running_Mono_Applications">http://www.mono-project.com/Guide:Running_Mono_Applications</A> and a section at
</I>&gt;<i> the very end called &quot;Macpack, Mac OS X only&quot;
</I>&gt;<i>
</I>&gt;<i> Is this the way I do it? But I am not using cocoa sharp...
</I>
I don't personally know. Banshee has some stuff integrated in their
makefiles. When I make my bundles for Tomboy and Tasque I use a little
script:
<A HREF="http://svn.gnome.org/viewvc/tomboy/trunk/bundle-mac-app.sh?view=markup">http://svn.gnome.org/viewvc/tomboy/trunk/bundle-mac-app.sh?view=markup</A>
Notice that in SVN I keep a &quot;skeleton&quot; of the .app hierarchy (in a
directory called &quot;osx&quot;). Then I just copy the skeleton and the binaries
to the right folder.
You can right-click any app and &quot;Show Package Contents&quot; to get an idea
of how things are laid out, too.
Sandy
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="001955.html">[Mono-osx] How to hide mono and windows form in Mac Dock
</A></li>
<LI>Next message: <A HREF="001957.html">[Mono-osx] How to hide mono and windows form in Mac Dock
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#1956">[ date ]</a>
<a href="thread.html#1956">[ thread ]</a>
<a href="subject.html#1956">[ subject ]</a>
<a href="author.html#1956">[ 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>