mac

Handling menu events in cocoa

Hi, How to handle the menu bar events, that is if i press "quit" or "about" option in the menu bar where the control comes. Thanks in advance, ...

Run multiple commands in multiple Terminal windows with a single bash line

Here's an interesting problem: Using the AppleScript method to launch a new command in a Terminal window fails if Terminal is "busy"; more precisely, it will open a new window but fail to run the command. For example, try copy+pasting this line in: osascript -e 'tell application "Terminal" to do script "foo"'; osascript -e 'tell applica...

Installing Ruby 1.9.1

Hi, I can't install ruby 1.9.1. I tried installing macports, homebrew, and RVM. I installed macports but somehow when I used the commands it didn't work. Installing homebrew was a problem in of itself. Ditto for RVM. Can anyone provide step by step instructions on how to do this on a mac leopard. Geez, didn't think it would be this ...

How to add a checkbox in front of folder tree in finder with Mac?

I want to change a outline view , and add checkbox cell in front of node , and the node have a icon and how to add checkbox in head of the icon? ...

is there private MAC address space?

For IP addresses there are 10.x.x.x , 192.168.x.x IP address that can be used for private networks. Is there something similar for MAC address of network cards that can be safely used without applying for the permission from IEEE? ...

Add to the "Open Recent" menu an item that doesn't point to a file

Is there a way to add an item that doesn't point to a file that exists on the file system to the "Open Recent" menu? In an application not based on NSDocument, I can add an item to the "Open Recent" submenu with the following code: [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[NSURL URLWithString:stringToFi...

Some Problems about Http Live Streaming

I have a video website on Mac Os X. I can watch these videos on my iPhone through Http Live Streaming with wifi.I have divided the source video into 10 seconds of media per file. When I watched the video using one iPhone, there's no buffering tip.However, using three more iPhones to watch the video at the same time, it always show buff...

NSDateFormatter problems between versions 10.4 and 10.5

Hey there everyone! I'm creating an app that needs to run on 10.4 and above. Having a date string that is formatted properly is crucial. When I run my program in 10.5 debug everything is good; I get a date which is exactly how I want it: Jul 13, 2010 16 the 16 being the hour without the minutes, which I specifically need. Then when ...

Objective c iPhone app and Mac app communication.

Is this possible? I want to be able to press a button on the iPhone app and something happens to the Mac app. Maybe via 3G and wifi. Any ideas? ...

CFNetwork and Bonjour integration for iPhone to Mac integration

I want to use CFNetwork and Bonjour in conjunction to be able to have communications between my iPhone app and a Mac app. The app on the iPhone would have one button. Then on the Mac app, there will be a label. If the button is pushed on the iPhone app, the label changes on the Mac app. Is there example code out there that can do this?...

SAS alternative for MAC

Can you recommend me any SAS alternatives for Mac? I would not use any Parallel like solution. Which andvantage Oracle technology has in front of SAS? ...

For a Mac error how do you determine the object when given its hex ID ?

I have been given an error on the Mac: objc[30344]: FREED(id): message release sent to freed object=0x3d55b60 How do I determine the object's symbolic identity so that I can fix the problem ? ...

Call web URL with PHP script from a shell script on Mac OS-X

I have a server with a PHP script that pulls data from a source and populates a database. I need to call this PHP script repeatedly, each time with a different parameter. I need to create a shell script on a Mac (which reads in a text file with the list of parameters - that part is not a problem) and for each parameter, runs the PHP sc...

How to define shortcuts using the mac 'command' key in aquamacs (or emacs)

How can I define an aquamacs keyboard shortcut using the mac command key. I'd like 'command'-k to act like ctrl-k (kill line). Thanks in advance! ...

How to build pyobjc from src

I am trying to build pyobjc from src, so I checked out http://svn.red-bean.com/pyobjc/trunk but I have no clue after that what I do to build it, I do not see any make or setup files? Edit 1: I tried setup.py in trunk/pyobjc/pyobjc folder but it tries to download all the required modules which seem to be already in trunk/pyobjc e.g. it ...

NSUserDefaults flexibility for version updates

Hi, I am using the NSUserDefaults' api -registerDefaults api to register the factory defaults of my application. All is fine for the first version of the application. But when I provide an update for the iPhone application, I have 3 criteria to make sure: The user preferences of older version app should be intact. Addition to the fact...

How i locate itunes media folder location using com.itunes.plist

Hello everyone, I need to access the media folder location of itunes thats set in iTunes-Prferencces-Advanced through com.itunes.plist. Please help me Thanks ...

How to add custom UTI in xcode app for exported plist xml format

Hi All, I am working on one cocoa application and exporting some data stored in NSArray to plist(XML) format. I want to give custom extension and icon to that exported plist.This custom extension plist file will be imported and exported by my application only. I tried few links but unable to make that working. I am using xcode 3.1.4 an...

How to badge file and folder using cocoa

I want to badge file and folder with some color(image), any idea how it can be achieved I tried with icon service, it work for files but it is not working with folders. I saw this behavior working Dropbox(https://www.dropbox.com/) (10.4, 10.5 and 10.6)- any idea how can this be done? The following was very close one for me, but it is n...

Installing iPhone app OTA through server

Hi, Generally in order to test the iPhone app before going live in app store, we get the app file for iPhone and along with provisioning profile, we should be able to install the app in iPhone. My query is "Is there a way to install the iPhone app over the air through server similar to Black berry?" If yes, how can it be done? Please ...