From: Christian A. <chr...@so...> - 2009-10-05 08:47:18
|
Hi all, I'm just starting with RubyCocoa, although I'm not new to OO development in general. My first project involves a preference pane written in Ruby, I'm using a xcode template for it but don't yet recall where I found that on the net. There are some questions for which I don't find clear answers using Google, do you care to help? [All questions refer to OSX 10.6.1 with xcode 3.2 and vanilla ruby/ rubycocoa] () Where do I find documentation on ib_outlet and ib_action? Is ib_outlets just an alias or a different method? What is kvc_accessor being used for? () Some sources say that I do need to "require 'osx/cocoa'", while others don't. Some say I do need to explicitly declare each action, while others don't. How is it supposed to be? () The message awakeFromNib seems to be sent twice, the first time none of my outlets being available. Why is that? Is there more than one instance of my controller class? () Input entered into a NSTextField should be mapped to an instance variable. Is it best practice to use an action that updates the instance variable when the user finishes typing, or would I do that? () I didn't succeed building a universal binary containing both 32 and 64 versions, the preferences app will always switch to 32bit when launching my pane. Is that possible with RubyCocoa at all? Any hints are greatly appreciated. Regards, Christian |