mac

how do I set the PATH on Mac permanently (specifically for subversion upgrade)

Grrr, getting an error in RadRails that I need to upgrade suversion when I try to run script/plugin install. So I followed the instructions to download the .dmg for 1.6.6. I have tried to save the PATH for /opt/subversion/bin by editing ~/.profile, and even editing the etc/profile file. No avail. It still comes up svn --version as 1....

How to add text to disk image?

i have created a disk image using disk utility. but i want to add some text to the disk image for providing help on what to do. How can i do this? Can anybody help me out? ...

Add Exception to firewall on Mac either during istallation of application or when application is launched.

Hello All, I have a client - server application, where I want to add a exception to firewall so that my applications can communicate properly. I want to add add an exception to the firewall (without changing the setup for the other firewalls options). I am using Carbon, Qt, C++. However, I feel this has more to do with some install tim...

NSPopUpButton in a TrackingArea -> mouse exited when selecting an item from the menu

I have an NSPopUpButton inside a trackingArea. Now when I open the PopUp and select an item, the mouseExited: method gets called. Even if my mouse is still inside the trackingArea. I assume that that is because the NSMenu is a view itself and when I click the mouse it is not in the view with the tracking rect anymore. How can i workarou...

Quartz display services replacement for deprecated functions?

The Quartz display services reference manual lists several functions as deprecated, (for example CGDisplayCurrentMode), but doesn't mention what the replacement function is. What should I be using to find information about the current video mode? Is there a way to find out this kind of information? The reference manual on the apple de...

javac help document garbled on the terminal of mac

When issue the command "javac" on the terminal of mac,the java help document is garbled. zhang-zhongdemacbook:~ zhangzhong$ javac ?÷???javac <ѡ??> <Դ?ļ?> ???У????ܵ?ѡ??????? -g ???????е?????Ϣ -g:none ???????κε?????Ϣ zhang-zhongdemacbook:~ zhangzhong$ javac -version javac 1.6.0_13 zhang-zhon...

CGEventPost - possible bug when simulating keyboard events?

I have a very simple chunk of code that is designed to simulate keyboard events. The simple example below should type "Cz" - the shift key goes down, the c key goes down, c comes up and shift comes up. Then the z key goes down and up. It seems that sometimes the order gets muddled though. When I create a timer to call this routine ev...

C++ interface for hdiutil on Mac

Does a system call or library exist that would allow my C++ code to use hdiutil on Mac OS X. My code needs to mount an available .dmg file and then manipulate what's inside. ...

How to determine if binary is stripped on Mac OS X?

On Linux if I do file foo, and assuming foo is a binary or shared library, the output will show me if the binary is stripped of symbols. When I try the same on Mac OSX, all I get "Mach-0 executable ppc". Is there another command I can use to check if files are stripped? ...

sIFR 3 (r436) is loading terribly slow in Firefox (3.5.6) on Mac OSX

For some reason sIFR is taking FOREVER to load here (almost to the point of crashing the browser): http://www.pginvestor.com/phoenix.zhtml?c=104574&amp;p=irol-news&amp;nyo=1 This is only occurring in Firefox (3.5.6 on OSX) and seems to be an issue when there is loads of content (multiple links with hover, etc.). Similar pages do not hav...

make mac package/bundle programmatically.

through terminal you can make it with a command - "SetFile -a B filename" programmatically i think i should set one of the attributes through [[NSFileManager defaultManager] createDirectoryAtPath:dirPath withIntermediateDirectories:NO attributes:attributes error:nil]; but i can't find witch one. thanks) ...

How to set a DOCVARIABLE in Word 2008 for Mac?

How do you set a DOCVARIABLE to a desired value in Microsoft Word 2008 for Mac, where there's no VBA available to do it? ...

Deploy Qt+Boost application on a Mac and Windows.

How to deploy Qt+Boost Application on Mac OS X or Windows platform. I use Qt Creator + Qt 4.6 + MacOS 10.6 How to compile my application into release to run it on another computer w/o installed Qt libraries? ...

Mac PackageMaker - Allow Relocation Issues

I have two issues with Allow Relocation (Package: Xxx, Components): It keeps getting turned on as if by magic. How can I avoid this? I need it off (sub-optimal, I know - see #2) If Allow Relocation is on, the Installer first places the .app into /Applications, but then relocates it, copying it on top of my original .app in my developme...

Mac PackageMaker - Random reset of owner/group/perms

While developing an install with PackageMaker (XCode 3.2.1 1613, for Snow Leopard), sometimes the permissions, owner, and group that I have set on most (if not all) of the files just vaporize. The result looks like I just added the files to PackageMaker, before setting the file perm/own/grp on each. What's weird, is that most of those x...

Creating an empty txt file on Mac OS without opening an application first

Is there a way to simply create a new document e.g. on the Desktop and open it with e.g. textmate with a simple shortcut or script. I know that the MS Windows approach where you can just create a new empty txt file directly is not working for Mac. I am looking for a method achieving something similar. Any ideas? ...

Save Web Archive with Cocoa

Hello, I would like to save a webpage programmatically with Cocoa to the hard disk as a webarchive like Safari. I've searched for any example programs from Apple yesterday, but I've only found a class reference at Apple Developers page for a webarchive class. I play a little bit with the webarchive class and unfortunately my solution d...

Trying to get a solid Python install working on my Mac?

I have Mac OSX 10.5.8 with Xcode installed. I want to avoid MacPorts and want to just get a solid Python install foundation so I can then move on to mess with Django and other things. I want to use Buildout with my Python applications. I have installed binary Python 2.6.4 from the official site and installed this. Following other advice...

Setting up local web server on Mac for Ruby on Rails

I use MAMP for PHP/MySQL. What do I need for RoR? I am using OS X Leopard. I have already installed Ruby, Gems and Rails. ...

Subversion with Mac OS X

I'm using the built in SVN with Mac OS X and I checked out a project via command line. I got all my projects and everything but the .svn folder wasn't created like it was on my PC. And now SVN is just treating my project like a folder and I can't do updates or anything. Any ideas? .svn is not a valid folder name for Mac ...