|
From: Eric C. <ech...@gm...> - 2010-01-04 02:40:52
|
On Sun, Jan 3, 2010 at 7:04 AM, <sub...@gm...> wrote:
> Hi everybody,
>
> i'm a ruby/rails-developer, coming from linux/win.
> A few days ago i heard about rubycocoa and... bougth a mac emidiately.
> This was my first contact to objective-c, cocoa, etc. - so i know pretty much nothing (I read a oreilly book about objective-c 2.0 - but that didn't help me with my problem).
>
> How do i set the fontfamily/fontname for a NSTextField.
> I tried it in the interfae builder and in my controller_class.rb - with no result. (tried setFont < NSTextField < NSControl - think i didn't get the syntax right)
Something like this:
@textField.setFont_(NSFont.fontWithName_size_('Helvetica', 16))
Note the underscores.
|