osx-snow-leopard

ImportError: No module named Foundation

让人想犯罪 __ 提交于 2019-11-28 06:51:41
I am trying to follow the instructions for the accepted answer to "PyObjC development with Xcode 3.2". I will repost them here since I don't have enough rep to comment on the actual question: Here's what I have done to get PyObjC working in Snow Leopard: Using the Finder, I went to Go > Connect to Server... and connected to http://svn.red-bean.com/pyobjc/trunk/pyobjc/pyobjc-xcode/ as a guest. I then made a folder called Xcode on my local system at ~Library/Application Support/Developer/Shared/Xcode/ . (You may already have this folder, but I hadn't customized anything for myself yet). I copied

Clang and the default compiler in OS X Lion

人走茶凉 提交于 2019-11-28 06:37:32
In OS X Snow Leopard (10.6) I used the following lines in ~/.bashrc to force compilation with clang instead of standard gcc: # Set Clang as the default compiler for the system export CC=clang export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments I also (occasionally) had to use the following lines to use llvm-gcc when clang would fail to compile certain things (PostgreSQL was guilty of this for a long time): # Set LLVM GCC as the default compiler for the system export CPP='llvm-gcc-4.2' export CC='llvm-gcc-4.2' export CXX='llvm-g++' On OS X Lion (10.7), are these lines still

How to detect global mouse button events [closed]

眉间皱痕 提交于 2019-11-28 06:10:16
问题 I'm wondering how can I write a code to monitor the mouse buttons globally. This would be for OS X, and I'd like to try writing it in Qt/C++. To begin with I don't know how to capture those global events. The monitor application would not display a GUI, it'd simply be a process that runs in the background and detects mouse buttons being clicked. In the second part of the program I would like to launch hot-keys depending of the mouse key pressed. My final idea is make a free program like

Uninstalling rails and gems, getting error \"cannot uninstall, check 'gem list -d …'

左心房为你撑大大i 提交于 2019-11-28 05:06:27
I'm going to start with the usual noob line, "I'm new to rails". Oh, and I'm running Mac OSX 10.6.4 I've been following a bunch of guides to get set up, specifically these two here and here . The guides are great, the reason I'm using the second one is because of RVM and the reason I'm using the first is for MYSQL. Anyway, when I started, I wasn't following the directions completely and so after I installed RVM, for some reason I installed rails with sudo gem install rails -v 2.3.8 because thats the version I need. So... I realized I was using the system ruby, and wasn't taking advantage of

Detecting when a space changes in Spaces in Mac OS X

て烟熏妆下的殇ゞ 提交于 2019-11-28 04:35:24
Let's say I want to write a simple Cocoa app to make the Spaces feature of Leopard more useful. I would like to configure each space to have, say, different screen resolutions keyboard layouts volume (for audio) So there are two parts to my question: I suppose there are ways to modify these three things independently of Spaces, right? If so, how? How can I detect in my app when a space change occurs, and when that happens, determine what space the user just switched to? Does Leopard send out some distributed notifications or something? Update: There has to be some public API way of doing this,

Installing Python Imaging Library (PIL) on Snow Leopard with updated Python 2.6.2

点点圈 提交于 2019-11-28 04:32:29
I have a fresh install (started with a wiped drive) of Snow Leopard with the developer tools installed during the Snow Leopard installation. I then installed Python 2.6.2, replacing the Snow Leopard default python 2.6.1. I've tried to install PIL by: easy_install pip downloading source and running python setup.py build manually. All yield the same error (link to pip log: http://drop.io/gi2bgw6 ). I've seen others have had success installing PIL using the Snow Leopard default python 2.6.1, so I'm not sure why I'm having so much trouble getting it to work with 2.6.2. The python.org Python was

Install Rails 3 on OSX with RVM

早过忘川 提交于 2019-11-28 04:12:04
Trying to install the new Rails 3 release on OSX 10.6. Have never touched Ruby or Rails on this machine since purchased. I was able to get rvm and get Ruby 1.9.2. installed. From there, I am stuck. I tried: rvmsudo gem install rails -v 3.0.0 sudo gem install rails --pre sudo gem install rails sudo gem update rails And I get the same result error each time: ERROR: While executing gem ... (Errno::ENOENT) No such file or directory - /Users/kevin/.rvm/gems/ruby-1.9.2-head@rails3/cache/activesupport-3.0.0.gem If I do gem list, it says LOCAL GEMS and doesn't list anything. I have read a few

Testing file existence using NSURL

五迷三道 提交于 2019-11-28 04:03:08
Snow Leopard introduced many new methods to use NSURL objects to refer to files, not pathnames or Core Services' FSRefs. However, there's one task I can't find a URL-based method for: Testing whether a file exists. I'm looking for a URL-based version of -[NSFileManager fileExistsAtPath: ] . Like that method, it should return YES if the URL describes anything, whether it's a regular file, a directory, or anything else. I could attempt to look up various resource values , but none of them are explicitly guaranteed to not exist if the file doesn't, and some of them (e.g., NSURLEffectiveIconKey )

Authorize a non-admin developer in Xcode / Mac OS

你离开我真会死。 提交于 2019-11-28 02:38:06
I use a standard user account for my daily tasks on Mac OS. Since upgrading to Snow Leopard I am asked to do the following when a program is run from within Xcode: "Type the name and password of a user in the 'Developer Tools' group to allow Developer Tools Access to make changes" While I know the admin username/password, this is annoying (though only required once per login). The developer tools access is asking for rights to "system.privilege.taskport.debug" from application gdb-i386-apple-darwin. What is the best way around this? Ned Deily You need to add your OS X user name to the

gem install mysql failure in Snow Leopard

点点圈 提交于 2019-11-27 23:53:39
I successfully installed MySql x86_64 in Snow Leopard and Ruby and Ruby Gems seems to be installed properly: $ which mysql /usr/local/mysql/bin/mysql $ which ruby /usr/bin/ruby $ which gem /usr/bin/gem $ mysql Your MySQL connection id is 404 Server version: 5.1.37 MySQL Community Server (GPL) $ ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] $ gem -v 1.3.5 Unfortunatly I get an error installing mysql gem: $ sudo gem update --system ... $ sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config Building native extensions.