osx

Does OSX support poll()?

I have just been reading the section on the poll() function in "Advanced Unix Programming" second edition by Marc Rochkind. In this section, the author mentions that poll() is not supported under Darwin 6.6 and I have seen other items on the internet that suggests that poll() is emulated on OSX using the select() system call. I am want...

how to find exact error location in Xcode?

I have developed an app that runs perfectly on OSX 10.6 but it gives some error on OSX 10.5. It basically accepts some information from user and stores it on HDD using file handeling. Now I get everything as expected but the file handeling part. i have applied if then else and using NSAlertpanel to check if file is successfully created o...

Programmatically upload and launch iPhone/iPad application on a device

I am looking for some way to programmatically upload an iPhone/iPad application to a device through USB connection from Mac OS X and launch the application on the device. I know how to do it manually from XCode. The goal is to create test automation of an application on iPhone/iPad device/simulator. Thank you. ...

How can I perform a silent upgrade - an upgrade that does not require user intervention, username and password?

We have a client already installed on users machines, we would have liked to have the ability to upgrade this client silently in the background, without any user intervention, the way google Chrome browser seem to work. How can you install an upgrade without requiring the user to re-enter his credentials? How can this be done in Wind...

Set a breakpoint condition for self pointer in Mac OS X

I'm trying to figure out when [NSView setNeedsDisplay] is called for a particular object. I want to set a breakpoint on it that fires only when the self pointer refers to the object I care about. The method is called probably hundreds of times around the time it's called for my object, so something like a breakpoint condition is necessar...

MacOSX usb vendor device handling KEXT

I am working with a closed source SDK ( i dont have access to the source ) that talks to a USB device using the regular facilities in client land. What i'm writting is a launch daemon that holds onto a connection with that SDK for the whole time the OS is running. By doing this, it disables any other apps to connect to the device using t...

Recursively enumerate files and dirs in C#

On MacOS using Mono, when I list files and dirs with Directory.GetFiles() I get System.UnathorizedAcessException and it stops enumerating. Anyone knows how to make it continue or maybe a different approach to enum files EDIT: I wrote my own method, seems to work. static void DirSearch(string sDir) { try { fo...

Why does OSX Snow Leopard ship with GCC 4.2.1, and is it possible (advisable?) to upgrade?

Maybe they have a good reason, but I'm struggling to understand why a new OS would still ship with such an old compiler that was originally released in 2007. Did Apple modify it heavily and so therefore it has some features that are required? Is it possible to just download 4.5.1 and use it with XCode? ...

Are there drawbacks to Snow Leopard's new "sudden termination" mechanism?

So there's one piece of technology new to Snow Leopard that I haven't heard of. Sudden termination (see Sudden termination in this Apple doc) is apparently a mechanism for telling the system when it is OK for your application to be killed brutally instead of going through the standard quitting mechanism. This is supposed to help faster l...