[MacRuby-devel] Help with QT syntax
I've been going through the MyRecorder example in the QTKit Capture Programming Guide (which works fine) but am having problems with the MacRuby syntax for the following: - (void)captureOutput:(QTCaptureFileOutput *)captureOutput didFinishRecordingToOutputFileAtURL:(NSURL *)outputFileURL forConnections:(NSArray *)connections dueToError:(NSError *)error I'd be very grateful if someone could point me in the right direction. Thanks ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Help with QT syntax
On 7 Sep 2009, at 9:45 AM, Martin Hawkins wrote: I've been going through the MyRecorder example in the QTKit Capture Programming Guide (which works fine) but am having problems with the MacRuby syntax for the following: - (void)captureOutput:(QTCaptureFileOutput *)captureOutput didFinishRecordingToOutputFileAtURL:(NSURL *)outputFileURL forConnections:(NSArray *)connections dueToError:(NSError *)error I don't see anything tricky here that would make this difficult to implement in MacRuby: def captureOutput(captureOutput, didFinishRecordingToOutputFileAtURL: outputFileURL, forConnections: connections, dueToError: error) ... end (Note that I cheated here: I copied the ObjC method signature and used TextMate's "m" function to automatically convert it to MacRuby!) --John ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Help with QT syntax
Thanks. Murphy's Law said that I 'saw the light' as soon as I sent the message. Happily my solution was the same as the one you sent.Thanks for the Textmate tip. Martin 2009/9/7 John Labovitz > On 7 Sep 2009, at 9:45 AM, Martin Hawkins wrote: > > I've been going through the MyRecorder example in the QTKit Capture >> Programming Guide (which works fine) but am having problems with the >> MacRuby >> syntax for the following: >> - (void)captureOutput:(QTCaptureFileOutput *)captureOutput >> didFinishRecordingToOutputFileAtURL:(NSURL *)outputFileURL >> forConnections:(NSArray *)connections >> dueToError:(NSError *)error >> > > > I don't see anything tricky here that would make this difficult to > implement in MacRuby: > >def captureOutput(captureOutput, > didFinishRecordingToOutputFileAtURL: outputFileURL, forConnections: > connections, dueToError: error) >... >end > > (Note that I cheated here: I copied the ObjC method signature and used > TextMate's "m" function to automatically convert it to MacRuby!) > > --John > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
