mac

Test universal binary for mac

Hi, I am developing a mac program in an intel mac, under OS X. It needs to be also an universal binary, so guess with Xcode one can create the universal binary (UB), am I wrong? But my question is if there is some kind of virtual machine or such other method, so I can test whether the binary powerpc part runs ok, but I have only the i...

Modifying old Windows program for Mac OS X

This application was written for windows back in 1998, I loved using this program, Now I want to learn how to make it work on Mac, And maybe changing and adding functionality, The problem is I don't know where to start, I Have studied C++ php, javascript, But don't really know how to read this code. or where to start. Thanks for t...

Detect bottleneck on program and use opencl to speedup

Hi, I am new to OSX and mac. I have some old number crunching programs. I wonder what are the best approaches in OSX to 1) find the bottlenecks in the program. I read that the best is to use Xcode and profiling tools, but this is not clear to me which one of this tools is the best one 2) once the bottlneck is found, what is the best a...

JNA Library - Problems on Mac OS X

This is a question regarding the JNA library in a Java program. I have a tray application. "JFrame 1" is loaded at start of program. "JFrame 1" has a custom shape and has transparency. (Custom shape = ellipse) It works on Windows, Linux and Mac OS X. BUT! When I open "JFrame 2" (a normal JFrame without custom shape and transparency), ...

AppleScript or Automator to click on menus in an application?

Hi, I'm not sure if this is do-able via AppleScript and/or Automator…but I'd like to be able to: a) launch an application (I know this can be done pretty easily by AppleScript or Automator) b) once the application is launched, use AppleScript or Automator to select specific menu items. e.g. I'd like to launch Excel 2008 (I have the ...

Where do FirstResponder methods come from?

I'm looking at IKImageDemo supplied by Apple, the rotate round-slider is linked to a setRotation: method in the FirstResponder. However, none of the objects in the project seem to HAVE such a method, and yet the code works. I'm trying copy this into my own project, and MY FirstResponder doesn't have a setRotation: method, so I'm not sur...

Python and Boost - Trying to run vPython and getting __doc__ is read only error.

This is super urgent! Need to get vPython working, can anyone give me help on any way to do this? I'm running on Mac OS X with Python 2.6 , and recently downloaded vPython. Upon installation it also installs the Boost libraries for Python. Now, when I try to import the vPython libraries ('visual'), the following occurs: >>>import v...

Global hotkey poller via python for Mac OS X

I use this for Linux. And pyhook on windows. But I don't know what to use to register if a key is pressed (global - non-focused) on Mac OSX. How can one do this? I'm mostly looking at registering the modifier keys (ctrl/alt/shift etc.). ...

'sudo gem install' or 'gem install' and gem locations

running 'sudo gem list --local' and 'gem list --local' gives me differing results, my gem path is set to my home folder and only contain the gems from 'gem list --local'. So it's probably not good to have gems installed in different directories on my computer, should I have the gem path set differently? and should I always use sudo when...

Why does Ruby's ri not return to a bash command prompt (maybe Unix question)?

When I execute ri ... in a terminal on my Mac, I get, maybe, 50 blank lines, then the output I'm expecting, then a last line: (END) , with (END) displayed with white letters on black background. I am not returned to bash, however -- ri is still running, and I can't enter anything. Also, why all the blank lines? What's up? Cary ...

Is there a way to use SVN for web development in a Mac shop that uses coda?

So we are pushing to create good processes in our office. I work in a web shop that has been doing web sites for over a decade. And we don't use version control. I know! It's bad, not my fault. I'm the guy with a SoftE background pushing for this at a minimum. The tech lead has been looking into it. We all use Mac workstations and ...

Using sudo commands in Cocoa and Objective-C?

What is the proper way to run something like $sudo touch folder_name or $sudo rm from within Objective-C/Cocoa? I'm changing and moving around a few files and need elevated privileges. Any code sample would be greatly appreciated. Thanks. ...

Drag & Drop Reorder Rows on NSTableView

Hi, I was just wondering if there was an easy way to set an NSTableView to allow it to reorder its rows without writing any pasteboard code. I only need it to be able to do this internally, within one table. I have no issue writing the pboard code, except that I'm fairly sure that I saw Interface Builder have a toggle for this somewher...

How to add popup menu on NSToolbar item ?

I've tried to add NSPopupButton + CustomView, but it's not what I wanted. I would like to mimic "Tasks" on Xcode's toolbar. Thanks in advance ...

Good looking Python GUI toolkit for Snow Leopard(64 bit)

I'm looking for a GUI toolkit/framework to create applications that run on Mac Snow Leopard and preferably other systems(Windows, Linux). Deal breakers: X11 based Non-native widgets 32 bit/Carbon Bad Mac look and feel As far as I know Tkinter runs X11 and wxWidgets and PyQT do not run 64 bit. Is there anything usable for good looki...

NSTableView handling edititng cells correctly

Hi All, I have an NSTableView working correctly except when I'm editing one of the table items. If the user is still in edit mode, and it presses the Sheet OK button, the tableiew doesn't update. How do I force the tableview to commit the changes when the user press the ok button (closesheet). Also, how do I handle the ESC Key to cance...

How to pass an arbitrary AppleScript Record to Cocoa in a scriptable app?

I have a Cocoa application with an AppleScript dictionary described in a .sdef XML file. All of the AppleScript classes, commands, etc. defined in the sdef are working property. Except for my "submit form" command. The "submit form" command is my only command attempting to pass a parameter that is an arbitrary hashtable of information f...

Mac: Setting up SVN for personal development

Hi, I've seen that i already have both svn and svnserve (and a .subversion dir in my home). svnserve should be svn server, as far as i know, but how can i run it? I need something very basic, not linked to apache or any server, just to version files on my own computer for personal development (svn is integrated with TextMate that i use)....

Right clicking with a Webkit view

I'm working on a project in Ruby right now that is essentially a web-app. We like the format of web-apps and some of the natural agile advantages we have building for the web. However, we want to be able to package our application and distribute it in a standalone format. Ideally, we would like to essentially make a .app package for Ma...

Cannot connect to svn server (svnserve)

Hello, I've set up using many tutorials from the web a repository and svnserve on my mac. But I cannot access it from the internet. If I call the following command everything works alright: svn co svn://192.168.1.10 /working_copy/myproject --username me And If I call the following: svn co svn://my_external_ip /working_copy/myprojec...