[MacRuby-devel] MacRuby pointers and Obj-C function returning a value by reference

2013-01-22 Thread kwic...@wichry.net
Thanks Watson It was helpful and actually it is not even needed to assign the value to the range. I realised that I was dereferencing the object in wrong places. Best K > > Date: Tue, 22 Jan 2013 07:30:47 +0900 > From: Watson > To: "MacRuby development discussions." > > Subject: Re:

[MacRuby-devel] MacRuby pointers and Obj-C function returning a value by reference

2013-01-21 Thread kwic...@wichry.net
I am trying to implement the following method of NSAttributedString in Macruby: - (id)attribute:(NSString *)attributeName atIndex:(NSUInteger)index effectiveRange:(NSRangePointer)aRange As by definition, it `Returns the value for an attribute with a given name of the character at a given index,