osx

Changing brightness of the Macbook(Pro) keyboard backlight

Programaticly, how can I modify the brightness of the backlit keyboard on a Macbook or Macbook Pro using Python? ...

OS X: bundle location by identifier for newly installed application

A question similar to Locating bundles by identifier, but different problem: I have several applications that need to locate each other's bundles by their ID. That always works well, unless I do a completely fresh install of all my applications. In many cases it's sufficient to point the finder to the install location for the bundle loc...

Mac OS X: Quickest way to kill/quit an entire process tree from within a Cocoa application.

I know there are many questions and answers about this, but I am looking for an efficient and robust solution. I need to kill a process AND all it's child processes from within a Cocoa app. I got the process ID and what I am about to code is to execute the kill command like so kill -- -<parent PID> from within my app ... but that seem...

something like dbArtisan for Mac OS X?

want to be able to explore the schema, run stored procs and run SQL statements. ...

iPhone SDK 3.0 not detected by XCode 3.2

I have the latest XCode (3.2) running on Snow Leopard, and also have the iPhone 3.0 SDK installed. After XCode was installed, I can't create a new iPhone project with it. There are no iPhone options in the New window, nor is the OS listed anywhere in the Overview dropdown. My only option at this point seems to be downgrading to XCode 3.1...

Xcode can't build on windows share after changing mac?

After moving to a other mac (fresh installed OSX 10.5.7 with iphone sdk 2.2.1) i now have several problems. Often copying files to my mac from the windows vista64 share failes with error -41. When building an .xproject directly on the windows share it fails with hundreds of errors like the following: "error : Cannot allocate memory" I...

Applet 1.6 on Mac OS X

I have an applet that I am attempting to test in the 64-bit 1.6 Java VM on Mac OS X. However, Safari is continuing to load the 1.5 VM. I have tried changing the default applet VM to 1.6 in the Java Preferences with no effect. Is there a way to use the new 1.6.0_13 applet VM in Safari (or other browsers) on the Mac at the moment? ...

dead-tree periodicals on Mac development?

upon being asked about subscribing to hardcopy periodicals concerning Macintosh development, I could only think of 'MacTech'. are there any others? (and are they any good?) thanks for your opinions. ...

Why do radio buttons render improperly in a java.awt.Dialog on the Mac when the dialog is modal?

I'm in the process of testing my Java application on the Mac and I've run into a very strange issue. Checkboxes that appear in a modal Dialog render incorrectly, though non-modal Dialogs work fine. For example, say I have a window with 2 radio buttons. When the dialog opens the first one is selected. When I click on the second button...

Is there any MSDN equivalent for Mac OS and Linux?

Hi, I'm familiar to code in Windows environment. For some of our products, users are continuously asking for porting to Linux and Mac. To begin, I need a collection of documentation on the system APIs, how to use them, when to use them etc. documentation. So, is there Is there any MSDN equivalent for Mac OS and Linux? Preferably in a do...

Swing tweaks for Mac OS X

I remember having once seen a list of properties that could be set on Swing components to make them look more native on Mac OS X. This included ways to mark "dirty" documents with the "dot" in the window close button, open dialogs as sheets (not sure about that, but sure would be nice) etc. I know Apple has let Java down as a "primary"...

"Simple" app server setup under Mac OS X Server?

With Mac OS X Server's included (or freely available) tools, a background in Objective-C and some rusty familiarity with scripting languages...how might one go about "easily" employing REST**ful **JSON services under Mac OS X Server? This is mostly for prototyping so simplicity and GUI tools are appealing though not at the expense of a ...

Java Preferences.app doesn't change default java version

The version returned by java -version on the command line will be determined by the link /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK if JAVA_HOME is exported as /Library/Java/Home (which is a link to /System/Library/Frameworks/JavaVM.framework/Home) The version returned by java -version on the command line will be ...

How do I make the dock icon stop bouncing after my app wrapper script starts?

So I recently made an .app wrapper for a zsh script, but when I run it, the icon for the app keeps hopping in the Dock. The app is basically: % find Example.app -type f Example.app/Contents/Info.plist Example.app/Contents/MacOS/wrapper.sh % cat Example.app/Contents/Info.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLI...

FLVPlayback fullscreen button not working

In my flash video using FLVPlayback, clicking the fullscreen button doesn't do anything, either in the html-loaded version or (more troublingly) when running locally. I've set "allowFullscreen" to true in the object and the embed tags in the html version. There are no errors in the flash console when running locally. Example. Any ide...

GCC How to export a function from static library

Hi, I want to create a shared library from several static libs using GCC under OS X. In some static libs, there's no code in shared library call it, I just want to export the symbols in these static libs. This works under debug mode, but doesn't under release mode (especially when I enable the dead code striping). I can understand the ...

OSX Malicious Terminal Command (colon, brackets, curly brackets, apersand, etc)

Ok, so someone "challenged" me to enter this into my OSX Terminal, but I have no idea what it would do: WARNING to the reader: the following line can be harmful; do NOT enter it unless you know what you are doing: :(){ :|:& };: Any ideas? ...

Change background color of NSButton

I have an NSButton in a mac application whose colour I'd like to change programatically but nothing I tried seems to work. I tried to create an output on the NSButtonCell and set the background color there but that didn't work either. Any code snippets would be helpful. ...

FireLog: proper installation...

I have installed the firewiresdk26 on my dev mac... and in the Tools/ directory is FireLog. I have run the FireLog 2.0.0.pkg installer on my dev mac, but the payload it deploys is installed in my /System/Library tree, as opposed to my /Developer/SDKs tree. so when I try to include the header iokit/firewire/FireLog.h it does not get found...

Installing readline 6.0 on OS X

I'm trying to install readline 6 from source but run into an error during 'make install'. Here is the end of the output after executing 'sudo make install' ( cd shlib ; make DESTDIR= install ) /bin/sh ../support/mkdirs /usr/local/lib /bin/sh ../support/shlib-install -O darwin9.7.0 -d /usr/local/lib -b /usr/local/bin -i "/usr/bin/insta...