mac

Best way to export a QTMovie with a fade-in and fade-out in the audio

I want to take a QTMovie that I have and export it with the audio fading in and fading out for a predetermined amount of time. I want to do this within Cocoa as much as possible. The movie will likely only have audio in it. My research has turned up a couple of possibilities: Use the newer Audio Context Insert APIs. http://developer.ap...

Any advice for speeding up the compile time in Flex Builder 3?

I run Flex Builder 3 on a mac and as my project grows - the compile time gets longer and longer and longer. I am using some SWC's and there is a fair amount of code but it shouldn't take minutes to build and crash daily should it? ...

What are some useful TextMate features?

I noticed that many people here use TextMate for coding on OS X. I've recently started using it, and although I like its minimalistic interface, it makes it harder to stumble upon cool features if you don't know what you're looking for. So, what feature have you found most helpful for coding (mainly in Python)? Are there any third-party...

Standardised text editing behaviour across Mac applications

I've switched over to a Mac recently and, although things have been going quite well, the very different text-editing behaviours across applications is driving me insane. Home, End, Page Up, Page Down, Apple-arrow, Ctrl-arrow, alt-arrow etc. quite often do different things depending on the application. Is there a way to standardise thi...

Can't create a subversion repository with Eclipse 3.4.0, svn 1.5.1

I'm working on mac OS x 10.4. I have a subversion repository stored on an external drive connected via USB. I created a new python project in Eclipse (using the PyDev plugin). When I use right click Team->Share Project to set up a new prject with subversion, I get the following error: Error while creating module: org.tigris.subversion.j...

Mac OS X: What is the best way to estimate the code & static data size of program?

I want to be able to get an estimate of how much code & static data is used by my C++ program? Is there a way to find this out by looking at the executable or object files? Or perhaps something I can do at runtime? Will otool help? ...

How do I make bash reverse-search work in Terminal.app without it displaying garbled output?

Using Terminal.app on OS X 10.5, often you see the commands get garbled when you do a reverse-search with Bash. Is there some kind of termcap or perhaps a bash shopt command that can fix this? It is very annoying. Steps to reproduce: Open Terminal.app, reverse-search to a longish command. Hit <ctrl>-E once you've found the command...

Simple audio input API on a Mac?

I'd like to pull a stream of PCM samples from a Mac's line-in or built-in mic and do a little live analysis (the exact nature doesn't pertain to this question, but it could be an FFT every so often, or some basic statistics on the sample levels, or what have you). What's a good fit for this? Writing an AudioUnit that just passes the so...

Is it just the iPhone simulator that is restricted to intel only Mac's?

I have read that the iPhone SDK (part of xcode 3) is restricted to Mac's with the intel chipset. Does this restriction apply to only the simulator part of the SDK or the complete shebang? I have a Powerbook g4 running Leopard and would very much like to do dev on it rather than fork out for a new machine. It is also worth clarifying th...

How to take screenshot in Mac OS X using Cocoa or C++

How to take screenshot programmically of desktop area in Mac OS X ? ...

Move all windows to a single monitor (with two attached) in Mac OS X?

Whenever I use my MacBook away from my desk and later plug it into an external display (as primary), I get into the state of having windows deposited in both the notebook monitor and the external one. To move all windows to a single screen, my current solution is to "Turn on mirroring" in the display preferences and then turn it off aga...

Do I need a Mac to make a Java application bundle?

I want to create a Java application bundle for Mac without using Mac. According to Java Deployment Options for Mac OS X, I can do this by using Xcode, Jar Bundler, or from the command line. Once the files and folders are set up, all I need for the command line method is to call /Developer/Tools/SetFile. Is there a SetFile clone on Linux...

Qt x11 for Mac

Hey there I've been trying to compile the latest Qt 4.x but it does not include some of the X11 header files that my application needs. I have also tried to compile the 4.3.x (under mac os x 10.5)version of Qt to include the x11 libraries but the compilation fails.Any one else having problems with the Qt X11 packages for Mac OSx ...

How do I read and write raw ip packets from java on a mac?

What would be the easiest way to be able to send and receive raw network packets. Do I have to write my own JNI wrapping of some c API, and in that case what API am I looking for? EDIT: I want to be able to do what wireshark does, i.e. record all incomming packets on an interface, and in addition be able to send back my own created pack...

Testing HTTPS files with MAMP

I am running MAMP locally on my laptop, and I like to test as much as I can locally. Unfortunately, since I work on e-commerce stuff (PHP), I normally force ssl in most of the checkout forms and it just fails on my laptop. Is there any easy configuration that I might be missing to allow "https" to run under MAMP? Please note, I know that...

Can Mac OS X's Spotlight be configured to ignore certain file types?

I've got bunches of auxiliary files that are generated by code and LaTeX documents that I dearly wish would not be suggested by SpotLight as potential search candidates. I'm not looking for example.log, I'm looking for example.tex! So can Spotlight be configured to ignore, say, all .log files? (I know, I know; I should just use QuickSi...

Getting the process id of a Carbon C++ application

Is there a way of getting the process id of my C++ application? I am using the Carbon framework, but not Cocoa ...

Recommended web development environment on Mac?

I'd like to get back into some web development after primarily working on native applications, and I'm looking for advice on how to set up my web development "stack" on my local Mac. Ideally I'd like a setup that is easy to setup and maintain, but remains flexible and extensible. In particular, I plan to use Python, so mod_python is ...

.NET Development on a Mac Tips

I have just got a MacBook Pro and have been using it (+Fusion) to develop on for about a month now. The purpose of this question is similar to Hidden Features of C#; to become a how-to of tips and trick for windows development on a mac. I should clarify that I am aware of boot camp but do not use it (nor do I have any interest to), hen...

Opening a non-standard URL in a Cocoa app

In an application that I'm writing I have some code like this: NSWorkspace* ws = [NSWorkspace sharedWorkspace]; NSString* myurl = @"http://www.somewebsite.com/method?a=%d"; NSURL* url = [NSURL URLWithString:myurl]; [ws openURL:url]; The main difference being that myurl comes from somewhere outside my control. Note the %d in the URL ...