diff options
author | rowanbeentje <rowan@beent.je> | 2011-06-01 00:35:31 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-06-01 00:35:31 +0000 |
commit | bd86e6d3f1e7a54d07060538a8efe04caa2789b1 (patch) | |
tree | 37c7d2f480042ad357ca293de8fa3202236f7ce3 /Source/NSNotificationAdditions.h | |
parent | 52c7fd7e1c2155dbb1f2f68d9cf3464398ec2710 (diff) | |
download | sequelpro-bd86e6d3f1e7a54d07060538a8efe04caa2789b1.tar.gz sequelpro-bd86e6d3f1e7a54d07060538a8efe04caa2789b1.tar.bz2 sequelpro-bd86e6d3f1e7a54d07060538a8efe04caa2789b1.zip |
NSNotificationAdditions tweaks:
- Remove unused _postNotificationForwarder methods
- Clean up and standardise method names and argument names
- Correctly cross-thread retain when waitUntilDone: is NO
- Attempt to improve compatibility with third-party frameworks such as TCMPortMapper
Diffstat (limited to 'Source/NSNotificationAdditions.h')
-rw-r--r-- | Source/NSNotificationAdditions.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/Source/NSNotificationAdditions.h b/Source/NSNotificationAdditions.h index 8722ed4f..54b8bfdf 100644 --- a/Source/NSNotificationAdditions.h +++ b/Source/NSNotificationAdditions.h @@ -25,20 +25,11 @@ @interface NSNotificationCenter (NSNotificationCenterAdditions) -#ifndef SP_REFACTOR -- (void)postNotificationOnMainThread:(NSNotification *)notification; -- (void)postNotificationOnMainThread:(NSNotification *)notification waitUntilDone:(BOOL)wait; +- (void)postNotificationOnMainThread:(NSNotification *)aNotification; +- (void)postNotificationOnMainThread:(NSNotification *)aNotification waitUntilDone:(BOOL)shouldWaitUntilDone; -- (void)postNotificationOnMainThreadWithName:(NSString *)name object:(id)object; -- (void)postNotificationOnMainThreadWithName:(NSString *)name object:(id)object userInfo:(NSDictionary *)userInfo; -- (void)postNotificationOnMainThreadWithName:(NSString *)name object:(id)object userInfo:(NSDictionary *)userInfo waitUntilDone:(BOOL)wait; -#else -- (void)sequelProPostNotificationOnMainThread:(NSNotification *)notification; -- (void)sequelProPostNotificationOnMainThread:(NSNotification *)notification waitUntilDone:(BOOL)wait; - -- (void)sequelProPostNotificationOnMainThreadWithName:(NSString *)name object:(id)object; -- (void)sequelProPostNotificationOnMainThreadWithName:(NSString *)name object:(id)object userInfo:(NSDictionary *)userInfo; -- (void)sequelProPostNotificationOnMainThreadWithName:(NSString *)name object:(id)object userInfo:(NSDictionary *)userInfo waitUntilDone:(BOOL)wait; -#endif +- (void)postNotificationOnMainThreadWithName:(NSString *)aName object:(id)anObject; +- (void)postNotificationOnMainThreadWithName:(NSString *)aName object:(id)anObject userInfo:(NSDictionary *)aUserInfo; +- (void)postNotificationOnMainThreadWithName:(NSString *)aName object:(id)anObject userInfo:(NSDictionary *)aUserInfo waitUntilDone:(BOOL)shouldWaitUntilDone; @end |