mac

Error when using MD5 algorithm

Hello helpful people! I'm trying to run this MD5 algorithm, which I found on this post on stackoverflow . But I keep on getting the following error: 2010-08-06 14:45:40.971 Intel[3195:a0f] -[TaskController md5:]: unrecognized selector sent to instance 0x108df0 2010-08-06 14:45:40.973 Intel[3195:a0f] *** Terminating app due to uncaugh...

Should I verify objects inside Foundation API containers?

In languages like C++ and C# when you create a contain such as a std::vector or a C# list you explicitly declare the container type when you create it: C++: std::vector<MyObject> C#: List<MyObject> list = new List<MyObject>(); Looking at the code above, I know immediately that these containers can only contain objects of type MyOb...

How do you specify to display a diamond in a NSMenuItem (minimized window indicator)?

I'm creating a JNI to display an application wide menu bar instead of the JFrame specific one. This allows me to keep a menubar displayed even when no JFrames are present. I've hit a small snag, in my window menu I can't figure out how to display a diamond for the windows that are minimized. As far as I can tell in the standard API there...

How can I optimise out this nested for loop?

How can I optimise out this nested for loop? The program should go through each word in the array created from the word text file, and if it's greater than 8 characters, add it to the goodWords array. But the caveat is that I only want the root word to be in the goodWords array, for example: If greet is added to the array, I don't want...

What is the difference between an instance variable/method and a class variable/method in Objective-C?

I've seen many other questions on this same topic but they're not very clear to me, someone new to Objective-C. I need a plain english explanation. 'Coder speak' is much too difficult for me to understand at this point in my learning. ...

How to check the status(running/stopped) of a process/daemon in Mac?

In Linux, we have the command "/etc/init.d/process_name status", this will give whether the process/daemon is running or stopped. For Example In Ubuntu: root@Ubu91032b-Bassu:~# /etc/init.d/ssh status sshd is running root@Ubu91032b-Bassu:~# My question is, is there any command (like above) in Mac to check the status of a daemon/pro...

File extension icon on Mac

Hi My application uses new proprietary file formats with extensions never been used before. I would like to associate specific icons to display my files in finder with nice iconography. As far as I know LaunchService is responsible to handle all these data, however Im confused where, when and how shall I create associations. Which entr...

problems with java installation (xerces) on mac

Hello I'm using MacOsX 10.6.4. Some time ago I run into problems with Eclipse (it wouldn't start anymore - I opened a question here and followed all the suggestion but with no luck). Then I also run into very similar problems with other java applications, of which the last one is the android sdk. All these problems seem to be related w...

CosmosBoot with Mono on Mac

Is it possible to install Cosmos User Kit(A C# Operating System) with mono on mac? ...

Cocoa interface to GEDCOM file

The only full-fledged GPL Cocoa editor for GEDCOM 5.5 files (GenerationX) was last released in 2003: http://sourceforge.net/projects/generationx/ It looks unstable under Snow Leopard and would badly need a revamp. Someone recently posted a proof-of-concept application (unrelated to GenerationX) on Google Code, but it looks like an unmai...

Mac Create Alias for DMG File without fixed user in it

Hey guys, I want to put an alias to a fixed folder, namely the iWorks template folder into a DMG. The directory is /Users/USERNAME/Library/Application Support/iWork/Pages/Templates/My Templates My Problem is, that I want to put it into a DMG so people can easily install the template. But while it works fine with the Application fold...

Stream audio on Mac

I have been using AVAudioPlayer on the iPhone and iPad. I can't find anything that comes close on the Mac. Does anyone know where to find a library like that ? What I want is a library that can stream songs from the internet so the user does not need to download the whole song. NSSound can play songs from the internet but it does not...

How to log Mac OS X graphics card driver

In my Mac OS X application, I would like to log the user's graphics card driver and model. What is the appropriate API to use? ...

how to find MAC address in MAC OS X programmatically ?

Hello, I am new to Mac OS X and X code and want to know how to find the MAC address of a machine programmatically in OS X. ...

Distributing minimal python installation with application

My company is working on an application that is half Qt/C++ for the editor interface and half Django (via QtWebKit browser control) for the runtime. What we want to do is distribute a minimal python installation with our application. For instance, our Mac app bundle would ideally be structured something like this: TheApp.app/ Conte...

Communicating between Mac OS X Preference Pane app and php5 web app

Wondering what the best method is for communicating between a 10.5/10.6+ System Preference Pane application to our php5 web application. The Preference Pane application that we've yet to develop will allow the client to authenticate to our online services, then allow them to control how their local client is backed up to our online back...

Enable/Disable Fn keys from the command line on the Mac

I hardly ever use the function keys on my macbook pro. I mostly just use them for volume, brightness, etc. Now that I've started playing Starcraft 2 a bunch, I want to use them without having to press the fn key down. I want to write a little shell script that will flip the "Use all F1, F2, etc keys as standard function keys" check box...

free c++ compiler for mac not using xcode

Are there any free c++ compilers for macs that do not need xcode? ...

free c++ compiler for mac with open source license

Are there any free c++ compilers for macs whose license is open source? (basically one of these http://www.opensource.org/licenses/category) I don't have the DVD that came with my current OS, and it won't run the version of xcode I already have. ...

Have I used uniform type identifiers correctly?

I'm creating an application for Mac OS X, and I wanted to know whether I've used UTIs properly in the application's .plist file: <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeIdentifier</key> <string>com.petroules.silverlock.database</string> <key>UTTypeDescription</key> <string>Silv...