mac

How to sync your MAMP install across multiple Macs

I have MAMP set up on my iMac and on my Macbook. I want to keep both installs synced using dropbox. When upgrading MAMP the only 2 folders you need to transfer are 'db' & 'htdocs'. My theory is then that these are the only 2 folders I need to keep in sync. Sound right to you so far? Syncing the 'htdocs' folder is easy as you can put it ...

How are binding specified for Interface Builder plugins?

I'm creating an Interface Builder plugin for an NSView subclass. I've been following the Interface Builder Plug-in Programming Guide but it's not answer all my questions. My class has one NSString property and 4 NSColor properties which I want to create bindings for at design time. I can't figure out where the bindings are specified in ...

How does Apple make the info.plist display its "Information Property List"?

My plists simply start with "Root". Theirs contains arrays of useful stuff you can select to tweak the configuration. The specific info.plist I am looking at is in an iphone project. I have researched this a little bit, (not alot) but haven't even detected a smell of solution. What mechanism is putting this together? Can I bend it to my...

MVC architecture question for Mac application.

I have a controller class from which I call a method of model class. Now from this model class method I want to update textView object which is a data member of controller class continuously. I have method in the controller class to edit this textView. I tried creating a controller object from the model class method and edited the textVi...

How do I get keyboard events in an NSStatusWindowLevel window while my application is not frontmost?

After creating a translucent window (based on example code by Matt Gemmell) I want to get keyboard events in this window. It seems that there are only keyboard events when my application is the active application while I want keyboard events even when my application isn't active but the window is visible. Basically I want behavior like...

NSApplication delegate and Preference Panes

It seems that I can't control the NSApp delegate from within a System Preferences pane, which is understandable. Is there any other way I can have my object notified when the program becomes active? ...

What software do I use to put floppies as images on a hard disk?

I still have a large number of floppies. On some of them there probably is source code I don't want to lose. I also don't want to take look at each one individually, as that's going to take a lot of time. What software would be best for copying all data to a hard disk, preferably while creating an index at the same time? I would also be...

How do I trigger a callback when a NSAnimationContext ends?

I have an animation which moves some views around. When this animation completes I want the window to recalculate the keyview loop. My code is simmilar to the follow mock code: [NSAnimationContext beginGrouping]; [newView setAlpha: 0.0]; //hide newView [self addSubView:newView]; //position the views [[oldView animator] setFrame...

What are my options for running Java 6 on OS X?

What are my options for running Java 6 on OS X? I have an MacBook Pro Intel Core Duo running Mac OS X 10.4. Do I have any options for running Java 6 on this hardware and OS? Related questions: Which Macs (either current or forthcoming) support 64-bit computing? Are there any Apple laptops (either current or forthcoming) that will have...

Starting process in new Terminal window on Mac

On Windows I can do CreateProcess(..., CREATE_NEW_CONSOLE, ...) and my child process (which is console app, not GUI) will be launched in a new window. What is the easiest way to emulate this on Mac OS? ...

Eclipse PDE on Mac OS X: Getting the correct font size at runtime?

Hi. There's an annoying "feature" when using Eclipse PDE on Mac OS X: the font size of the runtime IDE is not the same as the true IDE. If you're developing a plug-in and you launch an Eclipse instance to test it (from within Eclipse), you will notice that the spawned instance looks very different from the original running Eclipse insta...

Xcode quickstart for the Visual Studio developer

I would like to use Apple's Xcode IDE to develop applications on the OS X, but I find the UI immensely confusing because I am so used to developing in Visual Studio on Windows. Does anyone know of any Xcode quickstart guides for the Visual Studio developer that map common tasks and functionality from one to the other? For example, I ca...

Fixing broken Macports

I just tried (for the first time, I might add) a port upgrade installed in Macports, and I'm afraid I might come to regret it: A lot of errors -- specially regarding X11 and Python. Here's a typical error message regarding python: ---> Activating python24 2.4.5_4+darwin_9 Error: Activating python24 2.4.5_4 failed: Image...

Shell Script doesn't run automatically though it is registered in Mac OS X Login Items

I have the following shell script registered in my "Login Items" preferences but it does not seem to have any effect. It is meant to launch the moinmoin wiki but only works when it is run by hand from a terminal window, after which it runs until the machine is next shut down. #!/bin/bash cd /Users/stuartcw/Documents/Wiki/moin-1.7.2 /usr...

Free PHP editor for Mac?

I am new to the Mac world and I'm looking for PHP development tools, right now the most important thing is the editor. Syntax highlighting and a file tree list are mandatory, of course, and code insight would be nice (of course :). I am hoping that there are free editors out there that provide these functionality and I hope someone could...

How to I launch an on-screen keyboard from my application on Mac OSX?

I know there is an on-screen keyboard which you can access on Mac OSX, however I need to add a toolbar button to launch it from within my application. Does anybody know how I can do this? ...

How do I get each line from an NSString?

If I have an NSString with a text file in it, how do I get an NSArray of NSString with each NSString containing a line of the file. In 10.5 I did this: NSArray* lines = [str componentsSeparatedByCharactersInSet: [NSCharacterSet newlineCharacterSet]]; But that doesn't work in 10.4, and my program needs to work in 10.4. As well, it ne...

Signing data with smartcards on Mac in C++

Dear lazyweb, is there any support in Mac OS X for signing data using smartcards? I have looked through the system headers and found only vauge references to smart card support (in SecKeychain.h), which didn't really take me anywhere. If there's no built-in support, which are my options (ie. what free/non-free libraries exist that can ...

Remove Apache

I have multiple installations of apache on my Mac OS X 10.5 and would like to remove them including any dependencies. They are installed in 3 different directories. How can this be achieved? ...

Suggestions other than an AppleScript OSAX to create a resource bound file

I need a create a specific type of file in OS X. It needs resources in a specific way. Currently, the only way I can find to do this is in AppleScript with an OSAX. This is slow, about 1 second round trip to run, since the OSAX must open, load, do it's job, and quit. I have explored doing it in C, but that would be a last resort, as ...