try "^v". ^ is pointer, v is void. If you look at the .bridgesupport file, in this case /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/BridgeSupport/CoreGraphicsFull.bridgesupport, you'll see the the objc types listed for the various functions, structs, etc. Dave On Sat, Jan 3, 2009 at 12:28 AM, John Shea <johnmacshea@gmail.com> wrote:
So kind of on this topic .. which one of these ("c", "i", "s" etc) do I use for void pointers (to memory) eg. the data parameter in the method below? (when otherwise appropriately changed to ruby and Application.services imported etc).
CGContextRef CGBitmapContextCreate ( void *data, size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow, CGColorSpaceRef colorspace, CGBitmapInfo bitmapInfo );
Cheers,
J
On Jan 2, 2009, at 11:21 PM, Dave Lee wrote:
On Thu, Jan 1, 2009 at 7:37 PM, Lachie <lachiec@gmail.com> wrote:
Cheque it: http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/ObjCRuntimeGuide/A...
see also: /usr/include/objc/runtime.h
Dave _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel