mac

Compiling PHP-GD on Mac OSX 10.5

I've followed the helpful instructions here: Install GD for PHP on Mac OS X 10.5 Leopard And I have my extension directory in php.ini file like this: extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/" But when I try and load GD, I get an error: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/...

How can you have folds for a LaTex file in xEmacs?

I would like to have automatic folds for comments in my AquaEmacs. ...

How can you have a Vim-like-Taglist in Emacs?

I use AquaEmacs. I would like to have Emacs which has a vertical hierarchy (at the left-hand-side) about items in the document, similar to Vim's plugin Taglist. ...

How can you have a xEmacs-like-Auctex in MacVim?

I would like to have a figures right in my MacVim, similarly as in xEmacs' AucTex. ...

Set default values for a global variable in a custom class?

I have a custom class that has quite a few accessor methods for customizing it. My question is, if a programmer uses this class and doesn't bother to assign values for ALL of these methods because he doesn't know about them or doesn't want to bother, how can I make the class assume a default view? I can't use awakeFromNib, because that w...

WxWidgets / GCC / MacOs X: How can I build and link the WxWidgets library properly?

Hi, I am trying to port a windows application based on WxWidgets 2.8.9 to MacOS X. I've gotten to the point where everything compiles successfully, except from a few missing symbols related to WxWidgets. I've tried compiling WxWidgets with the command line and with XCode and I've tried several different configuration options, but none o...

Running a C#/WPF application on a Mac

I sell a C#/WPF application (targeting .net 3.0 at the moment) and people keep asking me for a Mac version. The application is a time tracking application with a good GUI, there isn't that much business logic in a time tracking application so most of the application is GUI - rewriting just the GUI is equivalent to rewriting the entire a...

Cocoa NSArray/NSSet: -makeObjectsPerformSelector: vs. fast enumeration

I want to perform the same action over several objects stored in a NSSet. My first attempt was using a fast enumeration: for (id item in mySetOfObjects) [item action]; which works pretty fine. Then I thought of: [mySetOfObjects makeObjectsPerformSelector:@selector(action)]; And now, I don't know what is the best choice. As far...

How do you run a command in iTerm when it launches?

I'm working on configuring the iTerm terminal emulator for the Mac to do what I want. Apparently everything is done through what they call "bookmarks." OK, fine. I'm trying to create a bookmark that will open a tab, cd to a certain Rails project, and run the command script/server. What's supposed to happen is that this will launch the se...

dSYM Directories While Compiling C++ Code in MacOS

Hi, Why compiling C++ in Mac always create *.dSYM directories? Is there a way to disable that? ...

Building an application with "drawer" in Linux/Mac/Windows

I'd like to build an application with a "drawer" GUI element, like it is all over the place in Mac OS X. Is it possible to do so in Linux/Windows? Is it possible to build it crossplatform? ...

Equivalent of double-clickable .sh and .bat on Mac?

I am distributing a Java program where I want a double-clickable file to run java -cp MyProgram.jar;MyLib.jar my.program.Main On Windows I simply distribute a .bat file, for *nix an executable .sh file. Problem is, double-clicking the .sh file just opens it up in a text editor on Mac. What should I do for Mac? ...

How can I perform the equivalent of shellexecute() in Lazarus for a Mac?

How can I perform the equivalent of shellexecute() in Lazarus for a Mac? ...

It really looks like OS X has a bug when using poll() on a named pipe (FIFO)... can an expert confirm?

I'm been trying to poll from a set of named-pipes for a little while now and i keep getting an immediate response of POLLNVAL on any named pipe file descriptor. After finding this blog post about broken polling in OS X I'm pretty certain that this is a b-u-g bug in OS X. I'm already planning on switching my code to using UDP sockets, b...

Developing on Apple (new platform question)

Coming from a Microsoft development backgroup I am a bit confused as to what development languages/environments are available on an Mac. Are there any C# like languages to develop with on the Mac other than Java that I should also consider? What do MS to OSX converts prefer and why? I am after a business level programming strategy and no...

Does anyone know an good free natural sounding text reader for the mac?

Does anyone know an good free natural sounding text reader for the mac? ...

Recommendations for Python development on a Mac?

I bought a low-end MacBook about a month ago and am finally getting around to configuring it for Python. I've done most of my Python work in Windows up until now, and am finding the choices for OS X a little daunting. It looks like there are at least five options to use for Python development: "Stock" Apple Python MacPython Fink MacPor...

How to spoof an ethernet MAC address of the wired ethernet interface coming with MacBookPro and Leopard 10.5.6?

With OSX 10.5. it's no longer possible to spoof MAC addresses of your wired interface (e.g. en0) with "ifconfig en0 laddr/ether XX:YY:...." a/ why is that? b/ how is it notwithstanding done by e.g. VMware "vmnet-xxx" deamons? c/ does anyone know wether the Apple Developer package contains detailed and useful information regarding t...

Eclipse on the Mac... using Windows keyboard shortcuts?

I'm a power Eclipse user on Linux/Windows, and the keyboard shortcuts are practically muscle memory. Just recently started developing on a Mac (love it!), using Eclipse, but was really tripped up by the use of the command key... and not all the shortcuts map over consistently. I've already re-mapped all my common shortcuts to use Ctrl, ...

Is there any reason to retain a scheduled NSTimer if you don't need to invalidate it?

I'm going back over some crufty code to tidy it up and I see I've been retaining NSTimers returned from scheduledTimerWithTimeInterval:target:selector:userInfo:repeats: and storing them in a field - then releasing and nulling the field when it fires. In some cases I use the timer to send an invalidate message to it later - but in many ca...