mac

Does git track resource forks?

I ask myself this every time I replace a Photoshop .psd file that I have under version control. You can see with ls -l that PS has created a thumbnail icon in the resource fork. ...

Xcode, Core Audio: How do I route the audio from the lineout to an application?

Hi, I need to make a Mac app that grabs the audio going to the lineout and renders it into memory. Is it possible to do this with core audio and if so is it at a high enough level to do this simply or do I need to do like soundflower and create a virtual sound device. Do you know any reference where I can get do this myself. ...

How to emulate 'cp --update' behavior on Mac OS X?

The GNU/Linux version of cp has a nice --update flag: -u, --update copy only when the SOURCE file is newer than the destination file or when the destination file is missing The Mac OS X version of cp lacks this flag. What is the best way to get the behavior of cp --update by using built-in system command line programs? I want ...

HAL - how to monitor audio output on a mac

There is an application called wiretap available at http://www.ambrosiasw.com/utilities/wiretap/ This application can record the system audio. I would like to be able to do the same in my program. Any insights on what I need to do this? I am familiar with Core Audio but havent found anything on how to do this. would this help getti...

Can you use R terminal commands on a Mac computer?

Hi, I wrote some code in school to basically bring up different graphs from R and I had wanted to use it on a mac computer. Is there are way to use R terminal commands on a mac computer and is there a place where I could get more information about these mac R Terminal commands? Thanks so much! ...

iPhone Programming in Mac OS X runnning not in a Mac Computer

Good day. This is not really a programming question, but i think there is people here that are the ideal for the question i have to ask. I see all day long question about "programming for iphone", and now i'm curious, and i want to try some too. For that i need a Mac OS X, no question about it.. But i have a problem i don't have a Mac...

How to create a netcat relay on OS X ?

I'm trying to troubleshoot my postfix so I decided to route its traffic to my isp smtp relay trough a netcat relay: nc -l <someport> 0<backpipe | nc <isp-smtp> 26 | tee backpipe And I configured my postfix to connect to localhost:. But to get the netcat relay working it needs a FIFO pipe made with mknod backpipe p and apparently this...

Which iPhone SDK to download?

In the developer center there are two different downloads for the SDK, one for Leopard and one for Snow Leopard. Which do I download? Also do I have to download a separate copy of xcode as well or is it part of the download? Thank you. ...

Where is Xcode located on the hard drive?

I have looked everywhere but couldn't find it anywhere. I installed it successfully but I don't know where it is installed. Shouldn't it show up at the "start menu"? I know how to use pc, but this is my new mac mini and I searched the web for tutorials and basic info which doesn't seem to be easily found. Thank you. ...

sqlite3 error "not an error" on iPhone SDK

Im getting an error "not an error" on iPhone SDK, I spent a whole day trying to resolve it. SQLite version 3.4.0 sqlite3_step(compiledStatement) The table I'm using in the query has only one row. It returns 100..? sqlite3_errmsg( database ) This line gives me the above error. I've created a database and tables in it with terminal ...

What virtual machine can I use to virtualize Mac OS in Windows?

I want to run Mac OS in my Windows operative system, is there any virtual machine that does that? Tnks. ...

Code version control when developing in .NET/SQL Server 2005 on a Mac

I recently started a new job where the office environment is Mac-based, but I will be developing in .NET and SQL Server. I'm already pretty sold on installing VMWare Fusion to set up a virtual XP box, but I'm wondering if anyone would be able to recommend a solution for code version control. Specifically, should I be installing somethi...

How to extract ID tags from MP3 files in Cocoa?

Please advise some way to extract MP3 attributes using simple API. Is there any other libraries other than ID3.framework? I found that it is quite out-dated and has memory leaks. Thanks a lot. ...

Obtain a CGContextRef of NSView outside of drawRect ?

I need to get CGContextRef of NSView object. It won't be so bad if I knew how. In Carbon this thing was done like this: CGContextRef cgref = (libvlc_drawable_t)GetWindowPort(HIViewGetWindow((OpaqueControlRef*)hiViewRef)); Obviously it can be done by subclassing NSView (or it's subclass) and catching it in it's drawRect, but that's to...

Is Smalltalk a viable development language for Mac OS X?

Every time I see a discussion on software development, always someone suggests or exalts the qualities of Smalltalk, be it the beautiful language constructs or the better implementation of basically everything. So I was curious, is anybody developing in Smalltalk? can Smalltalk actually be used to develop software on the Mac? Or what is...

How can a Windows programmer be sufficiently productive on Mac OS X?

I've been using MacBook Pro for a few months at home, and I was wondering if there's a good book or guide that can help me be a better programmer on Mac. Maybe Mac-equivalent of Beginning Linux Programming. Note I am not looking for resource on how to program Mac application, instead I am looking for more general guide of using Mac for g...

Install sqlite3 on mac osx?

I just bought a new MBP I've read online Sqlite3 already exists on OSX. I've downloaded mac ports (and installed it) as well as the bin file for sqlite3 from the official web site. In a guide I'm reading about rails, which tells me to update sqlite3, I run the following in terminal: sudo port upgrade sqlite3 I receive the following ...

In Flex, how to use command-shortcuts in the browser?

I tried catching the command key shortcuts using the keyDown event and checking for KeyboardEvent.ctrlKey, but the browser(Safari) seemed to have intercepted all those key events because the shortcuts I am trying to use coincides with the safari ones. Is there anyway to override this behavior? ...

Should I port Linux Driver to Mac OS X OR Should I Rewrite it

Hi I have a Linux driver that I would like to use it Mac OS X. I know that the Mac OS X is based on BSD. Should I try to port my driver to Mac OS X or should I rewrite it in Mac OS X using I/O Kit in C++? The linux driver is for some PCI device. ...

Safe way to change the priority of an NSOperation

Is there a safe way to change the priority of an NSOperation that is already enqueued in an NSOperationQueue? If the operation hasn't started yet there is no problem, but if it is already executing I get an NSInvalidArgumentException. ...