зеркало из https://github.com/mono/mail-archives.git
87 строки
4.2 KiB
HTML
87 строки
4.2 KiB
HTML
|
<!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 <<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">tim at asymptotic.co.uk</A>> wrote:
|
||
|
><i>
|
||
|
</I>><i> On Thu, 5 Aug 2010 16:31:20 -0400, "Michael Hutchinson"
|
||
|
</I>><i> <<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">m.j.hutchinson at gmail.com</A>> said:
|
||
|
</I>>><i>
|
||
|
</I>>><i> The Mac taskbar does not use icons from your exe, no matter how you
|
||
|
</I>>><i> embed them. You must use an app bundle, and your Info.plist manifest
|
||
|
</I>>><i> must specify your icns. The icns can have multiple resolutions of icon
|
||
|
</I>>><i> in it.
|
||
|
</I>><i>
|
||
|
</I>><i> Thanks for the info. Two things about this confuse me though: Firstly,
|
||
|
</I>><i> when I run from within MonoDevelop (no app bundle in sight) I get a
|
||
|
</I>><i> custom icon displayed in the taskbar, only at the wrong resolution. This
|
||
|
</I>><i> image has to be coming from somewhere.
|
||
|
</I>><i>
|
||
|
</I>><i> Secondly, I have an app bundle set up with a .icns file in the
|
||
|
</I>><i> appropriate resolution, and I have my app within as an executable I've
|
||
|
</I>><i> packaged together with macpack. When I run this, the bouncing icon it
|
||
|
</I>><i> displays during loading is at the correct resolution (which must be
|
||
|
</I>><i> taken from the .icns file specified in the info.plist). However, once
|
||
|
</I>><i> the app finishes loading the icon is replaced with a low-resolution
|
||
|
</I>><i> version. If it was continuing to use the version from the app bundle, I
|
||
|
</I>><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>
|