osx

Is it possible to use readline instead of libedit in Python's raw_input under OS X?

From the readline module documentation, it mentions: On MacOS X the readline module can be implemented using the libedit library instead of GNU readline. The configuration file for libedit is different from that of GNU readline. Is it possible to use the readline library in /usr/lib/libreadline.dylib for example, or even compiled w...

Streaming from webcam on OS X - what technology to use?

I'm building a videoconferencing application in OS X. What technology would be best to use for real-time streaming video/audio captured from webcam/microphone in OS X? So far I was unsuccessful with these methods: - using QTKit I captured the media, but there isn't a way to stream it (without using the QTSS which is too bloaty and hard...

How do I set the time and date using AppleScript (or any other type of script) at start up?

I need to set the date and time on my Mac (Intel, Snow Leopard) to a specific date and time each time it boots. Does anyone know how I can accomplish this using AppleScript or something else? ...

Is it OK to use DYLD_LIBRARY_PATH on Mac OS X? And, what's the dynamic library search algorithm with it?

I read some articles discouraging of the use of DYLD_LIBRARY_PATH, as the the path of dynamic library should be fixed using -install_name, @rpath, and @loader_path. In terms of making a program that runs both on Linux and Mac OS X, DYLD_LIBRARY_PATH of Mac OS X does exactly what LD_LIBRARY_PATH of Linux. And, we can share (almost) the ...

How to reference external .jar files in TextMate

I'm working on a java project that requires constantly running the code, to see if it builds properly. So I'm trying to reference external jar files, without having to launch the project from the command line (I'm running in TextMate). Any advice? ...

Binary (image) data clipboard (OS X)

When I copy things to the clipboard, I can dump them into my console window or redirect to a file using pbpaste > out.txt But if I right click and image and copy in a browser, then attempt pbpaste > out.jpg Nothing is outputted. Where does OS X store the image data in the clipboard? Is there some way to access it from the commandli...

Using grand central dispatch in Linux

Is this possible, since Apple has open sourced the code (libdispatch?) I'm bit confused as to how one can make use of this. Is this like a library with an API that any application can make use of, or a OS feature built into Mac OS X? Can application built "for" Macs and iPhone (with iOS 4) alone make use of this library? I assume one ha...

Mac OS X programming forum?

Are there actively working Mac OS X programming forums? Of course, SO is one of the best, but it would be better if I know some dedicated forums for Mac OS X programming issues. ...

How to force Mac to into dirty shutdown state on every power off?

As Far as I can tell no one has actually solved this debacle. How do you get a mac mini to power on every time the UPS it is connected to restores power? It is easy enough to have the UPS communicate that power is about to turn off so have the mac run the command halt -u, or shutdown -h -u, etc, and many solutions such as powerchute from...

Core Animation Callbacks

I'm using core animation to transition between different view states in my application. However, I need to find a way to perform different tasks after the animations finish. I understand I can implement a delegate method and use the - (void)animationDidStop:(CAAnimation *)theAnimation finished:(BOOL)flag; callback, however there's no ...

applicationShouldTerminate: and cleanup during app termination

I'm looking are some CrashReporter logs for my Cocoa/MacOSX application and it looks like the reason for the crash is that some cleanup I expect to perform in the [applicationShouldTerminate:] method of the NSApplicationDelete isn't being performed. However, the app is terminating as evidenced by the following trace: 1 libSystem.B.dyl...

Programmatically tampering with Mac OSX MenuBar settings.

I have a program that needs to turn on and off the system clock in the menu bar. This will do that: defaults write com.apple.MenuBarClock ClockEnabled -bool false (with false->true to turn it back on). Except it doesn't actually take effect until I manually open up Date & Time settings (just opening the settings causes the menu bar t...

how to create AppleScript app to run a set of terminal commands

How would I go about creating an AppleScript command that when I just run the script (or double click it in Finder?), it would run a set of terminal commands? The set of commands completely remove MySQL, and it has become a pain to constantly write them out. The commands are: sudo rm /usr/local/mysql sudo rm -rf /usr/local/mysql* sudo r...

j2ee installation and configuration on mac os

i am a newbie for mac os. i would like to develop J2EE on MAC os. Where can i find the development environment configuration such as how to install j2ee, the file structure of j2ee, where is j2ee.jar file, classpath. i have search for some of keywords, but most of them is about tomcat, jboss configuration. Could anyone provide link or k...

Bonjour service does not disappear immediately when the computer running the server is removed from the network

Hi, I'm setting up a client-server communication channel between an iPhone app (client) and a Mac app (server), using Bonjour. So far, NSNetServiceBrowser on the iPhone app notices the launch and the quit of the server app on the Mac almost immediately, and sends the corresponding delegate messages. However, it does not notice immedia...

User agent or daemon?

I am writing driver to a HID device. The driver opens HID device in exclusive access mode. This driver should run for all user. So it should be either User agent or daemon. In driver I use some CoreGraphics API's which is under ApplicationService framework but Technote say's daemon won't get access to ApplicationService framework. So...

Netbeans on OSX: How can I make the text clearer like Textmate?

Hi, I use both Textmate and Netbeans on OSX. I'm finding I like Netbeans more, but the fonts are nowhere near as clear as Textmate. I've tried tweaking the themes and downloading other users themes, but they're still not a patch on the clarity of Textmate. Is this an anit-aliasing issues? I tried adding -J-Dswing.aatext=true -J-Daw...

XCode and SCM conflicts

Is there a decent Subversion client available for XCode? I am so tempted to write my own as of this morning after having a conflict on an update. I've done merges manually editing the ">>> mine" and "<<< theirs" markers but there has GOT to be a better way in this day and age. Does anyone know of an easy way to resolve conflicts graphica...

How can I make a window like the Mac OS X dock's stack?

Hello SO'ers I'm looking to create a window object that looks just like the Dock's Stack. (The grey square one, not the leaning list of pisa). Complete with title, transparency, navigation buttons, large icons with subtitles, and pointy-arrow bit on the bottom. The NSPanel "HUD" didn't really fit... I'd like the thing to pop-up when ...

How to listen to Screen Captures

Is it possible for me to listen to listen to OSX's built in screencapturing so I can handle the files myself rather than osx doing it? ...