osx-lion

Trackpad gesture to switch to header/source

我是研究僧i 提交于 2019-11-27 06:41:15
I used to be able to use three finger scroll-up to switch between source/header. Since upgrading to Lion, I it just does a regular scroll. Is there any way to get that feature back? Aka, it doesn't jump to counterpart when I scroll up / down like it used to. Update Apple fixed the issue in Xcode 4.2. So, upgrade your versions. Todd Hopkinson This is the correct and best answer . It works. It is posted by "@Buyin" above. Another individual commented that it doesn't work. He is wrong. It works, I've confirmed it. It restores the three finger vertical swipe to switch between interface and

Writing a privileged helper tool with SMJobBless()

与世无争的帅哥 提交于 2019-11-27 06:27:58
Even though the API has been open since Mac OS X Leopard, there's surprisingly, and unfortunately, very little documentation on how to correctly use SMJobBless() for creating privileged helper tools. There are a lot of gotchas, even when copying code directly from Apple's sample project. Luckily, I've found my way around this, and have gotten the basis for my helper tool working. However, it would seem that SMJobBless() only blesses the tool and copies it over, but doesn't run it. I've included code in my helper tool's main() function that should run, but doesn't (since NSLog() inexplicably

python tab completion Mac OSX 10.7 (Lion)

强颜欢笑 提交于 2019-11-27 06:19:14
Before upgrading to lion, I had tab complete working in a python shell via terminal. Following these instructions , it was possible to have tab complete working. Since upgrading to Lion, I am now unable to get tab complete working in a terminal session of Python. I've followed the above instructions to the letter, and it still does not work. Is there a difference with the readline module in Lion? Hooking in to the 'tab:complete' option no longer seems to work. I'm wondering if it is terminal that is ignoring readline, or if it is python itself. Python version: 2.7.1 Edit: By tab complete, I

py2app is not copying the Python.framework to the new app while using virutalenv

混江龙づ霸主 提交于 2019-11-27 06:07:19
问题 environment: MacOS X 10.7.2, system installed python 2.7.1, virtualenv 1.7.2, pyobjc 2.3, py2app 0.6.4+ I have a newly created virtualenv with pyobc 2.3 and py2app installed. When I run python setup.py py2app to create an app (for example in py2app/examples/simple) everything seems to compile and it does produce a double clickable app, but after clicking on that app I get the following error: A Python runtime not could be located. You may need to install a framework build of Python, or edit

Where can I find “make” program for Mac OS X Lion?

守給你的承諾、 提交于 2019-11-27 05:57:55
Just upgraded my computer to Mac OS X Lion and went to terminal and typed "make" but it says: -bash: make: command not found Where did the "make" command go? Have you installed Xcode and the developer tools? I think make, along with gcc and friends, is installed with that and not before. Xcode 4.1 for Lion is free. Tarmo You need to install Xcode from App Store . Then start Xcode, go to Xcode->Preferences->Downloads and install component named "Command Line Tools". After that all the relevant tools will be placed in /usr/bin folder and you will be able to use it just as it was in 10.6. It

Error “no such instruction” while assembling project on Mac OS X

和自甴很熟 提交于 2019-11-27 05:43:25
问题 I used homebrew to install GCC 4.7.0 and my project's make is failing at assembly-time. I can successfully take code from .c -> .s, but .s -> .o fails. To view the brew formula used to install GCC, please look at: https://github.com/Homebrew/homebrew-dupes/blob/master/gcc.rb . I also installed binutils from upstream using https://github.com/mxcl/homebrew/blob/master/Library/Formula/binutils.rb . Install binutils does not appear to introduce a new 'as' in the /usr/local/lib or similar. How can

Adding Older iOS SDKs to Xcode 4.1 in Lion

雨燕双飞 提交于 2019-11-27 05:38:22
问题 I just installed Lion and Xcode 4.1. How do I add older SDKs so I can build and run in 4.1 or 4.2 in iPhone/iPad Simulator? Xcode 4.1 only comes with the iOS 4.3 SDK. Does Lion have some sort of minimum SDK for builds? Thanks, 回答1: Actually it is possible to add older SDKs as long as you can still get your hands on an older version of Xcode with the older SDK. It's useful too sometimes: when you do this you get to find out about unsupported constants and methods you may be using during

Rails and OS X: How to install rmagick?

时光总嘲笑我的痴心妄想 提交于 2019-11-27 05:28:00
问题 I am already completely desperate - I spent whole day with trying to install rmagick gem to Mac OS X Lion, but literally it's a tragedy. I saw many similar threads on Google, but nothing has helped me. I tried completely uninstall imagemagick via brew and install it again (this is working well) and then to install the rmagick , but every time when I try to install this gem, I receive this error: Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR:

gem install pg doesn't work on OSX Lion

自作多情 提交于 2019-11-27 05:09:33
问题 There are variations of this question bouncing around SO, but none of them seem to have an answer that solves my problem. I am running OSX Lion (10.7.3). The latest XCode is installed. I've installed Postgres using the Postgres.app package from postgresapp.com. But when I try to install the pg gem, I get a failure: $ gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config Building native extensions. This could take a while... ERROR: Error installing pg:

start MySQL server from command line on Mac OS Lion

橙三吉。 提交于 2019-11-27 04:55:53
问题 I installed mySQL for my Mac. Beside starting the SQL server with mySQL.prefPane tool installed in System Preference, I want to know the instruction to start from command-line. I do as follow: After su root I start the mySQL server by command-line, it produce error as below: sh-3.2# /usr/local/mysql/bin/mysqld 111028 16:57:43 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql-5.5.17-osx10.6-x86_64/data/ is case insensitive 111028 16:57:43 [ERROR] Fatal error: