osx

Objective-c - How to serialize audio file into small packets that can be played?

Hi there, So, I would like to get a sound file and convert it in packets, and send it to another computer. I would like that the other computer be able to play the packets as they arrive. I am using AVAudioPlayer to try to play this packets, but I couldn't find a proper way to serialize the data on the peer1 that the peer2 can play. T...

Compiling Asterisk 1.6.2 on MacOSX Server

I get this error while trying to compile Asterisk 1.6.2 on Snow Leopard Server : ld: symbol dyld_stub_binding_helper not defined (usually in crt1.o/dylib1.o/bundle1.o) Googling this I’ve found nothing enlightening so far. This is what I am trying: ./configure --without-h323 --without-zaptel --host=x86_64-darwin make menu...

Get colors using Mac OS X terminal when editing source code in remote linux machines

Hi, I use terminal from Mac OS X Leopard to connect to remote Linux machines and edit C++ code there using VI. What determines that in some machines, using the same MACOSX terminal settings, the source code gets colorized and in other not? Thanks ...

Connection Refused running multiple environments on Selenium Grid 1.04 via Ubuntu 9.04

Hello, I'm writing a selenium grid test suite which is going to be run on a series of different machines. I wrote most of it on my macbook but have recently transfered it over to my work machine, which is running ubuntu 9.04. That's actually my first experience with a linux machine, so I may be missing something very simple (I have disab...

What are the Tags Around Default iPhone Address Book People Phone Number Labels?

My question concerns markup that surrounds some of the default phone number labels in the Person entries of the Contact list on the iPhone. I have created an iPhone contact list address book entry for a person, "John Smith" with the following phone number entries: Mobile (604) 123-4567 iPhone (778) 123-4567 Home (604) 789-4561 Work...

Override System Preference Pane?

Is there a way to override / disable a system preference pane? I'm wanting to put an application together that would disable or override the Energy Saver preference pane, and would put it's own rules in place for putting a machine into standby, turning off the monitor, or other various energy saving activities. ...

Read list of applications from the Applications folder on Mac using Qt

Hello All, I want to read list of applications from the Applications folder on Mac using Qt or Carbon. I am not sure how to do this. So any pointers will be appreciated. Thanks Rahul ...

Can't connect to local IP address on OSX

I'm trying to connect to a webserver that's running on my mac OSX 1.6. I'm able to connect to it locally using http://127.0.0.1:8888/myapp but when I attempt to connect to it using my machine's local IP address (http://192.168.1.15:8888/myapp IP shown below) from the same machine (or another on the network) I cannot connect. I can ping t...

Create a table using Objective C for Mac and display values in the table.

Can anyone guide me as to how to create a table using Objective C for Mac OS X. The program should read values from an NSArray object and display the values in the table. I would appreciate it if anyone helped me out. ...

Applescript iTunes Reveal

Is it correct that the reveal applescript command is broken with iTunes 9? Works: tell application "iTunes" play (track "Los") end tell Doesn't work: tell application "iTunes" reveal (track "Los") end tell But the following does work: tell application "iTunes" reveal (playlist "Music Videos") end tell Can anyone reproduce th...

Get Time Machine path?

I need to parse the TimeMachine.plist file to get the current backup path, but I have no clue how to parse the data correctly. I get that there's a data field, which is supposed to be encoded as base64 somewhere inside that plist, but I just can't find what I need inside it... Can anyone point out whatever it is I'm missing, and what to...

Starting an application in OS X with low priority

Hello. I would like to setup my Eve Online application to start with lowest priority every time I open it. Is it possible, and how? I am using Mac OS X 10.6.2... Thanks for any help! ...

Errors building GreenSQL 1.2.2 on Mac OS X 10.5.8 Leopard Server

I'm attempting to build GreenSQL 1.2.2 on Mac OS X 10.5.8 Leopard Server, but I get the following errors (which appear to be an ld error?): cc -g -Wall -I/usr/local/include/ -I/usr/include/mysql/ -I/usr/local/include/mysql/ -DHAVE_MYSQL_CLIENT -fPIC -c -Wall sql_api.c cc -g -Wall -I/usr/local/include/ -L/usr/lib64/mysql -L/usr/local/lib...

How to Make an OS X Style Search in XHTML/CSS

Any way to make a OS X Finder "like" but valid XHTML/CSS search textfield with an X to the right, etc.? Even if it only shows up on Safari but degrades that would be fine. I've seen a couple of examples but they seem very complicated. ...

Understanding RubyGems, Macports, and /opt/ versus /Library/

I'm not looking to keyword spam here, and this question is in the least tangential to a previous question of mine that's currently pending. Caveat emptor. Most references to Ruby on the Mac have things set up with the conventions mentioned in this question. Stored in /Library/, that is. My whole setup is somehow stored like this: I'...

iPhone OS current usage statistics (esp. 2.x vs 3.x)

I am trying to find out how many of the active iPhone and iPod touch users have at least 3.0 OS installed. I need to know if the percentage running 2.x is still considerable or not really. I tried looking into AdMob stats, and other OS usage stats sites, but I can't get to see iPhone 2.x vs iPhone 3.x ...

iTunes Scripting Bridge reveal does not work

The following code should show a certain track in iTunes: NSString* iTunesPath = [[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:@"com.apple.iTunes"]; iTunesApplication *iTunes = nil; if ( iTunesPath ) { iTunes = [[SBApplication alloc] initWithURL:[NSURL fileURLWithPath:iTunesPath]]; [iTunes setDelegate:self]; }...

OSX : Defining a new URL handler that points straight at a Python script

Hi, I'm trying to define a new URL handler under OSX that will point at a python script. I've wrapped the Python script up into an applet (right-clicked on the .py, and gone Open With -> Build Applet) I've added the following into the applet's Info.plist: <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</ke...

How to network a Mac running System 7.6 with Mac OS X 10.6 or Windows Vista over Ethernet?

The title pretty much says it all. I have a Powerbook 540c that is connected to my network via Ethernet. It has no Internet tools on it at all, and its running System 7.6. I am trying to figure out a way to get it to mount a drive on either my Windows Vista workstation or my Snow Leopard Macbook. Once I do that I can get an old bro...

Preventing an NSTextField from becoming active (Cocoa OSX)

I want my NSTextFields in my GUI to act like the text fields in the apple finder (the text only becomes active for editing if the text is clicked on when the item is selected). I tried overwriting the mousedown method of the NSTextField to prevent the selection but this did not do the trick. What method do I need to override to accompl...