[MacRuby-devel] Pointer to memory. was: Pointers for BOOL types

Dave Lee davelee.com at gmail.com
Thu Jan 8 09:45:25 PST 2009


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 at 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 at gmail.com> wrote:
>
> Cheque it:
> http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/chapter_7_section_1.html#//apple_ref/doc/uid/TP40008048-CH100-SW1
>
> see also: /usr/include/objc/runtime.h
>
> Dave
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>


More information about the MacRuby-devel mailing list