osx

Core Data Migration really Slow, Why does it happen at all?

I'm developing a desktop Mac OS X App that saves its very simple data into SQLite with Core Data and a companion mobile App for iPhone that simply needs to read data from the desktop App. Although they share the same Managed Object Model when I load the SQLite database on the mobile app the data takes several seconds to migrate the data....

Mac os x Terminal.app's buffer and screen command

Hi, I use Mac os x Terminal.app to connect to my remote machine and then use screen on that machine. Is there a way to use the scrollbars on Terminal to scroll back and forth on the screen's buffer. It is painful to do ctrl+a + Esc and then Page Up/Down Thanks Arvind ...

How does one build an x64 assembly program in OS X?

I'm trying to build Hello World in x64 assembly on my Leopard MacBook Pro. It assembles fine, but I get this error when I try to link it: ld: symbol dyld_stub_binding_helper not defined (usually in crt1.o/dylib1.o/bundle1.o) for inferred architecture x86_64 I loaded it with ld -o hello64 hello64.o -lc My assembler is Yasm. EDIT: As fa...

Blank process name for OSX Cocoa application?

I'm developing an OSX application (Clarke) that runs with LSUIElement set (system menu only - no tray icon, doesn't appear in cmd-tab). It works totally fine, but someone just pointed out that it has a blank process name in the Activity Monitor listing. Just says nothing. Everything else in there has a name. Even other apps running at L...

from a CSV of filenames, find and open multiple files in a folder (or sub-folders)

Each camera folder has many thousands of photos, I need to open 20-or so specific files which could be located in any one or more folders, all within one 'root' folder: Photos |-- CameraA |-- CameraB |-- CameraC I'd like to paste a CSV of the filenames (eg 6504, 6505, 8902, 4501) into an Applescript (or preferably if...

Eclipse 3.5 switching tab is very slow

I am using eclipse 3.5 (cocoa build) on Macos 10.5 with Java 1.5.0.19. I just have 3 java files opened 1 files ~ 2000 lines the other 2 are ~ 700 lines. But when I switch from 1 file tab to another, eclipse takes a long time (~ 20 seconds) to switch to another tab. I have already change the eclipse.ini to more eclipse.ini -startup ....

Java Webstart Options

I am using javaws to run an application in OS X 10.5.7, Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211), and it seems that the command line arugments are broken in os X. I run the following command in linux and it works fine. javaws -wait -J"-Djavaws.package.runtype=debug" http://company.com/launch.jnlp and the runtime giv...

Lua compiled scripts on Mac OS X - Intel vs PPC

Been using Lua 5.0 in a Mac OS X universal binary app for some years. Lua scripts are compiled using luac and the compiled scripts are bundled with the app. They have worked properly in Tiger and Leopard, Intel or PPC. To avoid library problems at the time, I simply added the Lua src tree to my Xcode project and compiled as is, with no ...

Machine ID for Mac OS?

I need to calculate a machine id for computers running MacOS, but I don't know where to retrieve the informations - stuff like HDD serial numbers etc. The main requirement for my particular application is that the user mustn't be able to spoof it. Before you start laughing, I know that's far fetched, but at the very least, the spoofing...

A Dashcode project without a Dashcode project package

Dashcode keeps source files in a ".dcproj" project file, which is really a package to OS X, which in turn is actually nothing more than a directory structure. I'd like to continue to use Dashcode but without the "convenience" of the ".dcproj" structure. Why? I want to... check the source code into Mercurial use TextMate when develop...

Mac OS X free C compiler

Is there a small, free C or C++ compiler for OS X, like TCC? Xcode is not small, or simple like TCC, AFAIK. I'm looking for something like a GCC binary file or TCC for OS X. ...

psycopg2 on OSX: do I have to install PostgreSQL too?

Hello, I want to access a postgreSQL database that's running on a remote machine, from Python in OS/X. Do I have to install postgres on the mac as well? Or will psycopg2 work on its own. Any hints for a good installation guide for psycopg2 for os/x? ...

Binding to Media keys on Apple keyboards under OSX 10.5

I am fairly new to OSX development, so this may be easy but google has not been helpful. I am trying to bind an action to the media keys you find on newer Apple keyboards (Play, Pause , etc). It appears that you cannot bind to these keys using the regular hotkey API but it must be possible since iTunes clearly manages. Is there some tr...

how to disable window close button in OSX using wxpython?

i am working on an application for osx using wxpython. I want to minimize window to dockbar when user clicks on the window close button so that it can be restored from the dockbar. How can i do that? Currently i am having problem restoring window because it gets destroyed when user clicks on the close button. how can i prevent that? Tha...

Java Swing GUIs on Mac OS X

Have you ever attempted using Swing only to end up changing courses because it just couldn't do what you wanted? I'm pretty new to Swing, having only used it for school projects over 5 years ago, but it seems Swing has come a long way in providing a more native look and feel, so much so that I'm considering using it to develop the GUI f...

Looking for Java binary for Mac OS X

Hi, I'm trying to build zimbra from source on a mac mini running on mac os x 10.4.10. It seems that I need a file like this "jdk-1_5_0_16-linux-i586.bin" but I can't seem to find a jdk binary that is made for mac osx. Can anybody point me to this binary? Here is what zimbra does with the binary: sh jdk-1_5_0_15-linux-amd64.bin ta...

Apple Java source code available

Is the source code for the Java shipped with Mac OS X available anywhere (official)? I know that the Sun implementation is GPL nowadays. ...

Is it possible to access the Mac Address book API from pure Java?

Just wondering if it is possible to access the Mac OS X Address Book API's from pure Java 6 code? I want to keep this completely platform independent as my program is built for Windows & Linux also (open source & free: http://jsmsirl.sourceforge.net/). Any help is much appreciated! ...

activemq No suitable Log constructor

this is driving me insane. I'm simply trying to run activemq on Mac OSX 10.5.7. I have java version 1.5.0_19 and activemq 5.2.0. Below is the exception I get when running bin/activemq. It seems to be unable to find log4j which is odd considering it comes with activemq and is definitely in the lib/optionals directory. The only thing ...

On MacOSX/PPC, suggestions on how to catch KERN_PROTECTION_FAILURE at 0x0000000000000000

This is a realtime MMO client, at some random point it will crash with a jump to 0, and the stack frame is unreadable. The crashreporter (and gdb) will report thead 0 crashed XC_BAD_ACCESS (SIGBUS) KERN_PROTECTION_FAILURE at 0x0000000000000000 and srr0=lr=exception address=0 How can I catch where this error occurs? ...