From: Eric C. <ech...@gm...> - 2010-01-04 21:14:17
|
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. That's interesting! My interest in NeXTSTEP/OpenStep/GNUstep/Cocoa was a factor in my getting a Mac, but only a small one. You should also be aware of MacRuby <http://www.macruby.org/>, which appears to be on track to replace RubyCocoa some time in the future. I don't know much about it, but it's based on Ruby 1.9 and its interpreter and libraries are written directly on Cocoa so there is a tighter coupling between the two. It also supports Objective-C-like named arguments instead of the ugly underscores separating parts of the selector, as in fontWithName_size_. (It appears to extend Ruby's syntax to do so; because of this and the other peculiarities of MacRuby I wonder to what extent it really is Ruby rather than a different language.) RubyCocoa used to use key/value hashes for arguments; does anyone know why they got rid of those in favor of underscores? > 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) > > Thanx in advance for every little hint. > > subverse |