osx-lion

Is moving to Lion a prerequisite for moving to XCode 4.1 (from the app store)?

天涯浪子 提交于 2019-12-02 08:33:28
问题 should you only download XCode 4.1 from the app store if you move to Lion? i.e I am staying on Leopard for a few more weeks, so do I have to stay with XCode 4.0.2 until I move to Lion? 回答1: Yes, it seems: This is a pre-release version of Xcode 4.1 for both Mac and iOS development. This release requires Mac OS X Lion and includes iOS SDK 4.2. Continue to use Xcode 3.2.5 on a Snow Leopard partition if you plan to submit Mac or iOS apps to the App Store Details: http://thetechjournal.com

Is moving to Lion a prerequisite for moving to XCode 4.1 (from the app store)?

こ雲淡風輕ζ 提交于 2019-12-02 07:15:12
should you only download XCode 4.1 from the app store if you move to Lion? i.e I am staying on Leopard for a few more weeks, so do I have to stay with XCode 4.0.2 until I move to Lion? Yes, it seems: This is a pre-release version of Xcode 4.1 for both Mac and iOS development. This release requires Mac OS X Lion and includes iOS SDK 4.2. Continue to use Xcode 3.2.5 on a Snow Leopard partition if you plan to submit Mac or iOS apps to the App Store Details: http://thetechjournal.com/electronics/computer/software/xcode-4-1-developer-preview-for-mac-os-x-lion-is-available-for-download.xhtml

python installation can't find psycopg2 ImportError

自作多情 提交于 2019-12-02 07:13:45
问题 I'm calling on psycopg2 with import psycopg2 I get the std error ImportError: No module named psycopg2 I installed my copy with macports, so I'm curious why it wouldn't work because all of the dependencies should be downloaded as well. I don't have any experience with Postgresql, nor this module, so I don't know what could be going wrong. Fact is, another project I'm trying to get built calls upon it, so if I could avoid using this I would. :) I'm sure that postgresql is installed, but that

Weird font anti-aliasing in view-based NSOutlineView

时光总嘲笑我的痴心妄想 提交于 2019-12-02 06:32:52
问题 I'm currently working on an app that uses Lion's new view-based NSOutlineView . The problem I've ran into, however, is that I don't get nice subpixel anti-aliasing. As a result, the text doesn't appear as smooth as one would expect on Mac OS X. Here are two screenshots to illustrate the issue. Finder (proper text rendering) on the left, my app on the right. Any idea what could cause that issue? 回答1: Do you have your cell views, your outline view or its enclosing scroll view to be layer backed

Install MatPlotLib 1.2.x on OS X Lion 10.7.4 and Python 3.2.2

柔情痞子 提交于 2019-12-02 05:44:34
I asked a question a couple of days ago regarding installing numpy on the same system. Thankfully, I managed to solve that one myself but unfortunately I am now stuck trying to install matplotlib. I first of all tried the current distributed version but had no luck with that so I thought i would download the git repository and try that. I have got this far: changed the make.osx file so that it will work in Python 3: import urllib -> import urllib.request urllib.urlretrieve() -> urllib.request.urlretrieve() Even after that I still had a problem with it not finding the freetype2 headers. I

Make error installing Ruby 1.9.2 via rvm OSX Lion 10.7.2 XCode 4.2

穿精又带淫゛_ 提交于 2019-12-02 04:25:39
问题 I'm getting the following error when trying to install 1.9.2 with rvm /Users/craigspaeth/.rvm/scripts/functions/utility: line 152: date: command not found Installing yaml to /Users/craigspaeth/.rvm/usr /Users/craigspaeth/.rvm/scripts/functions/utility: line 152: date: command not found ERROR: Error running 'make install', please read /Users/craigspaeth/.rvm/log/ruby-1.9.2-p290/yaml/make.install.log And here is the yaml/configure.log [] make install Making install in include make[2]: Nothing

Why is FF on OS X losing jQuery-UI in click event handler?

烂漫一生 提交于 2019-12-02 04:13:28
In a web page using jQUery 1.7.1 and jQUery-UI 1.8.18, if I output $.ui in an alert box when the document is ready, I get [object Object]. However when using Firefox, if I output $.ui in a click event handler, I get 'undefined' as result. With other browsers (latest versions of IE, Chrome and Safari), the result is still [object Object] when clicking on the link. Here is my HTML Page: <!doctype html> <html> <head> <title></title> <script src="Scripts/jquery-1.7.1.js" type="text/javascript"></script> <script src="Scripts/jquery-ui-1.8.18.js" type="text/javascript"></script> <script type="text

python installation can't find psycopg2 ImportError

て烟熏妆下的殇ゞ 提交于 2019-12-02 03:50:43
I'm calling on psycopg2 with import psycopg2 I get the std error ImportError: No module named psycopg2 I installed my copy with macports, so I'm curious why it wouldn't work because all of the dependencies should be downloaded as well. I don't have any experience with Postgresql, nor this module, so I don't know what could be going wrong. Fact is, another project I'm trying to get built calls upon it, so if I could avoid using this I would. :) I'm sure that postgresql is installed, but that has little to do with the fact that my installation can't find psycopg2. Any suggestinos would be

Weird font anti-aliasing in view-based NSOutlineView

为君一笑 提交于 2019-12-02 03:31:44
I'm currently working on an app that uses Lion's new view-based NSOutlineView . The problem I've ran into, however, is that I don't get nice subpixel anti-aliasing. As a result, the text doesn't appear as smooth as one would expect on Mac OS X. Here are two screenshots to illustrate the issue. Finder (proper text rendering) on the left, my app on the right. Any idea what could cause that issue? Do you have your cell views, your outline view or its enclosing scroll view to be layer backed? The issue here is the text on the right is not sub pixel aliased, which happens when you set a view to be

Increase stack size in OS X Lion

微笑、不失礼 提交于 2019-12-01 21:54:43
I need to do it for a C++ program that needs a lot of stack. I use g++ (included in OS X Lion) to compile it. How could I increase it for my program? From http://developer.apple.com/library/mac/#qa/qa1419/_index.html Using gcc, pass link flags through to ld with -Wl: gcc -Wl,-stack_size -Wl,1000000 foo.c You can use getrlimit / setrlimit - this works on Linux, Mac OS X, and other POSIX-ish operating systems, e.g. #include <sys/resource.h> int main (int argc, char **argv) { const rlim_t kStackSize = 16 * 1024 * 1024; // min stack size = 16 MB struct rlimit rl; int result; result = getrlimit