osx-lion

Installed Java 7, but interminal still Java 6 [closed]

蓝咒 提交于 2020-01-04 05:06:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I've installed Java 7 on my Mac (10.7.5), but in the terminal there is still java 6. java version "1.6.0_37" Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909) Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode) There will be no problem with the version 6 on terminal, if I always

How to Host Apple's Pitch Shift Audio Unit plugin and the like

≡放荡痞女 提交于 2020-01-03 17:22:53
问题 How do you host the PitchShift Audio Unit plugin correctly in its own window? I am developing a Mac app that hosts Apple's system supplied Audio Unit plugins. With the new OSX 10.7 Lion, some of the plugins have updated views. PitchShift is one of these. PitchShift and a few others have new knobs to change there parameters. When a knob is being turned with the mouse, a horizontal bar showing the knob's parameter value is displayed below the knob. This bar stays on screen after the knob is

InterProcess Communication on MacOSX Lion

℡╲_俬逩灬. 提交于 2020-01-03 03:43:08
问题 I'm trying to figure out how to set up IPC between my custom app and a pre-made program. I'm using MacOSX Lion 10.7.2 and Xcode 4.2.1. It doesn't matter actually what program exactly, since I believe that a similar reasoning may be applied to any kind of external process. For testing purposes I'm using a simple bash script: #test.sh echo "Starting" while read out do echo $out done What I would like to achieve is to redirect input and output of this script, using my app to send inputs to it

In OS X (lion) how can I find whether a key combination is in use as a keyboard shortcut?

有些话、适合烂在心里 提交于 2020-01-02 19:14:30
问题 I want to put a bunch of keyboard shortcuts in my app (OS X lion) so I can do most things from the keyboard. There are of course a bunch of lists of hot key combos in use already, including the one in the HIG. Is there some utility that can be used to type a key combination and find out if it already means something (either globally, or mac standard -- I'm not too worried about reusing some special combo used by another app -- or should I be?)? 回答1: You can use Carbon to do this. Don't be

Cannot run migrations due to MySQL error

倾然丶 夕夏残阳落幕 提交于 2020-01-02 12:16:45
问题 I have been trying to get my dev environment setup on OS X for a couple of days now, and I have had a lot of trouble with mysql. I have installed mysql via the dmg file available from the mysql website. This fixed most of the trouble I was having. My current problem is that, when I run "rake db:migrate" I get the following error: rake aborted! undefined method `init' for Mysql:Class I read somewhere that using gem 'mysql2' in the Gemfile and mysql2 as the database adapter might fix the

Qt 4.8 beta and Mac OSX Lion, Phonon error

会有一股神秘感。 提交于 2020-01-02 06:57:37
问题 After a successful install of mac OS 10.7 I tried to compile my qt 4.7 project. I had many warnings of "unsupported mac os x version". I thus decided to use Qt 4.8 beta and now, all the warnings are gone. However, I now have a linker problem using Phonon: dyld: Library not loaded:/Users/pulseagent/repos/build2/Desktop/Qt/4.8.0/gcc/lib/QtDBus.framework/Versions/4/QtDBus Referenced from: /Users/kikohs/QtSDK/Desktop/Qt/4.8.0/gcc/lib/phonon.framework/Versions/Current/phonon Reason: Incompatible

PIL ImageTK not loading image in py2app application bundle

隐身守侯 提交于 2020-01-02 03:50:28
问题 I'm testing out an app that I've made which, amongst other things, loads a couple of .png images when opened. The images are displayed correctly on my Mac (10.7.5) and my mother's (10.8.5); however when my sister opens it on hers (10.9.5) the images don't load. All other functionality is otherwise intact. I should note that on my Mac and my mother's, I installed Python 3.4 and many of the packages that the app uses, including the PIL package, whereas my sister has none of these. The app was

I can't uninstall Git

…衆ロ難τιáo~ 提交于 2020-01-02 02:54:10
问题 I tried to update my git version on Mac OS X 10.7, but it doesn't change the version. It's still on 2.0. If I run, rm -rf /usr/local/git rm /etc/paths.d/git rm /etc/manpaths.d/git the new version gets uninstalled, but the old one is still there ( git is still a valid command). How can I find the directory where this "ghost" version is installed? 回答1: To see where git is installed: which git See for instance those guides: "Beginner's Setup Guide for Git & Github on Mac OS X" "Install and

gcc 4.7.3 and gdb 7.6 on Mac - strange stepping problems

妖精的绣舞 提交于 2020-01-01 09:42:20
问题 I recently installed GCC 4.7.3 and GDB 7.6 on my OS X 10.7 system via MacPorts to be able to compile C++11 code. I cannot use Apple's selfmade clang++ and gdb since it doesn't allow me to debug standard template library code properly (for example, if I dereference a list iterator, the program crashes). Now, with the new GCC / GDB combination I have some weird problems with stepping into functions. Take this minimal example: #include <stdio.h> class A { public: virtual void testMethod() {

gcc 4.7.3 and gdb 7.6 on Mac - strange stepping problems

陌路散爱 提交于 2020-01-01 09:42:04
问题 I recently installed GCC 4.7.3 and GDB 7.6 on my OS X 10.7 system via MacPorts to be able to compile C++11 code. I cannot use Apple's selfmade clang++ and gdb since it doesn't allow me to debug standard template library code properly (for example, if I dereference a list iterator, the program crashes). Now, with the new GCC / GDB combination I have some weird problems with stepping into functions. Take this minimal example: #include <stdio.h> class A { public: virtual void testMethod() {