diff --git a/ChangeLog b/ChangeLog index c041cf1c..d96ef69f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,9 @@ Kjetil S.Matheussen Jackdmp changes log --------------------------- +2007-11-28 Stephane Letz + * On OSX, use jack server name in notification system. + 2007-11-21 Stephane Letz * On OSX, use CFNotificationCenterPostNotificationWithOptions with kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions for server ==> JackRouter plugin notification. diff --git a/common/Jackdmp.cpp b/common/Jackdmp.cpp index 8764b4e0..9383197c 100644 --- a/common/Jackdmp.cpp +++ b/common/Jackdmp.cpp @@ -360,12 +360,14 @@ int main(int argc, char* argv[]) } #ifdef __APPLE__ - // Send notification to be used in the Jack Router + CFStringRef ref = CFStringCreateWithCString(NULL, server_name, kCFStringEncodingMacRoman); + // Send notification to be used in the JackRouter plugin CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterGetDistributedCenter(), CFSTR("com.grame.jackserver.start"), - CFSTR("com.grame.jackserver"), + ref, NULL, kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions); + CFRelease(ref); #endif /* @@ -431,12 +433,14 @@ int main(int argc, char* argv[]) jack_unregister_server(server_name); #ifdef __APPLE__ - // Send notification to be used in the Jack Router + CFStringRef ref1 = CFStringCreateWithCString(NULL, server_name, kCFStringEncodingMacRoman); + // Send notification to be used in the JackRouter plugin CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterGetDistributedCenter(), CFSTR("com.grame.jackserver.stop"), - CFSTR("com.grame.jackserver"), + ref1, NULL, kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions); + CFRelease(ref1); #endif return 1; diff --git a/macosx/Jackdmp.xcodeproj/project.pbxproj b/macosx/Jackdmp.xcodeproj/project.pbxproj index 5c99b02d..648fe7d1 100644 --- a/macosx/Jackdmp.xcodeproj/project.pbxproj +++ b/macosx/Jackdmp.xcodeproj/project.pbxproj @@ -3097,6 +3097,7 @@ ../common, RPC, ); + MACOSX_DEPLOYMENT_TARGET = 10.4; OTHER_CFLAGS = ( "-DUSE_POSIX_SHM", "-D__SMP__", @@ -3202,6 +3203,7 @@ ../common, RPC, ); + MACOSX_DEPLOYMENT_TARGET = 10.4; OTHER_CFLAGS = ( "-DUSE_POSIX_SHM", "-D__SMP__",