зеркало из https://github.com/mono/mail-archives.git
133 строки
6.2 KiB
HTML
133 строки
6.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-osx] Introducing MacHint MonoDevelop addin - developed with MonoMac
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Introducing%20MacHint%20MonoDevelop%20addin%20-%20developed%0A%09with%20MonoMac&In-Reply-To=03CF5ADC-4F2E-4C99-A158-D83EF297575B%40free.fr">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="003977.html">
|
|
<LINK REL="Next" HREF="003986.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-osx] Introducing MacHint MonoDevelop addin - developed with MonoMac</H1>
|
|
<B>Michael Hutchinson</B>
|
|
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Introducing%20MacHint%20MonoDevelop%20addin%20-%20developed%0A%09with%20MonoMac&In-Reply-To=03CF5ADC-4F2E-4C99-A158-D83EF297575B%40free.fr"
|
|
TITLE="[Mono-osx] Introducing MacHint MonoDevelop addin - developed with MonoMac">m.j.hutchinson at gmail.com
|
|
</A><BR>
|
|
<I>Mon Feb 7 14:21:32 EST 2011</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="003977.html">[Mono-osx] Introducing MacHint MonoDevelop addin - developed with MonoMac
|
|
</A></li>
|
|
<LI>Next message: <A HREF="003986.html">[Mono-osx] Introducing MacHint MonoDevelop addin - developed with MonoMac
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#3982">[ date ]</a>
|
|
<a href="thread.html#3982">[ thread ]</a>
|
|
<a href="subject.html#3982">[ subject ]</a>
|
|
<a href="author.html#3982">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>On Mon, Feb 7, 2011 at 8:09 AM, frederic forjan <<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">fforjan at free.fr</A>> wrote:
|
|
><i> * saving document is done by AppleScript. I've discovered and do my first
|
|
</I>><i> AppleScript for this usage. And at the same start I've done a very basic
|
|
</I>><i> binding for the NSAppleScript object.
|
|
</I>><i> There is a bug in my binding, if the script running an error, it will
|
|
</I>><i> crashed. This is due of my NSAppleScript binding, I didn't find how to bind
|
|
</I>><i> a pointer of pointer of NSDictionary - means ref NSDictionary in C# ?
|
|
</I>
|
|
FWIW, you can find a more direct AppleScript binding here:
|
|
<A HREF="https://github.com/mono/monodevelop/blob/master/main/src/addins/MacPlatform/Framework/AppleScript.cs">https://github.com/mono/monodevelop/blob/master/main/src/addins/MacPlatform/Framework/AppleScript.cs</A>
|
|
|
|
><i> Some remarks :
|
|
</I>><i> -----
|
|
</I>><i> * Since the monomac dll is delivered with the addin, What happens if two
|
|
</I>><i> addins use two differents monomac (or the same) dll ? Are they shared ?
|
|
</I>><i> Should it be installed in the GAC ?
|
|
</I>
|
|
Ideally, you should not bundle MonoMac. You should instead depend on
|
|
an addin that includes MonoMac.dll. When that addin is loaded, its
|
|
MonoMac.dll will also be loaded. Then, your addin will resolve that
|
|
MonoMac dll.
|
|
|
|
In MD master, MacPlatform addin references MonoMac.dll, for native
|
|
dialogs. Since MD master will soon become MD 2.6, I recommend you
|
|
target that.
|
|
|
|
><i> * There is a NSApplication.Init call also in my addin. How is it working
|
|
</I>><i> with the NSApplication from the Mac platform ? Is there any conflict ?
|
|
</I>
|
|
In MD master, the MacPlatform addin calls NSApplication.Init at the
|
|
appropriate point, so it should not be necessary for you to call it
|
|
again.
|
|
|
|
><i> I'm thinking it's linked but I was not able to use the shared NSWorkspace or
|
|
</I>><i> the shared NSPasteBoard, MonoDevelop seems to wait indefinitely.
|
|
</I>
|
|
This might be due to the fact that MD is built on GTK#, which uses
|
|
some Cocoa API internally but is not a true Cocoa app. Some things
|
|
work, some things don't. You'll need to investigate the hangs by
|
|
getting stack traces:
|
|
<A HREF="http://monodevelop.com/Developers/Reporting_Bugs#Debugging_Hangs_on_Mac_and_Linux">http://monodevelop.com/Developers/Reporting_Bugs#Debugging_Hangs_on_Mac_and_Linux</A>
|
|
|
|
><i> I've mainly starting development on this platform - MonoDevelop, mono and
|
|
</I>><i> mac ! so i'm happy to any feedback, positive or not.
|
|
</I>><i> One of my question is, Is it a supported architecture ? Writting a plugin to
|
|
</I>><i> an existing application to provide feature to the mac platform using monomac
|
|
</I>><i> ?
|
|
</I>
|
|
Yes, it is. Just beware that using Cocoa & Carbon APIs from a GTK# app
|
|
is not always easy.
|
|
|
|
><i> Do you think it's useful ? Do you have any feedback on the feature, on the
|
|
</I>><i> implementation ? Or any idea for new features ?
|
|
</I>><i> I was thinking to be able to use the service menu like to send the currently
|
|
</I>><i> selected text in email or the currently selected solution item as a mail
|
|
</I>><i> with attachments, use the dock icon to display number of error from the last
|
|
</I>><i> build.
|
|
</I>
|
|
For "core" features that would be useful to everyone, like displaying
|
|
the number of build errors on the Dock Icon, or adding commands to the
|
|
dock icon's context menu, I would recommend contributing such features
|
|
to the MacPlatform addin so these features can ship with MD core.
|
|
|
|
I don't want to ship Growl with MD though, so anything depending on
|
|
Growl would have to go in a separate addin, along with "powertoy"
|
|
features like send as email.
|
|
|
|
--
|
|
Michael Hutchinson
|
|
<A HREF="http://mjhutchinson.com">http://mjhutchinson.com</A>
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="003977.html">[Mono-osx] Introducing MacHint MonoDevelop addin - developed with MonoMac
|
|
</A></li>
|
|
<LI>Next message: <A HREF="003986.html">[Mono-osx] Introducing MacHint MonoDevelop addin - developed with MonoMac
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#3982">[ date ]</a>
|
|
<a href="thread.html#3982">[ thread ]</a>
|
|
<a href="subject.html#3982">[ subject ]</a>
|
|
<a href="author.html#3982">[ 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>
|