osx-lion

OSX - Service does not show the localized Menu Title string

杀马特。学长 韩版系。学妹 提交于 2019-12-22 00:15:32
问题 I have a Cocoa application. This hooks up into OSX Service Menu. I have created three ServicesMenu.strings for en.lproj , zh-Hans.lproj and hi-IN.lproj for localizing the Service Menu Title. The problem is OSX does seem to be using the localized text at all. Info.plist (relevant portion) <key>NSServices</key> <array> <dict> <key>NSKeyEquivalent</key> <key>NSMenuItem</key> <dict> <key>default</key> <string>CreateHere</string> </dict> <key>NSMessage</key> <string>createHere</string> <key

Any NSWindowRestoration examples?

柔情痞子 提交于 2019-12-21 19:45:29
问题 I'm having some trouble implementing NSWindowRestoration (in 10.7 Lion). I'm not getting the protocol notifications. Is there an example app with this implemented somewhere? I cannot find one on the Apple Developer site. Thanks! Edit: The question marked as answer is helpful, but the problem in my case was that I was using a menubar-only application. I guess window restoration doesn't work with dockless apps yet. Snap! 回答1: The class method + (void)restoreWindowWithIdentifier:(NSString *

Building Portaudio on OSX 10.7.5 using SDK10.6 or 10.7 fails

佐手、 提交于 2019-12-21 19:42:40
问题 I am still having trouble building the Portaudio library on my system, which is OSX 10.7.5 with Xcode 4.3.2, having Command Line Tools installed and having SDK10.6 and SDK10.7 under /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ I describe shortly (also for others that run into the same problem) what I have done so far (following different solutions I have found on the web). 1) I downloaded "Portaudio" / pa_stable_v19_20111121.tgz (last stable release)

pg gem Trace/BPT trap: 5 error on MAC OS X lion

戏子无情 提交于 2019-12-21 09:17:34
问题 I recently upgraded my snow leopard to lion and in one of my apps i get => Booting WEBrick => Rails 3.0.4 application starting in development on http://0.0.0.0:4000 => Call with -d to detach => Ctrl-C to shutdown server [2011-08-16 17:47:27] INFO WEBrick 1.3.1 [2011-08-16 17:47:27] INFO ruby 1.9.2 (2011-07-09) [x86_64-darwin11.0.0] [2011-08-16 17:47:27] INFO WEBrick::HTTPServer#start: pid=3460 port=4000 Trace/BPT trap: 5 the app quits and there is no other output , it does run with sqlite3 as

Android SDK Installation Folder on OS X

牧云@^-^@ 提交于 2019-12-21 07:24:13
问题 Any best practices/recommendations on the installation folder for the Android SDK? Following http://developer.android.com/sdk/installing.html on OS X and Step 2. "...unpack it to a safe location on your machine..." makes no sense at all for me coming from Windows. 回答1: /Applications is the most natural place. Maybe /usr/local for the old Unix folks. 回答2: I install it using Android Studio and i found it here: /Users/username/Library/Android/sdk 回答3: Check here too /usr/local/Cellar/android-sdk

Too many levels of symbolic links osx Lion

独自空忆成欢 提交于 2019-12-21 06:04:11
问题 i'm try to install a libraries but when the make file try to attempt to Developer folder it appear message Too many levels of symbolic links. So i try: Go home folder (cd /) then i try: bash-3.2# cd Developer and this is the output: bash: cd: Developer: Too many levels of symbolic links what could be the problem? can you help me? ls -l says me lrwxr-xr-x 1 root wheel 10 14 Mar 09:13 Developer -> /Developer 回答1: If go to: cd / and ls -la outputs: lrwxr-xr-x 1 root wheel 10 14 Mar 09:13

Too many levels of symbolic links osx Lion

橙三吉。 提交于 2019-12-21 06:03:21
问题 i'm try to install a libraries but when the make file try to attempt to Developer folder it appear message Too many levels of symbolic links. So i try: Go home folder (cd /) then i try: bash-3.2# cd Developer and this is the output: bash: cd: Developer: Too many levels of symbolic links what could be the problem? can you help me? ls -l says me lrwxr-xr-x 1 root wheel 10 14 Mar 09:13 Developer -> /Developer 回答1: If go to: cd / and ls -la outputs: lrwxr-xr-x 1 root wheel 10 14 Mar 09:13

Why am I getting a could not connect to server error for postgres in Mac OS Lion?

删除回忆录丶 提交于 2019-12-21 06:02:07
问题 I just installed postgresql on my Mac OS Lion machine. I've already uninstalled and reinstalled the pg gems. When I run psql I get the following error: psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? running which psql : /usr/local/bin/psql I installed postgresql using homebrew Here is a lsof results for postgres: postgres 21159 myuser cwd DIR 14,2 680 3528182 /usr/local/var

RESTful web service: java.lang.NullPointerException service.AbstractFacade.findAll

喜你入骨 提交于 2019-12-21 05:48:10
问题 I created a simple XML web service using NetBeans 7's "RESTful Web Services from Database..." wizard. At this point, I want to publish a list of users from the associated mySQL database. When I attempt to access the service via its URL (http://localhost:8080/database/resources/users), I get an error that reads "java.lang.NullPointerException". The stack trace: service.AbstractFacade.findAll(AbstractFacade.java:41) service.UserFacade.findAll(UserFacade.java:51) sun.reflect

psycopg2 installation problem on OSX Lion

回眸只為那壹抹淺笑 提交于 2019-12-21 05:34:10
问题 I used PIP to install psycopg2 on OSX Lion. But when I try to import from python I get the following errors: Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import psycopg2 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packages/psycopg2/__init__.py", line 67, in <module> from psycopg2.