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

John Shea johnmacshea at gmail.com
Fri Jan 2 23:28:42 PST 2009


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090103/6c7f9329/attachment.html>


More information about the MacRuby-devel mailing list