osx

How to stream semi-live audio over internet

I want to write something like Skype, i.e. I have a constant audio stream on one computer and then recompress it in a format that's suitable for a latent internet connection, receive it on the other end and play it. Let's also assume that the internet connection is fairly modern and fast, i.e. DSL or alike, no slow connections over phon...

Can Spotlight index a MacFUSE filesystem?

Spotlight indexes at the file level, so a file containing a complicated data structure may need to be split into a set of files for Spotlight to index it in a useful way. Can you use MacFUSE to achieve this more dynamically? Will Spotlight index a MacFUSE volume? Can MacFUSE handle the necessary per-file metadata? Can a MacFUSE proce...

Accessing a webserver from a cocoa application.

I am writing a cocoa application in which I want to download a file from a webserver. What will be the most convenient method to go about doing this? Should I go in for NSSockets or a NSUrlRequest? Or is there any other easier way to achieve this? ...

OSX - always hide certain files

I know how to show and hide hidden files in the Terminal - but is there a way to hide certain files like .DS_STORE when showing hidden files? Make certain files super-hidden, so to speak? ...

Getting the row of a NSButtonCell

I have a NSTableView that contains a NSButtonCell in one of the columns. I can set up the action that is called when the button is clicked in Interface Builder fine, but I can't find anyway to determine which row in the table that the button exists in. Is there any way to do this? Thanks. :) ...

Finding when the ActiveApplication changes in OSX through Python...

Is there a way to find when the activeApplication changes in OSX through Python and AppKit? I know how to find out launchedApplication and activeApplication ( please refer to my other question here: http://stackoverflow.com/questions/373020/finding-the-current-active-window-in-mac-os-x-using-python ) ...

Save entire desktop state?

I'd love to have a utility that would save and restore my current desktop state, much like sessions in Firefox. At best, it would freeze every application's state, open window positions, etc. and provide a scriptable interface to restore them at any time, just as you'd left them. More realistically, I could make a list of what applicat...

How do I install MySQL and the python MySql package on OSX Leopard? Or how do I learn about being a web developer using OSX?

I'm new to the Mac OS and I'm just about ready to throw my brand new MacBook pro out the window. Every tutorial on setting up a Django development environment on Leopard is insidiously wrong. They are all skipping over one step, or assuming you have setup something one way, or are just assuming that I know one thing that I must not. I...

How can I process a list of files that includes spaces in its names in Unix?

I'm trying to list the files in a directory and do something to them in the Mac OS X prompt. It should go like this: for f in $(ls -1); do echo $f; done If I have files without spaces in their names (fileA.txt, fileB.txt), the echo works fine. If the files include spaces in their names ("file A.txt", "file B.txt"), I get 4 strings (fil...

Add a dependency in Maven

How do I take a jar file that I have and add it to the dependency system in maven 2? I will be the maintainer of this dependency and my code needs this jar in the class path so that it will compile. ...

Are there any good (preferably free) OO modelling apps for Mac OS X?

I'm looking for something relatively simple to spec out a class hierarchy for C++. Can cost $ but preferably something free or at least simple and not overly feature laden and $$$. ...

Why is my mounted MacFUSE NTFS vol read-only?

I got the impression from the MacFUSE site that when you install it and connect an NTFS volume it will be writable. However, the volume I mounted is read only. Here is some of the output of mount... The NTFS external USB drive I'm talking about: /dev/disk1s1 on /Volumes/SATA160 (local, nodev, nosuid, read-only) An OS X format externa...

Using FTP with NSURL

I want to write a cocoa application which downloads a file using ftp. I read about the NSURL class which has "NSURLHandle FTP Property Keys". I want to know how do I make use of these constants to provide username and password to the ftp site. ...

Loading data into a Cocoa view before the application loads

I want to load some data from mysql into my cocoa application view before the application starts. I am sure that this should happen in the controller so that it can send the required data to the view. I am looking for a method or common technique that is used for this sort of thing. Many Thanks ...

How to Capture / Post system-wide Keyboard / Mouse events under Mac OS X ?

For a scripting utility I need to be able to record a series of keyboard and mouse events that occur when an application has focus. The second part is being able to later send those events to the active window. I do not need to worry about menus or tracking the identifier of which window receives input. I know how to do this under Wind...

Should developers fear updates to their workstation software / development stack?

As I have discovered, many developers avoid any updating (automatic or manual), because they fear it might do changes to their machine they don't understand, and the software they are developing might fail at some point for reasons they don't know. strategy A.) LEAVE THE SYSTEM AS IT IS, FOR AS LONG AS POSSIBLE. I personally like to ha...

How do I get a scheme interpreter working inside Emacs?

I'm going through SICP and I'd like to have an interpreter analogous to the interactive Python interpreter to play around in while I'm watching the lectures and reading the book. Furthermore, I'd like this interpreter to run inside Emacs so I can jump back and forth between files of scheme code and the interactive interpreter and so fort...

Best file system to transfer 5+GB files between OS X and Windows on removable media

I need to transfer DVD image files between a Windows XP computer and a Mac running Leopard. The machines are not connected via a fast network, and I have a few USB drives floating around that I want to use, e.g. 8GB flash, 60GB and 250GB USB hard drives. Sometimes the files creep above 4GB (the maximum size of a single file on FAT32), ...

Running a Socket Server in Cocoa

I'm trying to write a program that uses sockets to connect with other instances of itself over the network. Since eventually I'd like to write a Windows version as well, I'm currently using BSD sockets on the OS X side so that I can ensure that it will be compatible with the (eventual) Windows version. The only way that I've been able t...

What versions of Python and wxPython correspond to each version of OSX?

I'd like to know what versions of Python and wxPython correspond to each version of OSX. I'm interested to know exactly how far back some of my apps will remain compatible on a mac before having to install newer versions of Python and wxPython. ...