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

150 строки
6.9 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=21853372.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="001969.html">
<LINK REL="Next" HREF="001961.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=21853372.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 11:00:25 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="001969.html">[Mono-osx] How to hide mono and windows form in Mac Dock
</A></li>
<LI>Next message: <A HREF="001961.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#1960">[ date ]</a>
<a href="thread.html#1960">[ thread ]</a>
<a href="subject.html#1960">[ subject ]</a>
<a href="author.html#1960">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On 02/05/2009 07:17 AM, d_v wrote:
&gt;<i>
</I>&gt;<i>
</I>&gt;<i> Sandy Armstrong wrote:
</I>&gt;&gt;<i> On 02/05/2009 05:29 AM, d_v wrote:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Sandy Armstrong wrote:
</I>&gt;&gt;&gt;&gt;<i> On 02/04/2009 01:16 PM, d_v wrote:
</I>&gt;&gt;&gt;&gt;&gt;<i> Hi there,
</I>&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&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;&gt;&gt;<i> running the equivalent Windows Form (application) on mono.
</I>&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;<i> However the script editor, mono, and sometiimes the form (windows state
</I>&gt;&gt;&gt;&gt;&gt;<i> is
</I>&gt;&gt;&gt;&gt;&gt;<i> set to minimized) are all visible in the Dock. I use a script to
</I>&gt;&gt;&gt;&gt;&gt;<i> launch
</I>&gt;&gt;&gt;&gt;&gt;<i> mono and the .exe.
</I>&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;<i> What do you advise is the best way to hide these programs from the
</I>&gt;&gt;&gt;&gt;&gt;<i> Dock?
</I>&gt;&gt;&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;&gt;&gt;<i> setup/or
</I>&gt;&gt;&gt;&gt;&gt;<i> code so I do not have to bother the user with setting this up.
</I>&gt;&gt;&gt;&gt;<i> Make a Mac app bundle. Download the OS X versions of MonoDevelop,
</I>&gt;&gt;&gt;&gt;<i> Banshee, or Tomboy for examples of how this is done. These are all gtk#
</I>&gt;&gt;&gt;&gt;<i> apps, but I don't see why it wouldn't work with winforms apps.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> By the way, there's a mono-osx list that might be more helpful with
</I>&gt;&gt;&gt;&gt;<i> future Mac questions.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Best,
</I>&gt;&gt;&gt;&gt;<i> Sandy
</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;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Thanks for the tip.
</I>&gt;&gt;&gt;<i> So I started looking up &quot;Mac bundles&quot; and I found this link:
</I>&gt;&gt;&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
</I>&gt;&gt;&gt;<i> at
</I>&gt;&gt;&gt;<i> the very end called &quot;Macpack, Mac OS X only&quot;
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Is this the way I do it? But I am not using cocoa sharp...
</I>&gt;&gt;<i> I don't personally know. Banshee has some stuff integrated in their
</I>&gt;&gt;<i> makefiles. When I make my bundles for Tomboy and Tasque I use a little
</I>&gt;&gt;<i> script:
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> <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>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Notice that in SVN I keep a &quot;skeleton&quot; of the .app hierarchy (in a
</I>&gt;&gt;<i> directory called &quot;osx&quot;). Then I just copy the skeleton and the binaries
</I>&gt;&gt;<i> to the right folder.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> You can right-click any app and &quot;Show Package Contents&quot; to get an idea
</I>&gt;&gt;<i> of how things are laid out, too.
</I>&gt;&gt;<i>
</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 Sandy,
</I>&gt;<i>
</I>&gt;<i> This creates a bundle for me nicley (Now it hides the apple script form the
</I>&gt;<i> Dock, but I still can't hide mono and my application from the Mac OS X
</I>&gt;<i> 10.5.6 dock).
</I>
Oh, I'm sorry, I misunderstood and thought you *wanted* your application
icon in the dock, just not all the extra ones. I don't know why you're
getting mono there...did you notice how the CFBundleExecutable for
Tomboy et al is a bash script that eventually does something like &quot;exec
mono Tomboy.exe&quot;? Maybe you should try to mirror that setup more.
Of course, if you don't want anything in the dock, I don't really know
what the best approach is. I think users expect that if they have GUIs
up in their face, there is a corresponding dock icon to click on.
Best,
Sandy
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="001969.html">[Mono-osx] How to hide mono and windows form in Mac Dock
</A></li>
<LI>Next message: <A HREF="001961.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#1960">[ date ]</a>
<a href="thread.html#1960">[ thread ]</a>
<a href="subject.html#1960">[ subject ]</a>
<a href="author.html#1960">[ 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>