Re: GTK clipboard on OS X



On 07/20/2009 02:48 AM, Allin Cottrell wrote:

I can report a bit more about GTK, RTF and the clipboard on OS X.
The main limitation on what I have to say is that I'm relying on
the "gtk2-framework" distribution prepared by I-don't-know-who,
available at http://r.research.att.com/ , which is a build
of GTK 2.14.3.  I'm not in a position to build current GTK on OS X
myself, which seems like serious rocket science.

If you are after compiling against osx "frameworks" (instead of the GTK fink
package, etc...) then I think you should try the official GTK-OSX download:
http://www.gtk-osx.org

It's the official *pre-compiled* framework, than you can use with something like:

CFLAGS:
-I/Library/Frameworks/Gtk.framework/Headers
-I/Library/Frameworks/GLib.framework/Headers
-I/Library/Frameworks/Cairo.framework/Headers
-I/System/Library/Frameworks/Carbon.framework/Headers


LIBS:
-framework Gtk -framework GLib -framework Cairo -framework Carbon

It's quite straightforward and removes the need for X11.

I can only recommend GTK-OSX, I'm very happy with it, it works great, although I
build it myself, because one can't make an OSX bundle using the framework yet.

Hopefully, this may solve your clipboard problem. And if it doesn't, please note
that GTK-OSX devs provide various (optional) integration utilities for such
things as handling the OSX menu bar, ..

I'm sure they've already done all sort of things with the clipboard. There is a
forum for support questions. Homepage: http://gtk-osx.sourceforge.net

-- 
  Olivier



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]