osx

What is the modern way to play sound data in 'snd ' resource format?

Sound Manager functions such as SndPlay() are deprecated and not available in 64-bit. The AudioServices functions are modern but only seem to deal with files and are not documented to handle this format. ...

Compiling Gforth without Gforth?

When I try to compile Gforth 0.7.0, I get the following error: $ ./configure $ make #compiling… Undefined symbols: "_main", referenced from: start in crt1.10.6.o ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [gforth-ll] Error 1 ./preforth -p ".:~+:." -e 's" mach16b.fs"' ./kernel/main.fs -e "save-cross...

How can i add third party framework to my cocoa project

I want to add third party framework "log4Cocoa" to my cocoa application. I followed the steps to add the framework and created "Copy Files" phase as well. Project is getting build without any error. Problem occurs when i try to run the application i get error saying "Data Formatters temporarily unavailable, will re-try after a 'continue'...

CGPostEvent not working on Spotlight search result list drop down

Hi All, I am using CGEventPost() to post mouse events on my Leopard and Snow Leopard. I am doing this from a remote application, just live VNC viewer. Every thing works fine except the case when I try to launch any application after searching it in Spotlight. Remotely when I try to Launch any application after searching it in spotlight,...

Recording audio on Mac

Hi I am developing an application which access my audio input device and record audio from my microphone. Here when i am pressing START button it have to record audio from microphone and have to stop recording when pressing STOP button. My device is Lynx-AES16 and i got driver from there site. In windows i am accessing the machine(Lyn...

Set path to .dylib path in Cocoa app

I'm developing a Mac OS X Cocoa app and want to use several .dylib libraries. How do I set the path to a .dylib which resides somewhere in my Application folder? What if the path resides in different directories on different computers or is not existent at all? ...

C++ - Load all filename + count the number of files in a current directory + filter file extension

I want to count the number of file in the current directory as well as load all file names in the array. If possible, I want to know how to filter file extension also ...

Is it possible to test an iPhone web application over an ad hoc wireless network?

I'm working on a web application that will have a custom UI for the iPhone platform. At the moment I have my Apple laptop but I'm away from a wired or wi-fi Internet connection. I want to run the app on the laptop and then preview it on the iPhone. Is this possible? I created an ad hoc wireless (AirPort) connection on the Mac and could ...

How to figure out if the network the mac is connected to is a WiFi or cable network or the like...

Hi all, First off, you guys are all really helpful - thank you a lot! Is there a way to figure out what type of network a Mac is connected to? WiFi? Cable? USB Modem? Any Cocoa / Foundation framework I can use to figure that out? Thank you, Matthias ...

How can I run a OSX terminal command from within R?

How can I run a OSX terminal command from within R? ...

Mac OS X: Intel vs. PPC marketshare

I was looking at my plugins, and ended up looking at Silverlight on several Mac systems. What I noticed (from Wikipedia), was that only Silverlight 1 runs on PPC. Without knowing about the technical details and trade-offs, I was surprised. On its face, if you build Silverlight 1 for PPC and Intel, would it have been hard to continue to ...

Python GUI framework for Mac OS X

I'm trying to find a good "python GUI framework" for Mac OS X, but I haven't found anything good until now, only wxWidgets which I don't like and it's also unstable. Any suggestions? ...

sqlite c library on mac os?

Does anyone know what is required to be able to read and write to a sqlite database from a c program on mac os x? I have found the sqlite3 commandline tool on os x, but there doesn't seem to be a sqlite.h file anywhere. It's my understanding that coreData can use the sqlite format, the whole thing is quite confusing. When I have looked f...

NSLevelIndicator Not Updating

I've got an application with an NSLevelIndicator Object on it that's refusing to update. I have a timer that's shoved off during init and updates the value of the NSLevelIndicator using its setIntValue method. Whilst the code executes without any exceptions, the NSLevelIndicator never visually updates. I have some other labels on th...

Python _ctypes import error on OSX 10.6

Hey all, I'm very new to Python development, and am having a problem with one of my apps in OSX. Technologies being used in this project python 2.6 django google app engine rpx (openid) When loading up the site on my windows app, there are no issues, but when trying to same app on OSX 10.6, I get the following issue: ImportError...

Detect when other process is shutdown OSX

I need a way to determine from a Cocoa app if a given process name is running. One idea I had was to use NSTask and poll using ps aux | grep processName. Is there a better solution? ...

Restart remote target machine with gdb

I'm debugging a Mac OS X kernel via a remote target (target remote-kdp) when it gets into a kernel panic. I can introspect the state of the machine at the time, but if I need to restart the machine I have to do a hard power down, which involves direct physical access. This means I can't script introspecting kernel panics. Is it possible...

How to alter colors in mac/cocoa text views

Is there a way to alter the standard background and text colors in cocoa text views throughout the mac os? Since the same text system is used by textedit, mail and other programs, I imagine there is an underlying preference that could be altered. Any ideas how to access it? Just to be clear, I don't mean simply to alter the document col...

How to get started with D on Mac OS X 10.6 (Snow Leopard)

I've been more or less interested in "D" for a couple years now and recently decided to start actually playing with it. I've been able to grasp the basics quite easily and I completely love the basic feature set of the language and the more I read about it, tho more impressed I get. Now, I'm very interested in writing a custom web appli...

Horrible eclipse performance on macbook pro running 10.5.8

Hi I am using eclipse galileo on my macbook pro. After a few minutes it starts dragging really badly, like it takes 8 seconds to open a file. I don't have many files open at all. I already modified the config file to increase ram and all that stuff. Is there something wrong with this version of eclipse, never had it run so poorly on he...