Hi David,
I ran the following
framework 'cocoa'
def initLabel(h)
@label = NSTextField.alloc.initWithFrame(CGRectMake(0,0,250, 45))
@label.setStringValue(h)
@label.drawsBackground = false
@label.bezeled = false
@label.font = NSFont.fontWithName("Arial", size:45.
On 7 déc. 2012, at 19:48:39, david kramf
wrote:
>
> Message: 1
> Date: Fri, 7 Dec 2012 19:48:39 +0200
> From: david kramf
> To: "MacRuby development discussions."
>
> Subject: Re: [MacRuby-devel] Problem with a window controller
> Message-ID: <1f1681c7-9de6-4971-8d17-722f5ec63...@gmail.
I can't speak to the encoding issues, but I can attest to crashing
issues with incorrectly assuming the compatibility of NSPoint and
CGPoint.
It depends what version of Mac OS you're on whether NSPoint can safely
be cast as a CGPoint. In older versions of Mac OS, NSPoint used float
for its members
Braxton,
Many Thanks for your advice . I will try to cast from CGPoint to NSPoint .
Nim,
I will try your code . In addition to the fact that we probably run on a
different OS or MacRuby version , the other difference is that you set the
width and height to full constants . The division operations
Hi Jean-Denis
1. Thank you for your advice about awakeFromNib and InitWithCoder.
2. "That is a bonus you ..". This is not a bonus. This is Ruby. If you define a
Ruby class you expect that any object will get instantiated through
"initialize". I have a feeling that all who responded to me on the f