Figure53 / QLabKit.objc

An Objective C library for controlling QLab using the OSC API introduced in QLab 3.
MIT License
26 stars 7 forks source link

Feature Request - reply from new cue #4

Closed gwsounddsg closed 11 years ago

gwsounddsg commented 11 years ago

QLKClient.m line 160 method -(void)processMessage:(QLKMessage *)message

This is the method called when QLab sends a message back. There's some important data like when creating a new cue (eg: "/new fade"). I added the following code to make it work for me:

NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:message, kReplyMsg, nil];
[[NSNotificationCenter defaultCenter] postNotificationName:kReply
                                                    object:nil
                                                  userInfo:dict];

It would be great if this could become a permanent feature.

Thanks GW

SoundGuyAndy commented 11 years ago

Hey, GW, why don't you fork the project and make the change, then just submit a pull request to get it pulled back into the main project? Way smoother mechanism, and a lot easier to submit changes like that, since you've already done the work anyway. Github's a beautiful system for stuff like this :-)

gwsounddsg commented 11 years ago

Oh cool! I didn't realize that was allowed. I'll get right on it.