osx

Why is IB changing the object IDs when opening a xib file?

Hi, I have the same problem with some xib files in different projects on different macs. IB is changing the Object IDs of some views in my xib file. I need only to double click the xib file from Xcode to open it in IB and then try to close the xib file again without changing anything and IB marks the xib file as dirty so that I have to ...

Can MacOSX group multiple NSApplications so they look like one?

I'm trying to split my application into different sub processes, each one doing a very specific thing. Main reason is stability and better memory utilization because i use a conservative garbage collector (boehm-weisser). I don't want to do it one huge process that does it all. Unfortunately the subprocesses must display some windows ...

How to set the system loudness programmatically (on OSX and Windows)

Hi All, I want to manipulate the system loudness (the global volume, or whatever it is called) from within my program. This might seem ridiculous, but I need to do some measurements, so I am interested in not only attenuating the sound via an internal loudness, but also amplify it, which is only possible using the system loudness. Since...

UNIX/OSX version of semtimedop

GLibC has a method semtimedop which allows you to perform an operation (a semaphore acquire in this case) which times out after a certain amount of time. Win32 also provides WaitForSingleObject which provides similar functionalty. As far as I can see there is no equivalent on OSX or other Unices. Can you suggest either the equivalent fo...

How do I determine if my python shell is executing in 32bit or 64bit mode?

I need a way to tell what mode the shell is in from within the shell. I've tried looking at the platform module but it seems only to tell you about "about the bit architecture and the linkage format used for the executable": the binary is compiled as 64bit though (I'm running on OS X 10.6) so it seems to always report 64bit even thoug...

Why does "enable-shared failed" happen on libjpeg build for os X?

I'm trying to install libjpeg on os X to fix a problem with the Python Imaging Library JPEG setup. I downloaded libjpeg from http://www.ijg.org/files/jpegsrc.v7.tar.gz I then began to setup the config file cp /usr/share/libtool/config.sub . cp /usr/share/libtool/config.guess . ./configure –enable-shared However, the enable-shared fl...

Programmatically add an alias to the Dock in OS X

I know it is not recommended, but is it possible? The only references I can find relate to updating com.apple.preferences.plist but those changes will not take effect until the next time the Desktop is restarted ...

Find all PPC libraries, binaries and applications in Snow Leopard

Dear all, Do you have any pointer on how to write a script that will search my system for applications, libraries (i.e. /usr/local/lib and /usr/local), and binaries that are PPC only? I upgraded my system from a PPC Mac to a Intel Mac running Leopard 10.5. Then I upgraded to Snow Leopard 10.6 which doesn't come with Rosetta. So I'm onl...

Building a backwards compatible OS X app, when a new API is present?

I'm trying to upgrade an app (Clarke) to provide 10.6 compatibility. My plan is to use two different code paths depending on the version of OSX in use. On 10.5 it will use one controller, which consists of completely custom code that isn't dependent on any specific Cocoa API. On 10.6 it will use another controller, which wraps the new...

Is there a MySQL client on OSX that has great useability?

I'm looking for a MySQL client on OSX with a mac design philosophy. I've been using mac programs for too long and can't really go back to windows designed programs. I'm looking for a program that has a sleek UI and great convenience for common tasks. (For example, ss there a client that allows you to delete a row by selecting it after a ...

Pthreads in Mac OS X - Mutexes issue

I'm trying to learn how to program parallel algorithms in C using POSIX threads. My environment is a Mac OS X 10.5.5 with gcc 4. Compiling: gcc -Wall -D_REENTRANT -lpthread source.c -o test.o So, my problem is, if I compile this in a Ubuntu 9.04 box, it runs smoothly in thread order, on Mac looks like mutexes doesn't work and the thr...

How does one implement Snow Leopard dock-style menus?

Mac OS X Snow Leopard includes a new a new style for menus when one right-clicks the dock. How can these be implemented elsewhere, in my own program? Is it an API? An SPI? Thanks. ...

How to be notified of the Minimize button being pressed in an OSX Window?

N.B.: this relates to private (SPI) functions of the CoreGraphicServices framework. I am currently running a CGSConnection to the Windowserver as the UniversalController (with the Dock killed), and would like to know how I can be notified that a CGSWindow has had the yellow minimize blob clicked. Is there a notification event that I ca...

cannot find symbol: java.net.Socket

While working on a larger project, a few lines of code using java.net.Socket failed to compile. This is on a Mac 10.5.8 with Java for Mac OS X 10.5 Update 4 (java version "1.5.0_20"). Other things (awt, ssl factories, treads, etc) still compile and run. I pulled the offending code down into a small class Fake.java: import java.net.Sock...

Has anyone installed a Tomcat client on OSX

I work in a design shop the does most of our back end work on apache servers running php. We have a job where we need to set up a very basic project using JSP to generate some html templates for a client. I work primarily on OSX, what's the best way to get a local apache tomcat server running on my local machine? I'm looking for a s...

pboard types will be deprecated

According to NSPasteboard.h (line 294 in the standard Snow Leopard copy of the Xcode SDK) it states: /* Use of pboard types should be replaced with use of UTIs. Pboard types will be deprecated in a future release. */ I've tried finding samples of using UTIs as a replacement for pboard types but I can't find anything anywhere that demo...

OSX Equivalent of WinSCP's Fully-Automated Local-Remote SFTP Sync?

Hello, I fondly remember working with WinSCP and using the fully automated local-to-remote syncing functionality, where the app would monitor a directory hierarchy and send changes to the remote server as they happened. Is there an app available on OSX that accomplishes the same thing? I haven't really been able to find anything. When I...

sem_init on OS X

I am working on some code which uses the pthread and semaphore libraries. The sem_init function works fine on my ubuntu machine, but on OS X the sem_init function has absolutely no effect. Is there something wrong with the library or is there a different way of doing it? This is the code I am using to test. sem_t sem1; sem_t sem2; sem_t...

Simple Qt Application won't compile on OS X

I've downloaded the Qt SDK and am trying to get started on my first Qt application using Qt Creator. Using the wizard from the opening splash screen I selected "Qt4 Gui Application" and it threw together a little project for me. When I try to build that project (without making any changes) I get build errors: Running build steps for ...

Python - Virtualenv , python 3?

Seems everyone recommends virtualenv for multiple python versions (on osx), but does it even work with python 3.0? I downloaded it, and it doesn't seem to.. And I don't really understand how it works, Can you 'turn on' on env at a time or something? What I want is to leave the system python 2.5 (obviously), and to have python 3.1.1 with ...