mac

Disable PHP mailing on Mac OS?

I'm developing a web application in PHP, and my Macbook, running Snow Leopard, is actually sending emails when PHP's mail() function is called. It's emailing customers, and that's BAD. I COULD prevent this in my code, but I'd rather just disable mailing for my machine. Is there a way to do this under Mac OS? ...

What are the arrow brackets "<…>" in an Obj-C class interface for?

Can anyone tell me what the arrow brackets "<…>" in an Obj-C class interface do? Like this… http://snipt.net/robhawkes/cocoa-class-interface @interface MapMeViewController : UIViewController <CLLocationManagerDelegate, MKReverseGeocoderDelegate, MKMapViewDelegate, UIAlertViewDelegate> { I've previous programming experience with web la...

Mac OpenGL : No sound volume overlay in fullscreen

I have an OpenGL-based app that can run windowed or fullscreen in OS X 10.5. While in windowed mode, pressing the volume keys in the keyboard changes the volume setting (mute/unmute for example) and the OSX-drawn speaker icon overlay is drawn, as it happens with every other application. However, in full screen mode, pressing the keys d...

Making a Method be triggered when a row is selected in a Table View.

How would I trigger a Method when a row in a Table View is selected? ...

Finding out if a Window is Resizable

Is there a way to determine whether the active window (not of my process, but a different application) is resizable? Edit: I would prefer to do this without applescript as it then depends on the application being scriptable. ...

Java3d + osx + netbeans

Hi, I have a java3d project that was developed on solaris that I am trying to move onto my macbook for a variety of reasons (1 being that our solaris machines are painfully slow). Basically what I want is to use osx + netbeans for this project but it seems to reference java3d methods that are not included in the outdated version of jav...

Snow Leopard Style Pop-Ups

Is there a framework that draws Snow Leopard style popups? For an example of what I am talking about, try right clicking something in the dock. I basically want to be able to give a starting point (where the arrow forms) and then a size and have it do the rest. In this case it's a menu, though my use would be more of just for drawing a ...

How easy (or difficult) is it to migrate to a development environment on Mac from Ubuntu

I am used to Ubuntu, I like it, I know my way around it. I am looking forward to upgrade my work laptop. I find the awesome hardware that a Macbook Pro is made of, a turn-on. Now, having never used a mac before, I'd like to know how easy it is to move my development environment to a mac from being on Ubuntu. My work is primarily web ...

Binary Java 7 for Mac

Is there any binary release of Java 7 (using the Mac/BSD-port project) anywhere? Some blogs (e.g. Building Java 7 on Mac OS X) have a detailed instructions to build the jdk from source, but I was hoping that someone have a binary of it available for download. The problem with the instructions is that it's quite annoying to get all the ...

How do I add the symfony utility to my PATH variable?

I'm running the latest MAMP (i think so) on my Mac (10.5.8, PPC G4) and i added the following to my .profile - file in my home directory: export PATH=/Applications/MAMP/htdocs/lib/vendor/symfony/data/bin:$PATH But my Terminal is somehow unable to find the command, and all i get is the following errors: : command not found : command n...

python-config ldflags on mac

I have a problem with python-config --ldflags on OS X 10.6.2. Using my non-system python.org python install: robin-mbp:~ robince$ which python /Library/Frameworks/Python.framework/Versions/2.5/bin/python robin-mbp:~ robince$ python-config --ldflags -L/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config -ldl -lpython2....

Is it possible to launch an external image editor from Textmate?

Is it possible to launch an external image editor from the TextMate project drawer? I suppose the same concept would apply to launching any external editor from TextMate. Right now, if I right-click on the image file, I only have an option to open in Preview or Finder. Thanks! ...

How to REALLY strip a binary in MacOs

MacOs 10.6, if I have a file "unwanted.c" which contains: class secret_thing { public: secret_thing() {} void revealing_method_name() {} }; main() { secret_thing obj; obj.revealing_method_name(); } Now I do: $ g++ unwanted.c -o unwanted $ strip unwanted $ nm unwanted | grep secret 0000000100000eb8 T __ZN12secret_thing21revea...

How do you listen to notifications from iTunes on a Mac (Using the NSDistributedNotificationCenter)

Hello All, Looking for help/tutorials/sample code of using python to listen to distributed notifications from applications on a mac. I know the py-objc lib is the bridge between python and mac/cocoa classes, and the Foundation library can be used to add observers, but looking for examples or tutorials on how to use this to monitor iTune...

Accessing main program global variables from a dlopen()ed dynamic library in C on OS X

I am maintaining a small application that has some plugin-like functionality, which is implemented through runtime-loaded dynamic modules. Specifically, since it's a Gtk+ app, I'm using gmodule, but the question applies to dlfcn.h / dlopen() based dynamic library loading just as well. My main program has a single, global struct variab...

In Mono, how do I get the path to the Documents folder on a Mac (Snow Leopard)?

I'm writing a Mono application and would like to find the full path of the Documents folder - e.g. /Users/johnsmith/Documents/. What's the best way to achieve this? ...

Non-modal windows memory management

Hi, I'm a newbie in Mac Dev. I come from iPhone dev. My question relates to non-modal windows management. It's quite different from the iPhone and it's memory management model. Say for example, i have a preference window, i can use something like that to show the window: -(IBAction)showPreferenceController:(id)sender { if (!preferenc...

NetBeans and PHP on the Mac: How to set it up?

I'm new to this and want to start coding PHP with NetBeans. Is there a step-by-step instruction on how to set this up? ...

Do I really need the Java Development Kit (JDK) when I want to develop PHP with NetBeans on the Mac?

The NetBeans people say that I need a Java Development Kit (JDK) 5 or 6 when I want to develop PHP with NetBeans on the Mac... see: "To complete this tutorial, you need the following software and resources." Now that sounds very strange to me. Must I really get that and spend some hours installing it? Why? What does Java have to do wit...

Where can I download Xdebug for PHP and Mac OS X?

I went to the xdebug site, but I can't find a mac download. http://www.xdebug.org/download.php Did I miss something? NetBeans tells me to get xdebug for setting up an PHP development environment on the mac. ...