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

2009-01-09 Thread John Shea
Hi Brian, thanks for your comment. Strangely enough that's what I did by accident the first time. It actually seems a bit dodgy (at least to my way of thinking) - that not only are the objects of my method parameter list changing, but that the repository of my data if nil will dictate a di

[MacRuby-devel] [MacRuby] #204: Private methods redefined public are still in private_methods

2009-01-09 Thread MacRuby
#204: Private methods redefined public are still in private_methods +--- Reporter: vincent.isamb...@… | Owner: lsansone...@… Type: defect | Status: new

[MacRuby-devel] [MacRuby] #203: Marshal.dump does not serialize an Exception's backtrace

2009-01-09 Thread MacRuby
#203: Marshal.dump does not serialize an Exception's backtrace +--- Reporter: vincent.isamb...@… | Owner: lsansone...@… Type: defect | Status: new Pr

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

2009-01-09 Thread Brian Chapados
If it helps, for CGBitmapContextCreate you just pass NULL ('nil' in MacRuby) for the void *data parameter and let CoreGraphics handle allocating memory. Unless you really need to do the allocation yourself, it is significantly less painful and less error-prone to have it done automatically, especia

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

2009-01-09 Thread John Shea
Thanks for the pointer ( ;-)) Dave, I assume that there is some way to make it work since it seems, as you say, to be catered for, but with my code it either gives back garbage (ie not a pointer to the image i want) or falls into the debugger depending on whether i access it more than once. Never