Disabled code to try and get bundle path on OS X
authorDiane Trout <diane@caltech.edu>
Thu, 15 Jun 2006 17:57:45 +0000 (17:57 +0000)
committerDiane Trout <diane@caltech.edu>
Thu, 15 Jun 2006 17:57:45 +0000 (17:57 +0000)
qui/MussaWindow.cpp

index e331a58e85e06179692e0a4b06404e8b89e2c3ac..33500092381a3281078d481029e52891aec5fa5d 100644 (file)
 #include <QStringList>
 #include <QWhatsThis>
 
+#if defined(Q_WS_MAC)
+#include <CoreFoundation/CoreFoundation.h>
+#endif 
+
 #include "qui/MussaWindow.hpp"
 #include "mussa_exceptions.hpp"
 
@@ -268,6 +272,16 @@ void MussaWindow::setupMainMenu()
 
 void MussaWindow::setupAssistant()
 {
+#if 0 && defined(Q_WS_MAC)
+    CFURLRef pluginRef = CFBundleCopyBundleURL(CFBundleGetMainBundle());
+    CFStringRef macPath = CFURLCopyFileSystemPath(pluginRef,
+                                           kCFURLPOSIXPathStyle);
+    const char *pathPtr = CFStringGetCStringPtr(macPath,
+                                           CFStringGetSystemEncoding());
+    qDebug("Path = %s", pathPtr);
+    CFRelease(pluginRef);
+    CFRelease(macPath);
+#endif
 #if defined(QT_ASSISTANT_LIB)
   QStringList manualAssistantArgs;
   manualAssistantArgs = QStringList();