mac

configure the left and right mac 'command' keys differently?

I'm wandering if I can set the right mac 'command' to act like the ctrl key, but keep the default functionality of the left 'command' key. Thanks. ...

How do I take a "screenshot" of an NSView?

I need to take the contents of an NSView and put them in an NSImage, for an experimental project. Is this possible? I did some Googling, tried two methods that I found - but they didn't really work. Any suggestions? ...

Mac - Zend Server CE and Zend Framework applications very very slow

My company is using Zend Server CE on Macs for testing and developing our Zend Framework applications, these applications run very quickly on Linux and Windows test machines (0.2 - 1 second page loads) but on the Macs using Zend Server CE each page takes up to 2 minutes to load, making development and testing very time consuming. We hav...

Changing the Color Space of NSImage

Hi everybody. Is there a way I can change the color space of an NSimage or NSBitmapImageRep/CGimage or the like. I am open to any way. Preferably the way photoshop does it. ...

HTML/CSS/JavaScript using JQTouch and PhoneGap to develop iPhone apps

Hi, I would like to ask if I require a Mac for the entire process of the iPhone app development or simply to test the application and later on convert it into a format accepted by iTunes and then uploaded to the App Store. Thanks a lot ! have a nice day :) C. ...

Custom NSScroller issues

I'm trying to subclass NSScroller in order to draw my own scroller knob. To do this, I've subclassex NSScrollView and usex the following code to instantiate my custom NSScrollers: - (void)awakeFromNib; { NSRect horizontalScrollerFrame = [[self horizontalScroller] frame]; NSRect verticalScrollerFrame = [[self verticalScroller] fr...

How to distribute a self developed mac application?

I've developed an application on XCode, compiled and built it. If I run the app on the same machine using Finder, it starts normally. But if I copy the app to another machine and try to run it, the application does not start. Is there another step that I forgot after building the application on XCode? I think it seems to be a simple issu...

Cornerstone VS Versions (Mac SVN clients) capitalization bug on cornerstone

I have recently been experiencing a bug with cornerstone where the client will change the capitalization of some of my files and then not recognize the re-capitalized files as versioned. This can be very annoying and sometimes causes me to miss committing important changes. I was wondering if anyone was familiar with versions and could...

How to programatically create a VPN connection on Mac OS X?

I have a config file that completely describes how to connect to a VPN. I'd like to write a tool (C or Objective-C) to read in the file and then create a new VPN interface on the system. I'm guessing the answer will have something to do with SCNetworkServiceCreate and/or SCNetworkInterfaceCreateWithInterface. Both of these want to bind ...

pyobjc build problem

I am trying to build pyobjc from trunk. My system is Mac OS X 10.5.8, Xcode 3.1.3 developer tools and I have installed python from http://www.python.org/ftp/python/2.5.4/python-2.5.4-macosx.dmg when i go to pyobjc-core folder and do $ python setup.py test I get error: lipo: can't figure out the architecture type of: /var/tmp//ccVTu...

Issue with Selenium RC with safari4 or safari5 on Mac

I'm using Selenium RC with Safari4 on Windows. What my tests do : launch Safari browser, fill 2 fields click on a button wait for the page is loaded verify that some words are present on the page* *Instruction can't be ok because it is executed before that the page is loaded and tests get failed. Following is the part of code where ...

How do you create, compile and use static and dynamic libraries in linux-like systems?

Hello, this is my main question: How do you create, compile and use static and dynamic libraries in linux-like systems? What is the difference between them? Are there any good free tutorials explaining this stuff for a total idiota like me. I've only done c# programming before. I know a little C, C++ and Objective-C. I'm developing fo...

IDE for iPhone, iPad and desktop applications development on Mac

I am absolutely new to Mac world. Which IDE I can use for iPhone, iPad and desktop applications development? ...

Is it possible to inhibit the “Application quit unexpectedly dialog” on Mac OS X?

I have a testing setup which runs an Application on OS X with a varying set of parameters, if/when the program crashes it's relaunched and continues from where it left off. However when the Application crashes OS X raises the “Application quit unexpectedly” dialog, I'd rather avoid this as it clutters the machine. Is there a way to inhib...

BASH: Split MAC Address -> 000E0C7F6676 to 00:0E:0C:7F:66:76

Hy, Can someone help me with splitting mac addresses from a log file? :-) This: 000E0C7F6676 should be: 00:0E:0C:7F:66:76 Atm i split this with OpenOffice but with over 200 MAC Address' this is very boring and slow... It would be nice if the solution is in bash. :-) Thanks in advance. ...

Why aren't the Python 2.7 command-line tools located in `/usr/local/bin` on Mac OS X?

The Python 2.7 installer disk image for Mac OS X (python-2.7-macosx10.5.dmg) states: The installer puts the applications in "Python 2.7" in your Applications folder, command-line tools in /usr/local/bin and the underlying machinery in /Library/Frameworks/Python.framework. However, after installation there are no Python 2.7 files in...

Validating NSToolbarItem with View against FirstResponder

I've got a toolbar item that contains a view (an NSButton) and the view's target is set to nil, so it'll look up the responder chain when triggering the action. I'm having trouble trying how to validate against the first responder, though. I've subclassed NSToolbarItem and implemented -(void)validate. The references that I've found say ...

Install PEAR SOAP fails

All, I'm getting the following error attempting to use PEAR to install SOAP # pear install soap Failed to download pear/soap within preferred state "stable", latest release is version 0.12.0, stability "beta", use "channel://pear.php.net/soap-0.12.0" to install install failed I'm looking for advice on what to do next. I'm ...

Is there an Automator action for displaying large text?

I'm working on an Automator workflow in which I need to take in a text string, do some processing, and then display it to the user, preferably in a manner similar to Address Book's or Quicksilver's "Display in Large Type", but I haven't found any actions to do this. Does anyone know of any? ...

Can't communicate via socket on Mac OS X

I'm working on some software that consists of a server and clients on one machine that communicate via local sockets. The server (written in Java) opens a java.net.ServerSocket on port 9000, and the clients (in either Java or Python) have to connect to localhost:9000 to communicate. In Windows and Linux, this works fine. On Mac OS X (...