macruby
Calling a method that accepts an optional error pointer
I\'m trying to call a method in MacRuby that\'s defined like this: NSPropertyListSerialization ---------------------------[详细]
2023-04-02 02:56 分类:问答Is there a workaround to getting AWS::S3 working on macruby?
This works when I try it in MRI.But this is what happens in Macruby: $ macirb -f irb(main):003:0> require \'aws/s3\'[详细]
2023-03-31 08:07 分类:问答No input to NSTextField when running macruby
i have a simple macruby application and i want to get some user-input via a NSTextField, but when i run the application with \'\'\'macruby test.rb\'\'\' all the input on the focused text-field goes in[详细]
2023-03-26 18:28 分类:问答NSURL.URLByResolvingSymlinksInPath does not work for /tmp, /var. Is there a workaround?
(code examples in macruby syntax) If I create an url with: u1 = NSURL.fileURLWithPath(\'/tmp\') and then try to create an url with symlinks resolved:[详细]
2023-03-24 13:50 分类:问答How to get interface builder to recognise receiving action method in delegate
NEWBIE QUESTION ALERT! I have a brand new macruby application in Xcode 4.1. In my application delegate I add this method:[详细]
2023-03-23 17:16 分类:问答Why are my Macruby pointers not surviving being passed as void pointers?
I\'ve implemented the selector alertDidEnd:returnCode:contextInfo:. The last parameter, contextInfo, is a void pointer. Before calling the method I put the pointer together as follows.[详细]
2023-03-23 00:58 分类:问答In a MacRuby app for distribution, how can you launch an NSTask that invokes a Ruby script with macruby?
I have a MacRuby app, and after 开发者_如何转开发the app launches, I would like to launch a second process using an NSTask. The second process is a Ruby script bundled with the app. I would like to la[详细]
2023-03-22 01:16 分类:问答Is there a standard way to have NSAlert conditionally close the window it is attached to?
I\'m writing a super cool app with a preferences panel. If a user opens the preferences panel, makes a change to her preferences, and then closes the panel without saving thos开发者_运维技巧e changes,[详细]
2023-03-21 19:38 分类:问答MacRuby: SSH connection with net/ssh?
I\'m looking for creating a connection using ssh in order to execute some command on a remote server.[详细]
2023-03-21 11:00 分类:问答When a cocoa method wants a selector as a parameter, how do I express this in ruby?
In this tutorial for sheet programming in cocoa, I am told to invoke the following method: [[alert beginSheetModalForWindow:[searchField window][详细]
2023-03-21 09:36 分类:问答