Tag: interface builder

Interface Builder没有看到MacRuby的出口

我试图使用XCode和Interface Builder获得一个基本的hello world应用程序。 但是,在Interface Builder中,我无法看到我的sockets连接起来。 我转到对象检查器窗格的连接选项卡,并显示“New Referencing Outlet”。 我想知道我的代码是否错误。 这里是 class HelloWorldController attr_accessor :hello_label, :hello_button, :hello def awakeFromNib @hello = true end def changeLabel(sender) if @hello @hello_label.stringValue = “Good Bye” @hello_button.title = “Hello” @hello = false else @hello_label.stringValue = “Hello World” @hello_button.title = “Good Bye” @hello = true end end end 据我了解,我应该能够看到你好,hello_label,hello_button和changeLabel,但我没有。 我想也许我在某个地方拼错了,但这似乎也不是。 这是两个界面构建器窗口的镜头。 任何帮助表示赞赏。 […]