Re: [MacRuby-devel] NSPoint and CGPoint issue

2012-12-13 Thread david kramf
Hi Braxton Cocoa seems to be a bit schizophrenic when handling NSPoint and CGPoint. I tried your advice and that what I got. Certainly one should be careful dealing with these classes !! Thanks, David puts "width is #{width} heght is #{height}" origin = NSPointFromCGPoint(NSMakePoint(width,heig

Re: [MacRuby-devel] NSPoint and CGPoint issue

2012-12-13 Thread david kramf
Hi Min, You are correct. The code doesn't crash now. I guess the reason is that Cocoa succeeded in internally casting this CGPoint to NSPoint. Thanks , David On Dec 10, 2012, at 11:11 AM, Min Soo Kim wrote: > Hi David, > > I ran the following > > framework 'cocoa' > def initLabel(h) >