зеркало из https://github.com/mono/mail-archives.git
150 строки
6.9 KiB
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:
|
|
><i>
|
|
</I>><i>
|
|
</I>><i> Sandy Armstrong wrote:
|
|
</I>>><i> On 02/05/2009 05:29 AM, d_v wrote:
|
|
</I>>>><i>
|
|
</I>>>><i> Sandy Armstrong wrote:
|
|
</I>>>>><i> On 02/04/2009 01:16 PM, d_v wrote:
|
|
</I>>>>>><i> Hi there,
|
|
</I>>>>>><i>
|
|
</I>>>>>><i> I figure I can not run my C# 2.0 .NET Windows Service on mono, so I am
|
|
</I>>>>>><i> running the equivalent Windows Form (application) on mono.
|
|
</I>>>>>><i>
|
|
</I>>>>>><i> However the script editor, mono, and sometiimes the form (windows state
|
|
</I>>>>>><i> is
|
|
</I>>>>>><i> set to minimized) are all visible in the Dock. I use a script to
|
|
</I>>>>>><i> launch
|
|
</I>>>>>><i> mono and the .exe.
|
|
</I>>>>>><i>
|
|
</I>>>>>><i> What do you advise is the best way to hide these programs from the
|
|
</I>>>>>><i> Dock?
|
|
</I>>>>>><i> I am hoping for a manual way to do this and maybe a way to do it in
|
|
</I>>>>>><i> setup/or
|
|
</I>>>>>><i> code so I do not have to bother the user with setting this up.
|
|
</I>>>>><i> Make a Mac app bundle. Download the OS X versions of MonoDevelop,
|
|
</I>>>>><i> Banshee, or Tomboy for examples of how this is done. These are all gtk#
|
|
</I>>>>><i> apps, but I don't see why it wouldn't work with winforms apps.
|
|
</I>>>>><i>
|
|
</I>>>>><i> By the way, there's a mono-osx list that might be more helpful with
|
|
</I>>>>><i> future Mac questions.
|
|
</I>>>>><i>
|
|
</I>>>>><i> Best,
|
|
</I>>>>><i> Sandy
|
|
</I>>>>><i> _______________________________________________
|
|
</I>>>>><i> Mono-osx mailing list
|
|
</I>>>>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at lists.ximian.com</A>
|
|
</I>>>>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</A>
|
|
</I>>>>><i>
|
|
</I>>>>><i>
|
|
</I>>>><i>
|
|
</I>>>><i> Thanks for the tip.
|
|
</I>>>><i> So I started looking up "Mac bundles" and I found this link:
|
|
</I>>>><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>>>><i> at
|
|
</I>>>><i> the very end called "Macpack, Mac OS X only"
|
|
</I>>>><i>
|
|
</I>>>><i> Is this the way I do it? But I am not using cocoa sharp...
|
|
</I>>><i> I don't personally know. Banshee has some stuff integrated in their
|
|
</I>>><i> makefiles. When I make my bundles for Tomboy and Tasque I use a little
|
|
</I>>><i> script:
|
|
</I>>><i>
|
|
</I>>><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>>><i>
|
|
</I>>><i> Notice that in SVN I keep a "skeleton" of the .app hierarchy (in a
|
|
</I>>><i> directory called "osx"). Then I just copy the skeleton and the binaries
|
|
</I>>><i> to the right folder.
|
|
</I>>><i>
|
|
</I>>><i> You can right-click any app and "Show Package Contents" to get an idea
|
|
</I>>><i> of how things are laid out, too.
|
|
</I>>><i>
|
|
</I>>><i> Sandy
|
|
</I>>><i> _______________________________________________
|
|
</I>>><i> Mono-osx mailing list
|
|
</I>>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at lists.ximian.com</A>
|
|
</I>>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</A>
|
|
</I>>><i>
|
|
</I>>><i>
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i> Thanks Sandy,
|
|
</I>><i>
|
|
</I>><i> This creates a bundle for me nicley (Now it hides the apple script form the
|
|
</I>><i> Dock, but I still can't hide mono and my application from the Mac OS X
|
|
</I>><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 "exec
|
|
mono Tomboy.exe"? 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>
|