Changeset 3089
- Timestamp:
- 12/26/05 23:33:32 (3 years ago)
- Files:
-
- trunk/Additions/NSNotificationAdditions.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Additions/NSNotificationAdditions.m
r3088 r3089 14 14 15 15 - (void) postNotificationOnMainThreadWithName:(NSString *) name object:(id) object { 16 if( pthread_main_np() ) return [self postNotificationName:name object:object ];16 if( pthread_main_np() ) return [self postNotificationName:name object:object userInfo:nil]; 17 17 [self postNotificationOnMainThreadWithName:name object:object userInfo:nil waitUntilDone:NO]; 18 18 } … … 46 46 @implementation NSNotificationQueue (NSNotificationQueueAdditions) 47 47 - (void) enqueueNotificationOnMainThread:(NSNotification *) notification postingStyle:(NSPostingStyle) postingStyle { 48 if( pthread_main_np() ) return [self enqueueNotification:notification postingStyle:postingStyle ];48 if( pthread_main_np() ) return [self enqueueNotification:notification postingStyle:postingStyle coalesceMask:( NSNotificationCoalescingOnName | NSNotificationCoalescingOnSender ) forModes:nil]; 49 49 [self enqueueNotificationOnMainThread:notification postingStyle:postingStyle coalesceMask:( NSNotificationCoalescingOnName | NSNotificationCoalescingOnSender ) forModes:nil]; 50 50 }
