aboutsummaryrefslogtreecommitdiffstats
path: root/Source/NSNotificationAdditions.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/NSNotificationAdditions.m')
-rw-r--r--Source/NSNotificationAdditions.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/NSNotificationAdditions.m b/Source/NSNotificationAdditions.m
index 2e075ed3..3e5e3cc8 100644
--- a/Source/NSNotificationAdditions.m
+++ b/Source/NSNotificationAdditions.m
@@ -28,6 +28,7 @@
#import <pthread.h>
@implementation NSNotificationCenter (NSNotificationCenterAdditions)
+
- (void) postNotificationOnMainThread:(NSNotification *) notification {
if( pthread_main_np() ) return [self postNotification:notification];
[self postNotificationOnMainThread:notification waitUntilDone:NO];
@@ -72,4 +73,5 @@
[[self defaultCenter] postNotificationName:name object:object userInfo:userInfo];
}
+
@end