osx-mountain-lion

Mac Mountain Lion send notification from CLI app

隐身守侯 提交于 2019-12-28 05:30:55
问题 How can I send a notification to the notification center from a command line app? My attemps so far compile and run, but don't succeed in notifying me. Example #import <Cocoa/Cocoa.h> int main(int argc, const char * argv[]) { NSLog(@"Running notifications"); NSUserNotification *note = [[NSUserNotification alloc] init]; [note setTitle:@"Test"]; [note setInformativeText:@"Woot"]; NSUserNotificationCenter *center = [NSUserNotificationCenter defaultUserNotificationCenter]; [center

Can't install pg gem on Mountain Lion

感情迁移 提交于 2019-12-28 02:53:09
问题 I have been having a lot of troubles with Rails after upgrading to Mountain Lion. Trying to trouble shoot these and searching for hours on the internet so far I have done the following to ensure my system has all the dependencies to run rails after the upgrade: I updated my Homebrew installation I updated my RVM installation I installed the XCode command line tools I installed GCC as mentioned I upgraded my version of Ruby to ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0] My

homebrew install imagemagick 8 bit version

核能气质少年 提交于 2019-12-25 14:26:13
问题 I would like to install the 8-bit version of imagemagick using homebrew, as the performance is a little better and the RGB values outputted with the 8 bit version are better suited to my uses. How would I got about doing this? 回答1: I think brew install imagemagick --with-quantum-depth-8 should do the trick. 来源: https://stackoverflow.com/questions/11923126/homebrew-install-imagemagick-8-bit-version

homebrew install imagemagick 8 bit version

百般思念 提交于 2019-12-25 14:25:13
问题 I would like to install the 8-bit version of imagemagick using homebrew, as the performance is a little better and the RGB values outputted with the 8 bit version are better suited to my uses. How would I got about doing this? 回答1: I think brew install imagemagick --with-quantum-depth-8 should do the trick. 来源: https://stackoverflow.com/questions/11923126/homebrew-install-imagemagick-8-bit-version

Cocoa application contains no menu bars, according to AppleScript

假装没事ソ 提交于 2019-12-25 05:46:10
问题 I am creating a mac app that needs to start dictation (OSX 10.8) by itself. Because there is no way to initiate dictation "directly" the best way to do this is through the menu bar "Edit"/"Start Dictation" because a user may have different keyboard shortcuts for it. Here's the simple script my app calls (using an NSAppleScript object): tell application "System Events" tell application process "MyApp" tell menu bar 1 tell menu bar item "Edit" tell menu "Edit" click menu item "Start Dictation"

CoreAnimation uncommitted CATransaction warning

帅比萌擦擦* 提交于 2019-12-24 10:28:53
问题 On Mac OS 10.8 I'm getting the following warning in my app: CoreAnimation: warning, deleted thread with uncommitted CATransaction; It suggests turning on CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces, which I did. This is the top of my backtrace: 0 QuartzCore 0x00007fff88a84b95 _ZN2CA11Transaction4pushEv + 219 1 QuartzCore 0x00007fff88a8476d _ZN2CA11Transaction15ensure_implicitEv + 273 2 QuartzCore 0x00007fff88a8bb6a _ZN2CA5Layer12begin_changeEPNS_11TransactionEjRP11objc_object +

Is there an opencl profiler for mac os X 10.8?

有些话、适合烂在心里 提交于 2019-12-24 03:56:08
问题 I am trying to find the bottleneck in my OpenCL kernel, is it possible to profile OpenCL programms on mac os X? I found gDebugger on http://www.gremedy.com/, but it requires 10.5 or 10.6 to run. AMD SDK supports only Linux and Windows. Is there a profiler for Mountain Lion? 回答1: How detailed must your profiling information be? Is it okay to use the built-in internal profiler? OpenCL queues can be created with the CL_QUEUE_PROFILING_ENABLE flag. This way you can see for each kernel you

For real, too many installations of Python on OSX Mountain Lion

吃可爱长大的小学妹 提交于 2019-12-23 19:49:54
问题 I have three different Python 2.7s at: /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 I use a number of packages that come from different sources. I am currently installing packages from port (MacPorts), easy_install , pip (installed by easy_install ), and Mercurial. There are also some that I have to install from image or build from

Step by step instructions for getting cppunit up and running with Netbeans 7.2 on OS X 10.8 Mountain Lion

∥☆過路亽.° 提交于 2019-12-23 18:04:12
问题 Can someone please provide step by step instructions for getting cppunit working on OS X 10.8 Mountain Lion? This includes any downloads needed and any configuration of Netbeans. Currently, when I add a cppunit test, there is a warning on the Add Test dialog that says "cppunit library is not detected. Test compilation might fail." I've download both from Sourceforge and from svn cppunit and copied the files to /usr/local/include, but this does not make compilation errors go away. What am I

XCODE keeps crashing. Deals with auto layout

人盡茶涼 提交于 2019-12-23 15:35:27
问题 I clicked to turn off auto layout. And now I click the check box to turn it on, and xcode immediately crashes..Every time. I'm pretty sure that all tableviews have a datasource. I can't work on the project! Please help. Process: Xcode [5748] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 5.0 (3332.25) App Item ID: 497799835 App External ID: 38302662 Code Type: X86-64 (Native) Parent Process: launchd [144] User ID: 501 Date/Time: 2013-09-30 00:12:40