mail-archives/mono-osx/2011-February/003939.html

105 строки
4.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] [Mono-Mac] ImageKit bindings and sample
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20%5BMono-Mac%5D%20ImageKit%20bindings%20and%20sample&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="003941.html">
<LINK REL="Next" HREF="003940.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] [Mono-Mac] ImageKit bindings and sample</H1>
<B>Regan Sarwas</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20%5BMono-Mac%5D%20ImageKit%20bindings%20and%20sample&In-Reply-To="
TITLE="[Mono-osx] [Mono-Mac] ImageKit bindings and sample">rsarwas at gmail.com
</A><BR>
<I>Wed Feb 2 02:40:31 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="003941.html">[Mono-osx] [MonoMac] New sample DockAppIcon
</A></li>
<LI>Next message: <A HREF="003940.html">[Mono-osx] [Mono-Mac] ImageKit bindings and sample
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3939">[ date ]</a>
<a href="thread.html#3939">[ thread ]</a>
<a href="subject.html#3939">[ subject ]</a>
<a href="author.html#3939">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Here is a patch for the ImageKit bindings, and a sample that exercises a
portion of it.
I noticed that all the uints in PdfKit were changed to ints, so I did the
same here.
But I am confused. What happens if a client passes a negative int to a objC
method that is expecting a uint,
It seems using uint would allow the compiler to help keep the code sane.
What am I missing?
I made some changes to AppKit for the sample: I added two dragging
protocols. I only needed NSDraggingDestination, but you get the
NSDraggingSource for free.
Not sure if they are generally useful, but here they are. I noticed a
binding for a type called
NSDragDestination which is not a Apple type, and the methods are same as
NSDraggingInfo It seems like it should be removed, but I don't know its
history.
It's been fun, and I've learned a ton, but I have to give up this hobby for
a month or so to complete other obligations. Hopefully there will be more
to do when I return.
-Regan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20110201/4f29ad5b/attachment-0001.html">http://lists.ximian.com/pipermail/mono-osx/attachments/20110201/4f29ad5b/attachment-0001.html</A>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ImageKit.patch
Type: application/octet-stream
Size: 39593 bytes
Desc: not available
Url : <A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20110201/4f29ad5b/attachment-0001.obj">http://lists.ximian.com/pipermail/mono-osx/attachments/20110201/4f29ad5b/attachment-0001.obj</A>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ImageKitDemoStep1.zip
Type: application/zip
Size: 25835 bytes
Desc: not available
Url : <A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20110201/4f29ad5b/attachment-0001.zip">http://lists.ximian.com/pipermail/mono-osx/attachments/20110201/4f29ad5b/attachment-0001.zip</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="003941.html">[Mono-osx] [MonoMac] New sample DockAppIcon
</A></li>
<LI>Next message: <A HREF="003940.html">[Mono-osx] [Mono-Mac] ImageKit bindings and sample
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3939">[ date ]</a>
<a href="thread.html#3939">[ thread ]</a>
<a href="subject.html#3939">[ subject ]</a>
<a href="author.html#3939">[ 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>