[MacRuby-devel] Help with QT syntax
Martin Hawkins
martin.hawkins at gmail.com
Mon Sep 7 10:16:40 PDT 2009
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 <johnl at johnlabovitz.com>
> 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<tab>" function to automatically convert it to MacRuby!)
>
> --John
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090907/051cf53f/attachment.html>
More information about the MacRuby-devel
mailing list