osx

Command line tool (PDF Workflow) in OSX that detects if key is down

Hello! I'm writing a OSX PDF Workflow in ObjC and C. A single executable ("UNIX Tool" as named in the Apple reference), that reads in the spooled PDF file, does some parsing. I'd like to give more functionality by enabling a key-down event handling, meaning - when user opens print dialog in an application - and chooses to left-mouse-cl...

My delete key won't work in Eclipse in OS X.

My delete key isn't working in Eclipse in OS X. However, Shift-Delete deletes. Delete works elsewhere, so a setting must have been unwittingly changed. Any idea what it is or how to fix it? Restarting Eclipse didn't help. ...

Trying to build the LEVMAR math library on a mac using the Accelerate Framework

Hello. I want build levmar-2.5 math library on a mac using the included Makefile. It requires LAPACK, another math library which is included in the Accelerate Framework. I do not know how to modify the Makefile to indicate the location of the library so that it builds correctly. There is a libLAPACK.dylib in the framework. Ultimately...

Configuring a library to be included with C++ test

Hello, I would like to utilize the UnitTest++ library in a testing file. However, I am having some difficulty getting the library to be included at compile time. So here is my current directory structure: tests/ UnitTests++/ libUnitTest++.a src/ UnitTests++.h unit/ test.cpp I have just used the UnitTest++ gettin...

How to speed up/slow down application's 'time'

I guess I am not saying it right in the title. What I intend to do is to hook to some system api,like a time interrupt happens every amount of time (which is how every application in the operating system interprets time) and make an application's call to this api return some bigger/smaller result. So from the point view of an applicaiton...

run applescript on 2x-click

OK, this feels like an idiot question, but I'm stuck - I don't know the first thing about AppleScript. I have a .scpt file and I want to double-click it and just have it run, but instead every time I click, it opens up the AppleScript Editor. This feels like it should just be an option on the file, but I'm missing something obvious. Ple...

Eclipse Galileo won't start after OS X update to 10.6.3

Hi All, I have just updated os x to 10.6.3 and no Eclipse won't start the logs show the following error, but I can't figure it out. Can anyone shed any light? !SESSION 2010-03-30 10:06:38.244 ----------------------------------------------- eclipse.buildId=M20090917-0800 java.version=1.6.0_17 java.vendor=Apple Inc. BootLoader constants:...

Mac OS X Services: enable without user interaction?

I wrote a simple Mac 'Service' for Finder, that executes a command. Basically: this adds a ContextMenu in Finder. If I right-click a file in Finder, a menu item pops up. If the user clicks it, it executes my script. (kind of like 'Send to Bluetooth device, ...') In OS X Leopard (10.5) and earlier, all services are enabled. In 10.6 (Sno...

Getting RTF data out of Mac OS X pasteboard (clipboard)

According to the man page for pbpaste, -Prefer {txt | rtf | ps} tells pbpaste what type of data to look for in the pasteboard first. As stated above, pbpaste normally looks first for plain text data; however, by specifying -Prefer ps you can tell pbpaste to look first for Encapsula...

Problem with Mac OS X and REvolution R

Hello! I'm having a problem with the installation of REvolution R on OS X. When I start the process of installation I write the admin password, start the installation and the next message appears: "Error: Couldn't raise admin privileges". What is the problem?? When the installer asks me the admin password, I write it and I don't rec...

What would cause native gem extensions on OS X to build but fail to load?

I am having trouble with some of my rubygems, in particular those that use native extensions. I am on a MacBookPro, with Snow Leopard. I have XCode 3.2.1 installed, with gcc 4.2.1. Ruby 1.8.6, because I'm lazy and a scaredy cat and don't want to upgrade yet. Ruby is running in 32-bit mode. I built this ruby from scratch when my MBP ran ...

How do you fix an SVN 409 Conflict Error

I used to use SVN 1.4 on OS X Leopard and everything was fine. A couple of weeks ago I installed a fresh copy of OS X 10.6. The version of SVN that comes with Snow Leopard is 1.6.5. I went ahead and built my own copy with 1.6.6. I'm using the built in apache server and just hosting repositories locally. Everything appeared to work fine ...

svn:designate a file as not subject for source control

I have a project folder with sources, headers, resources, etc. Most files are subject to source control via SVN, but some are not. Is there a way to designate a file as not subject to source control, ever, so that "svn status" does not throw a line with a question mark next to that file? ...

Get an input from keyboard without 'return' in C

How do i get an input from keyboard, without pressing 'return' in C / Mac Os ...

p4 cmd line client on OSX always throughs error when I try to get it to do something... p4v works fine

link-mbp:~ benb$ p4 Perforce client error: Connect to server failed; check $P4PORT. TCP connect to 1666 failed. connect: 1666: Connection refused link-mbp:~ benb$ though when I check p4 set it shows all the right data for those environment variables. thoughts? ...

Loading JNI lib on Mac OS X?

Background So I am attempting to load a jnilib (specifically JOGL) into Java on Mac OS X at runtime. I have been following along the relevant Stack Overflow questions: Maven and the JOGL Library Loading DLL in Java - Eclipse - JNI How to make a jar file that include all jar files The end goal for me is to package platform specific J...

OS X Dock API? Retrieve OS X active application's icon with badges and other modifications.

Is there an API for retrieving the icons of the currently open apps on Mac OS X? I am trying to retrieve all the icons of the active applications along with any badges on top of the application (i.e. number of new messages in mail, or current download rate in Transmission). Is there some sort of Dock API? The only mention of an OSX API ...

this one-line shell script not working on Mac - any ideas how to fix?

Hi, This unix command I haven't got quite working on Mac yet - any ideas what needs adjusting: find . | grep '.*\(css\|js\|rjs\|rhtml\|rb\)$' | sort | while read in; do printf "\n\n####\n# FILE: %s\n####\n\n" ${in} >> onebigfile; cat "${in}" >> onebigfile; done thanks ...

How to give highest priority to events generated from main thread than those generated from secondary thread in wxWidgets

I have a c++ application written in wxWidgets, which has a main thread (GUI) and a working thread (calculations). The working thread executes commands requested by the main thread and communicates the result to the main thread posting an event after every step of the processing. The problem is that when the working thread is sending ma...

How to determine if an OS X dylib was linked with -flat_namespace

I have a third party OS X dylib that I'm using in my app and don't have easy access to its creator. I'd like to determine if it was linked with -flat_namespace. Is that possible? If so, how? ...