mail-archives/mono-osx/2010-August/003070.html

87 строки
4.2 KiB
HTML
Исходник Обычный вид История

2019-06-06 22:05:17 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] Setting the Dock icon for a Mono application?
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Setting%20the%20Dock%20icon%20for%20a%20Mono%20application%3F&In-Reply-To=1281083355.20860.1388600081%40webmail.messagingengine.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="003063.html">
<LINK REL="Next" HREF="003055.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] Setting the Dock icon for a Mono application?</H1>
<B>Michael Hutchinson</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Setting%20the%20Dock%20icon%20for%20a%20Mono%20application%3F&In-Reply-To=1281083355.20860.1388600081%40webmail.messagingengine.com"
TITLE="[Mono-osx] Setting the Dock icon for a Mono application?">m.j.hutchinson at gmail.com
</A><BR>
<I>Sun Aug 8 23:47:20 EDT 2010</I>
<P><UL>
<LI>Previous message: <A HREF="003063.html">[Mono-osx] Setting the Dock icon for a Mono application?
</A></li>
<LI>Next message: <A HREF="003055.html">[Mono-osx] Setting the Dock icon for a Mono application?
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3070">[ date ]</a>
<a href="thread.html#3070">[ thread ]</a>
<a href="subject.html#3070">[ subject ]</a>
<a href="author.html#3070">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Fri, Aug 6, 2010 at 4:29 AM, Tim Martin &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">tim at asymptotic.co.uk</A>&gt; wrote:
&gt;<i>
</I>&gt;<i> On Thu, 5 Aug 2010 16:31:20 -0400, &quot;Michael Hutchinson&quot;
</I>&gt;<i> &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">m.j.hutchinson at gmail.com</A>&gt; said:
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> The Mac taskbar does not use icons from your exe, no matter how you
</I>&gt;&gt;<i> embed them. You must use an app bundle, and your Info.plist manifest
</I>&gt;&gt;<i> must specify your icns. The icns can have multiple resolutions of icon
</I>&gt;&gt;<i> in it.
</I>&gt;<i>
</I>&gt;<i> Thanks for the info. Two things about this confuse me though: Firstly,
</I>&gt;<i> when I run from within MonoDevelop (no app bundle in sight) I get a
</I>&gt;<i> custom icon displayed in the taskbar, only at the wrong resolution. This
</I>&gt;<i> image has to be coming from somewhere.
</I>&gt;<i>
</I>&gt;<i> Secondly, I have an app bundle set up with a .icns file in the
</I>&gt;<i> appropriate resolution, and I have my app within as an executable I've
</I>&gt;<i> packaged together with macpack. When I run this, the bouncing icon it
</I>&gt;<i> displays during loading is at the correct resolution (which must be
</I>&gt;<i> taken from the .icns file specified in the info.plist). However, once
</I>&gt;<i> the app finishes loading the icon is replaced with a low-resolution
</I>&gt;<i> version. If it was continuing to use the version from the app bundle, I
</I>&gt;<i> wouldn't expect it to change.
</I>
Ah, it sounds like the Mac Winforms core is somehow overriding the
dock icon. I don't know how one would fix this short of patching Mono
classlibs, except perhaps (hackily) re-overriding it via a P/Invoke.
--
Michael Hutchinson
<A HREF="http://mjhutchinson.com">http://mjhutchinson.com</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="003063.html">[Mono-osx] Setting the Dock icon for a Mono application?
</A></li>
<LI>Next message: <A HREF="003055.html">[Mono-osx] Setting the Dock icon for a Mono application?
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3070">[ date ]</a>
<a href="thread.html#3070">[ thread ]</a>
<a href="subject.html#3070">[ subject ]</a>
<a href="author.html#3070">[ 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>