<div dir="ltr">Actually do not apply this one now, there are a couple additional fixes I need to make due to the rebase</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 July 2014 20:47, Florent Pillet <span dir="ltr"><<a href="mailto:fpillet@gmail.com" target="_blank">fpillet@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
 Sources/VLCEventManager.m | 21 +++++++++++++++++----<br>
 1 file changed, 17 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/Sources/VLCEventManager.m b/Sources/VLCEventManager.m<br>
index 143ed62..15e77fa 100644<br>
--- a/Sources/VLCEventManager.m<br>
+++ b/Sources/VLCEventManager.m<br>
@@ -40,10 +40,10 @@ typedef enum<br>
  */<br>
 @interface message_t : NSObject<br>
<br>
-@property (nonatomic) id target;    //< Target object that should receive the message (retained until method is called).<br>
+@property (nonatomic, strong) id target;    //< Target object that should receive the message (retained until method is called).<br>
 @property (nonatomic) SEL sel;      //< A selector that identifies the message to be sent to the target.<br>
 @property (nonatomic, copy) NSString * name;           //< Name to be used for NSNotification<br>
-@property (nonatomic) id object;                  //< Object argument to pass to the target via the selector.<br>
+@property (nonatomic, strong) id object;                  //< Object argument to pass to the target via the selector.<br>
 @property (nonatomic) message_type_t type;            //< Type of queued message.<br>
<br>
 @end<br>
@@ -55,7 +55,7 @@ typedef enum<br>
     if (![object isKindOfClass:[message_t class]]) return NO;<br>
<br>
     message_t *otherObject = object;<br>
-    BOOL notificatonMatches =<br>
+    BOOL notificationMatches =<br>
         (otherObject.type == VLCNotification              && [otherObject.name isEqualToString:<a href="http://self.name" target="_blank">self.name</a>]) ||<br>
         (otherObject.type == VLCObjectMethodWithArrayArg  && [otherObject.object isEqual:self.object]) ||<br>
         (otherObject.type == VLCObjectMethodWithObjectArg && [otherObject.object isEqual:self.object]);<br>
@@ -63,7 +63,7 @@ typedef enum<br>
     return [otherObject.target isEqual:_target] &&<br>
             otherObject.sel == self.sel         &&<br>
             otherObject.type == self.type       &&<br>
-            notificatonMatches;<br>
+               notificationMatches;<br>
 }<br>
<br>
 @end<br>
@@ -79,6 +79,14 @@ typedef enum<br>
 }<br>
<br>
 - (void)startEventLoop;<br>
+- (void)callDelegateOfObjectAndSendNotificationWithArgs:(message_t *)message;<br>
+- (void)callObjectMethodWithArgs:(message_t *)message;<br>
+- (void)callDelegateOfObject:(id)aTarget withDelegateMethod:(SEL)aSelector withNotificationName:(NSString *)aNotificationName;<br>
+- (pthread_cond_t *)signalData;<br>
+- (pthread_mutex_t *)queueLock;<br>
+- (NSMutableArray *)messageQueue;<br>
+<br>
+- (void)addMessageToHandleOnMainThread:(message_t *)message;<br>
<br>
 @end<br>
<br>
@@ -329,6 +337,11 @@ static void * EventDispatcherMainLoop(void * user_data)<br>
     method(delegate, aSelector, [NSNotification notificationWithName:aNotificationName object:aTarget]);<br>
 }<br>
<br>
+- (NSMutableArray *)messageQueue<br>
+{<br>
+    return messageQueue;<br>
+}<br>
+<br>
 - (pthread_cond_t *)signalData<br>
 {<br>
     return &_signalData;<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.5.2 (Apple Git-48)<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Florent Pillet<br><br>
</div>