aboutsummaryrefslogtreecommitdiffstats
path: root/Source/NSNotificationCenterThreadingAdditions.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-03-17 17:56:04 +0000
committerrowanbeentje <rowan@beent.je>2012-03-17 17:56:04 +0000
commite26e22d9d6a6641cfc0a35e8ae31c12aee8bea5b (patch)
treebb9bcc0ff8ba2e685fcb0fac775b616d9fde2baf /Source/NSNotificationCenterThreadingAdditions.h
parentac8ebfe4bba6d7da6edad87c75b174156d919621 (diff)
downloadsequelpro-e26e22d9d6a6641cfc0a35e8ae31c12aee8bea5b.tar.gz
sequelpro-e26e22d9d6a6641cfc0a35e8ae31c12aee8bea5b.tar.bz2
sequelpro-e26e22d9d6a6641cfc0a35e8ae31c12aee8bea5b.zip
- Remove the GPL-licensed Colloquy-sourced NSNotificationAdditions category from the project, and replace with an MIT-licensed TCMPortMapper sources NSNotificationCenterThreadingAdditions category. This should fix method clashes in the SP_REFACTOR project, so remove behavioural/namespacing switches.
Diffstat (limited to 'Source/NSNotificationCenterThreadingAdditions.h')
-rw-r--r--Source/NSNotificationCenterThreadingAdditions.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/NSNotificationCenterThreadingAdditions.h b/Source/NSNotificationCenterThreadingAdditions.h
new file mode 100644
index 00000000..b71ad17f
--- /dev/null
+++ b/Source/NSNotificationCenterThreadingAdditions.h
@@ -0,0 +1,18 @@
+//
+// $Id$
+//
+// NSNotificationCenterThreadingAdditions.h
+// Enable NSNotification being sent from threads
+//
+// Copied from the TCMPortMapper project; original code available on
+// Google Code at <http://code.google.com/p/tcmportmapper/source/browse/TCMPortMapper/framework/NSNotificationCenterThreadingAdditions.h>
+//
+// Copyright (c) 2007-2008 TheCodingMonkeys:
+// Martin Pittenauer, Dominik Wagner, <http://codingmonkeys.de>
+// Some rights reserved: <http://opensource.org/licenses/mit-license.php>
+//
+
+@interface NSNotificationCenter (NSNotificationCenterThreadingAdditions)
+- (void)postNotificationOnMainThread:(NSNotification *)aNotification;
+- (void)postNotificationOnMainThreadWithName:(NSString *)aName object:(id)anObject;
+@end