mac

Does a user need admin rights to install Flash player?

Will users who do not have admin rights on their computers be able to upgrade to new Flash player version by themselves? This would be interesting to know for: Windows 98 Windows XP/2000/Vista Macs Unix/Linux ...

Graphical diff for Mac OS X

Where can I find a convenient graphical diff-tool for Mac OS X (freeware)? ...

How do we recruit great Mac developers?

My company wants to make some serious applications on the Mac, but we're having a hard time finding experienced mac developers. We're talking Objective-C Cocoa native stuff here. What's the best way to get them? Remote employees? From where? Contract workers or companies? Who? ...

How do I get a terminal program to honour cursor keys?

I'm using ccl/openmcl on Mac OS X. (latest versions of both). When the lisp prompt is displayed, using the cursor keys to navigate the current line results in escape codes, rather than movement, eg: Welcome to Clozure Common Lisp Version 1.2-r9226-RC1 (DarwinX8664)! ? (^[[D Here I've pressed the ( key, and then the left cursor key. ...

What package manager do you prefer for Mac OS X?

I've used DarwinPorts and Fink before. What do you use and why? Or, do you prefer to just build from source? ...

What's the cheapest mac development box possible?

Simple question really, I would like to learn some cocoa, primarily for playing around with the Iphone SDK, but first i need a mac. Macs are expensive, but I don't know at what point an old mac moves from a bargain to a doorstop. How cheap and old can I go to have an ok mac development machine? Is there any other way to have a good de...

Why can I select aliases but not symbolic links in NSOpenPanel?

I want to create an NSOpenPanel that can select any kind of file, so I do this NSOpenPanel* panel = [NSOpenPanel openPanel]; if([panel runModalForTypes:nil] == NSOKButton) { // process files here } which lets me select all files except symbolic links. They're simply not selectable and the obvious setResolvesAliases does nothin...

QuickTime video codec configuration

So I'm porting an app from Windows to Mac, and part of the app deals with creating movie files. On Windows, there's a group of functions like ICOpen and ICConfigure, which signify to the video compression driver to open up a configuration box for the selected codec. Is there anything like that for QuickTime on Mac? ...

Getting drawable area of an AWT frame in Mac OS X?

I have subclassed java.awt.Frame and have overridden the paint() method as I wish to draw the entire contents of the window manually. However, on the graphics object, (0,0) corresponds to the upper left hand corner of the window inside the title bar decoration, not the first drawable pixel. Can I determine the co-ordinate of the first ...

How can I get notified when the user finishes editing a cell in an NSTableView?

I need to know when the user finishes editing a cell in an NSTableView. The table contains all of the user's calendars (obtained from the CalCalendarStore), so in order for the user's changes to be saved I need to inform the CalCalendarStore of the changes. However, I can't find anything that gets called after the user finishes their edi...

Distinguishing between HFS+ and HFS Standard Volumes

IOKit and the DiskArbitration framework can tell me a lot of things about mounted volumes on a mac, but they don't seem to be able to differentiate between HFS+ and HFS Standard volumes. The IOKit/DA keys Content, DAVolumeKind and DAMediaContent are always Apple_HFS and hfs for both HFS Standard and HFS+ volumes. diskutil and DiskUtil...

How can I make the "find" Command on OS X default to the current directory?

I am a heavy command line user and use the find command extensively in my build system scripts. However on Mac OS X when I am not concentrating I often get output like this: $ find -name \*.plist find: illegal option -- n find: illegal option -- a find: illegal option -- m find: illegal option -- e find: *.plist: No such file or directo...

Apache development config on OS X (again)

Hi All, I am trying to configure Apache2 on my Mac (running OS X 10.5) so I can use virtual hosts to develop a few different projects and be able to browse to them from other machines on my network. I've tried to use the following configuration in httpd.conf (boiled down a bit): ServerName macmini.local:80 Listen *:80 NameVirtualHost 1...

Making iTerm to translate 'meta-key' in the same way as in other OSes

In bash shell with emacs key-binding, you can use key combination like M-f, M-b to move one word forward or backward on the shell prompt respectively. Usually, the meta key is mapped to Alt key on Windows and Linux. However, in iTerm, I could not find a way to map this meta key to either Option or Command key on my MacBook Pro. It seems...

Locating bundles by identifier

I want to create a bundle from an arbitrary bundle identifier e.g. com.apple.iokit.IOStorageFamily It's not an unreasonable thing to do as bundle IDs are supposed to be unique, however the obvious code does not work: NSString* bID = @"com.apple.iokit.IOStorageFamily"; NSBundle* bundle = [NSBundle bundleWithIdentifier:bID]; This cod...

How to determine if currency symbol is to the left or right of a number on MacOS

How do I determine if the currency symbol is supposed to be on the left or right of a number using CFLocale / CFNumberFormatter in a Mac Carbon project? I need to interface with a spreadsheet application which requires me to pass a number, currency symbol, currency symbol location and padding instead of a CStringRef created with CFNumbe...

Cocoa Distributed Objects, GC client, non-GC server

I have a setup where there are two Cocoa processes, communicating with Distributed Objects (DO). The client is using garbage collection, the server is not. It seems that the client hangs on to the distant objects outside of my direct references to them. This means that even after I don't have references to the objects, they hang around ...

Is it possible to design NSCell subclasses in Interface Builder?

I'm trying to subclass NSCell for use in a NSTableView. The cell I want to create is fairly complicated so it would be very useful if I could design it in Interface Builder and then load the NSCell from a nib. Is this possible? How do I do it? ...

Stop password prompt on MAMP startup

I develop using MAMP pro on my Mac. When I start MAMP it prompts me for a password if I use port 80. If I use a higher port it doesn't prompt me, but I have to append the port number in the URL ( eg dev.local:8888 ). Does anyone know how to make it not prompt for password when using standard ports? Thank you. ...

Find out location of an executable file in Cocoa

The simple question is: how to find out the location of an executable file in a Cocoa application. Remember that, in many Unix-like OS people use PATH environment to assign the preferred location for their executables, especially when they have several versions of same application in their system. As a good practice, our Cocoa applicat...