| Hi Steven and Rory,
Thanks for advice!
Martin
Am 17.01.2013 um 13:11 schrieb Steven Yi:
> CsoundObj has:
>
> -(void)setMessageCallback:(SEL)method withListener:(id)listener;
>
> In the Csound examples project, there is a ConsoleOutputViewController
> that demonstrates usage. The setup is in it's run method:
>
> [self.csound setMessageCallback:@selector(messageCallback:) withListener:self];
>
> and the callback looks like:
>
> - (void)messageCallback:(NSValue *)infoObj
>
> {
>
> NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
> Message info;
> [infoObj getValue:&info];
> char message[1024];
> vsnprintf(message, 1024, info.format, info.valist);
> NSString *messageStr = [NSString stringWithFormat:@"%s", message];
> [self performSelectorOnMainThread:@selector(updateUIWithNewMessage:)
> withObject:messageStr
> waitUntilDone:NO];
>
> [pool drain];
> }
>
> steven
>
> On Thu, Jan 17, 2013 at 11:55 AM, Rory Walsh wrote:
>> There should be a setMessageCallback somewhere which should give you
>> access to the Csound message output buffer. I've never used the iOS
>> interface so I'm not sure if it's set up the same way, but it's a good
>> place to start looking!
>>
>> On 17 January 2013 11:52, Martin Huenniger wrote:
>>> Hi list,
>>>
>>> does someone know if its possible to log the csound out put on iOS during the compilation of the scd-file? and if so, how do I do it?
>>>
>>> Best,
>>> Martin
>>>
>>> _________________________
>>> Martin Hünniger
>>> a_s_tarantoga@yahoo.de
>>> a-s-tarantoga.tumblr.com
>>> soundcloud.com/a_s_tarantoga
>>>
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
_________________________
Martin Hünniger
a_s_tarantoga@yahoo.de
a-s-tarantoga.tumblr.com
soundcloud.com/a_s_tarantoga
|