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@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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel