osx-snow-leopard

how to move subviews inside a super view

主宰稳场 提交于 2019-12-06 13:37:36
问题 how to move subviews inside a super view (using osx 10.6) using mouse? i have programmatically created five NSimageView's as subviews using for loop.. how to select and drag each imageview 回答1: In a nutshell, you'd want to make your subviews drag sources, and make your target view a destination. This means implementing something like the NSDraggingSource and NSDraggingDestination protocols. Take a look at Apple's Drag & Drop documentation: https://developer.apple.com/library/mac/

InputManager plug-ins in Snow Leopard (OS X 10.6)

风格不统一 提交于 2019-12-06 11:36:24
I'm getting conflicting reports from various places. Engadget's review says InputManager plug-ins being completely ignored (and causing strange behaviour if the application is loaded in 32-bit mode), but this mailing list thread says they will work if the 32/64-bit compatibility is right. So I have two questions: Do we get to use InputManagers in Snow Leopard? If yes, will it work the same way as in Leopard. And if no, what is good a workaround (because 1Password is apparently working on a fix)? If you really need to inject code into applications to accomplish what you're trying to do, use

How to resolve this PostgreSQL error on OS 10.6 (Snow Leopard)

旧城冷巷雨未停 提交于 2019-12-06 11:32:18
I followed the instructions for setting up postgresql from this site All seems to go fine until I try: createuser --superuser myname -U postgres I get the following exception: createuser: could not connect to database postgres: 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"? For the life of me I can't figure out how to resolve this. Any ideas??? I had to remove the existing postgres user before doing the install. Perhaps you moved your postgres data directory after you installed postgres

Move all .jpeg from directory structure into one folder on Mac OS X

北城以北 提交于 2019-12-06 08:22:19
Recently my iPhoto database got all screwed up and I need to extract all of the originals from a folder structure to a central folder on the desktop. Instead of going one by one through all of the folders, I would like to move all of them through a bash command or script. Any suggestions. I looked into rsync but I think that only takes the folders structure. find /path/to/original/folder -type f -name "*.jpg" -exec mv {} /path/to/new/folder \; 来源: https://stackoverflow.com/questions/5364579/move-all-jpeg-from-directory-structure-into-one-folder-on-mac-os-x

Java5 on Snow Leopard

自闭症网瘾萝莉.ら 提交于 2019-12-06 06:31:30
I need Java5 (not 6), but Snow Leopard comes with only Java6. There is /System/Library/Frameworks/JavaVM.framework/Versions/1.5 , but that just points to 1.6.0 : $ ls -la /System/Library/Frameworks/JavaVM.framework/Versions/ lrwxr-xr-x 1 root wheel 5 Sep 24 20:12 1.3 -> 1.3.1 drwxr-xr-x 3 root wheel 102 Jul 21 07:35 1.3.1 lrwxr-xr-x 1 root wheel 10 Sep 24 20:12 1.5 -> CurrentJDK lrwxr-xr-x 1 root wheel 10 Sep 24 20:12 1.5.0 -> CurrentJDK lrwxr-xr-x 1 root wheel 5 Sep 24 20:12 1.6 -> 1.6.0 drwxr-xr-x 7 root wheel 238 Sep 24 20:12 1.6.0 drwxr-xr-x 8 root wheel 272 Sep 24 20:12 A lrwxr-xr-x 1

Xcode's shared workgroup 'Unreachable' after Snow Leopard/Xcode upgrade

旧时模样 提交于 2019-12-06 05:20:47
问题 After upgrading to OS X 10.6 (Snow Leopard) and iPhone SDK 3.1 (with Xcode 3.2), Xcode's shared workgroup builds (distributed) can't seem to find or access other computers in our office. Distributed builds worked perfectly in OS X 10.5 with iPhone SDK 3.0. All the computers that have upgraded are now listed with a status of Unreachable . Even my own computer, artanis , is listed as Unreachable! I've already tried all of the suggestions listed in Troubleshooting Distributed Network Builds. And

awtrobot reads incorrect colors

亡梦爱人 提交于 2019-12-06 05:18:19
I'm looking for a platform-independent way to read colors from the screen and simulate user input through mouse and keyboard actions. I have previously been using java.awt.robot , however some time in the past 2 years it has started reporting incorrect colors in OSX (other operating systems appear to get accurate colors) as noted in this question . I'm looking for either a workaround for this bug or any other library/language which will provide this functionality. Using the fairly simple code below can demonstrate the issue. public void printColorAtCoordinate(int x, int y) { Color color; color

Deploy Lion app to 10.6 exception

六眼飞鱼酱① 提交于 2019-12-06 04:21:45
I have an OS X App That builds on Lion (with latest sdk) but deploy set to 10.6 (to be able run on Snow Leo). ARC enabled. I want's to run app on Show Leopard. Application works well on Lion. But when I start application in 10.6 I get this exception in console: NSRLEArray objectAtIndex:effectiveRange: Out of bounds And nothing more. No stack or whatever. Just this one line. What I may do to clarify situation ? Problem seems more strange, since in Lion all works good. 来源: https://stackoverflow.com/questions/11723476/deploy-lion-app-to-10-6-exception

Force a Mac OS X 32/64-bit universal binary to run 32-bit on an old OS version only?

纵饮孤独 提交于 2019-12-06 03:33:04
问题 I want to ship a single 32/64-bit universal binary of my desktop Mac OS X Cocoa app. I don't want to ship two versions. I want it to run as a 64-bit process on Snow Leopard. However, if the app is launched on Leopard, I want to always force it to run as a 32-bit process. NOTE: I know that in the Finder 'Get Info' window you can click the 'Open in 32-bit mode' checkbox to achieve this. That's nice, but what I really want is a way to automatically, always force this behavior on Leopard only .

“No module named _scproxy” on OSX

余生长醉 提交于 2019-12-06 03:02:46
问题 I'm on OSX 10.6 with pre-installed python 2.6 and would like to install python packages via easy_install or setup.py (in a downloaded package). In my case I'm trying to install MySQLdb. In both cases I get a stack trace which ends like so: ... File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.py", line 21, in <module> from setuptools.package_index import PackageIndex, parse_bdist_wininst File "/System/Library/Frameworks/Python