mac

How to display indeterminate NSProgressIndicator in the NSOutlineView?

I need to display a progress of loading of item's children. Please advise how to implement a progress indicator like it's done in Mail application: P. S. Here a source code of using indicator sub-views: http://snippets.dzone.com/posts/show/7684 ...

Is it possible to access the Mac Address book API from pure Java?

Just wondering if it is possible to access the Mac OS X Address Book API's from pure Java 6 code? I want to keep this completely platform independent as my program is built for Windows & Linux also (open source & free: http://jsmsirl.sourceforge.net/). Any help is much appreciated! ...

JWS JNLP no Desktop Icon on Mac

I seem to be having a problem getting the icon for a Java Web Start program to appear on the Mac desktop, or under "Applications". The icon's and menu's are created and work properly under windows XP and Vista, is there something different that must be done for Macs? On the Mac there aren't output any errors, it prompts me with the ques...

Good Mac Client/GUI for Postgresql?

Anyone found one of these? "Sequel Pro" is awesome for MySQL development on Mac, and they say they are working on Postgresql support (see discussion here) but I haven't found anything else in the mean time. pgAdmin III is horrible. ...

How to link against boost.system with cmake

...

How to Set the Background Color of a JButton on the Mac OS

Normally with Java Swing you can set the background color of a button with: myJButton.setBackground(Color.RED); which would cause the button to be red. But on the Mac OS, this method seems to be ignored. The button just stays the default color. How can the color of a JButton be set on the Mac OS? ...

Setting apple.awt.graphics.UseQuartz to false for applets with Apple's 1.5 update 4

Apple seems to have quart rendering on by default: http://lists.apple.com/archives/Java-dev/2007/Jun/msg00066.html However there are cases where this is attrociously slow. From a desktop app, I merely add: -Dapple.awt.graphics.UseQuartz=false This fixes the slow rendering. But there's isn't a place in the Java preferences panel to se...

Weird problem generating an XLS file and MAC

Hi, we have a strange problem with a web application that is generating some reports in CSV format. The report contains words with non-english chars (á, ñ, etc). The strange thing is when the report has 200 rows or more, everything works ok in MAC, when we generate a filtered report with for example 20 rows all the non-english chars are...

What to do when java.util is missing on a Mac

This is kind of weired but my Mac/Eclipse isn't offering me any java.util classes. I am still able to run the project which contains heavy use of (let's say) Vector, but I am not able to add a new Vector in the code anywhere. Eclipse isn't offereing me... I spent the last night reconfiguering the installed JRE's and build path etc. but...

How to display a raw YUV frame in a Cocoa OpenGL program

Hello everyone, I have been assigned wit the task to write a program that takes a sample raw YUV file and display it in a Cocoa OpenGL program. I am an intern at my job and I have little or no clue how to start. I have been reading wikipedia & articles on YUV, but I couldn't find any good source code on how to open a raw YUV file, ext...

Ideal way to single-instance apps on the Mac

On Windows, it's common practice to create a named mutex and use the presence of that to determine that an instance of a given app is already running. This has its drawbacks, but mostly works. I can think of a ways to do this on the Mac: named pthread mutexes enumerate running processes and look for one that matches create and lock a ...

Python: How to set breakpoints on mac with IDLE debugger?

I have access to both a PC and a mac for a python class. I find I am unable to set breakpoints in the IDLE debugger in the mac (works fine on the PC). I've tried "ctrl-click" and configuring the touchpad to recognize two taps at once as a secondary click. I don't have a mouse for the mac, just the touchpad. MAC OS 10.4.10 tiger Pyt...

AppleScript: How can I quit all running user apps and then restart to bootcamp partition (this part works)?

Hi, I frequently reboot into Windows on a bootcamp partition in my Mac Pro (e2008) (Mac Os X 10.5.6). Because I like to use the time it takes to reboot for other things instead of just sitting around I'd like to write/execute a simple applescript that would basically do: Quit all running user applications Then*—after the apps have bee...

How to execute mac OS x executable using c iphone.

Hey guys, I'm an absolute noob at iPhone development but I know a little C. I need to know how to execute an executable program (compatible under OS X) for an iPhone application. I know that in C system() can be used to invoke a separate program. The program has been tested on the mac terminal and works without any flaws. In addition, t...

How do I take a screengrab of a single window using Cocoa or Carbon on OS X?

I need to be able to identify a single window on the user's screen and take a screen capture of it. The screen data is to be stored in memory and not written to disk. This is already supported through the commandline tool /usr/sbin/screencapture or through the Grab utility (though their functionality is not extensive enough to justify ...

Global object for Javascript to interact with Safari plug-in

The issue is that I've written a Safari plug-in (http://tr.im/growler) that allows web applications to send Growl notifications by calling Javascript functions. However, at the moment the way it is written, people need to use <embed> to initialise the plug-in so that Javascript can begin using it (something I picked up from Apple's examp...

Where do I put my ruby program on mac when opening with terminal.

I'm following this guide: http://www.math.umd.edu/~dcarrera/ruby/0.3/chp_01/programs.html and I'm trying to create my first ruby program. So I wrote it in a text editor, but now I dont know how to open through terminal. Rather, where should I be saving the program to (directory). Thanks! (I'm new to programming on mac) :( ...

writing .net software for a mac

I develop code using .net, and sometimes using ruby. My friend wants me to develop a small time keeping application for use on a mac. Basically a windows form application. I want to develop on my pc (it has all my tools) - I know the writing/deployment process for windows. Is it different if I want to make it work on a mac? Does th...

Parsing the output of /usr/sbin/installer

I'm writing what is basically a frontend to installer services on many platforms. One of the things that I (obviously) would like to know is whether an installation has succeeded. On most platforms it's easy: just check the return code / exit code of the installer. However, it isn't so easy on the Mac (using /usr/sbin/installer), because...

Help with a mac crash log - what causes NSApplication _terminateSendShould

I have a mac crash log (.crash file) that shows the main thread causing the application to terminate, but I can't tell why. This isn't because the app is terminating itself. I don't think this is also because of an NSException being thrown. Can anyone interpret what this stack might indicate about why the application is terminating? 2 ...