0

With MacRuby 0.12 and XCode 4.4.1 (Mountain Lion), I created a Document-Based Application.

In my document window nib, I have two objects:

  • A NSTextView (in a NSScrollView), which has a custom class MyView
  • A NSTextField

In my Ruby code, I have in MyView:

attr_accessor :field

I would like to bind this value to the NSTextField in Interface Builder. When I select Bind to, the choices are limited to:

  • Shared User Defaults Controller
  • File's Owner
  • Application.

I choose the latter but then what should be the Model Key Path?

Furthermore, where is Application in my code? I don't see it anywhere in the template.

4

1 回答 1

0

可能与此错误有关:

https://github.com/MacRuby/MacRuby/issues/135

于 2012-09-10T19:39:15.813 回答