mac

How do I get the default temporary directory on Mac OS X?

I'd like to create some directories of data for some unit tests and I'd like these directories to be in the default temporary directory for the user. I could just create a subdir under /tmp I suppose, but I don't want to make an assumption about how somebody has set up their own machine. I'm planning on writing the test data on the fly...

Developing Web Applications on the Mac

How does one build Web applications on the Mac that is not RoR or PHP? Can Web applications be created using Objective-C and Cocoa? I'm entirely new to this subject - Hahnemann ...

Building Xcode Projects From the Command Line

I've been playing around with Qt for a few hours now. I found that qmake produces Xcode project files on Mac OS X instead of good ol' makefiles. I don't want to launch Xcode every time I want to build "Hello, world". How do I make qmake generate regular makefiles or, if that's something that cannot be done on the Mac, how do I compile ....

Font for mac osx that is as readable and compact as the default xterm (X11) font.

The font used in xterms is extremely compact yet readable. What font is that? The closest I've found that I can use in other other applications is DejaVu Sans Mono or Bitstream Vera Sans Mono. Those are as compact as xterms vertically but take up more space horizontally. I'd really like to switch from xterms to Terminal.app and this ...

Adding a framework in Xcode

Im trying to add a third party framework in Xcode but I'm getting an error that it can't be found error: MKAbeFook/MKAbeFook.h: No Such File or Directory I've added it in the Linked Frameworks group and added it to the Target for this project. I've also added it to a new Copy Files build phase for that target. Basically I've follo...

Reading syslog output on a mac

I have a program that was written for linux and I am trying to build and run it on my MacOS 10.5 machine. The program builds and runs without problem, however it makes many calls to syslog. I know that syslogd is running on my mac, however I can't seem to find where my syslog calls are output to. The syslog calls are of the form syslog...

Looking for info on custom drawing of interface components (Cocoa)

It seems like more and more OS X apps these days are doing all kinds of fancy drawing stuff for custom controls. Apps like Twitterific, Things, EventBox, Versions just to name a few.... So basically I'm looking for any information on how to get started doing this kind of thing. Not sure if it is just done by subclassing controls and usi...

Launch safari from a Mac application

Hi How can I launch the Safari browser or the user's default browser pointing it to a specific address from within my Mac application? I am using Objective-C as the programming language. Thanks. ...

Does GetMovieAudioVolumeLevels() support more than two channels of audio?

I have some code that uses GetMovieAudioVolumeLevels() to get levels of a QuickTime movie during playback. I have an 8 audio channel QuickTime movie, but using the GetMovieAudioVolumeLevels() call it only ever returns 2 channels. I am using kQTAudioMeter_DeviceMix, and right now I'm assuming because my MacPro can only actually playback ...

Do I still need to learn about managing memory now that Objective-C/Cocoa has Garbage collection?

So I finally dusted off my Objective-C/Cocoa books.. turns out they are nearly 7 years old! With Objective-C 2.0 now having garbage collection, how important are the chapters on Memory Management? How much of a difference has Garbage Collection made? ...

Fonts in pdf documents screwed up when generated with latex (specifically, pdflatex) on mac osx.

...

In Mac OS X, is there a programmatic way to get the machine to go to sleep/hibernate?

Is there some command line or AppleScript that I can write/run to make the machine go to sleep automatically or even better, into hibernate mode? I can run the program as root. ...

Setting up a Mac for programmers

I recently switched over to a MacBook Pro so I'm still really new at Mac software ecosystem. What is the best guide or what tips do you have to quickly get adept at using Mac for developing on both Mac/Unix and MS platforms (*.NET, SharePoint, SQL Server, etc) using VMWare Fusion? For example, I've setup NetBeans, FlexBuilder, Eclipse, T...

Mac Browsers - Is IE5.x for the Mac officially dead?

I don't use a mac much so my exposure is minimal but can I safely presume that IE on the Mac is dead? I know that Microsoft isn't developing it any further and that Firefox, Safari (Opera and Camino) all run on Mac (and from my stats they are most used, in that order)... So the question is: Is it dead? and if so, when did it die? I st...

Xcode window positions when switching from dual to single monitor

When I'm working at home I plug my MacBook in to my 20" monitor as a second (right side) monitor. I do all my editing in Xcode on the larger monitor, and leave the menu bar, debugging and documentation on the laptop's monitor. The problem is when I disconnect from the second monitor and want to work on code in "laptop" mode. Now, whene...

SharePoint permission on Macs

Hello, we are using SharePoint Server (MOSS 2007) with Windows Integrated Security. A few computers in the company (managers) are using Apple Macs. These people can't run the application on their machines! I think the problem is due the windows integrated security. How can we solve this problem? Thanks for your help. ...

Java - UserInput.* doesn't work on my Mac

I do most of programming work on the Windows terminals in my university. However, my computer is a Mac and, for some reason, the javac command throws up an error when I use UserInput methods. Is there anything to install or an alternative command to use to make this compile properly? ...

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. :) ...