osx

Emacs 23, OS X, multi-tty and emacsclient

How can I get emacs 23 working nicely in multi-tty mode on OS X? I've added (server-start) to my .emacs, and have discovered that running /Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n ~/myfile.txt will open it in my emacs.app, but it doesn't bring emacs to the front. So, how can I get emacs.app to come to the front when I r...

Python Opencv Ubuntu not creating Windows

I have a strange problem with opencv running on an Ubuntu. I installed OpenCV from the apt sources. And most of the Examples work fine. But in my programs, which are working with Mac OS, no windows are created. The following code is showing a window and an image in this on my Mac but not on my Ubuntu powered machine import time from o...

java.awt.Frame.setBackground() not working in OS X

I'm trying to iron out some UI rendering bugs in my java applet in OS X, and I've hit one that I can't figure out. All the windows that we open that extend java.awt.Frame seem to ignore the setBackground() calls, and instead use the OS X default (brushed metal or gray gradient, depending on the OS version). Anything we open that extend...

Leopard Terminal (and iTerm) Ignores Control Key Combos

I am very used to using ctrl+a, ctrl+e, ctrl+l, etc. as shortcuts to operations (beginning of line, end of line, clear terminal, etc). I cannot for the life of me get this working with either Terminal.app or iTerm on OS 10.5. I know for a fact that it works in Tiger and I even know some other Leopard users who don't have any problems, b...

httpd.conf virtual host not working

I've added this: <VirtualHost *:8888> ServerName dietron DocumentRoot /Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/htdocs <Directory /Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/htdocs> AllowOverride All Options All </Directory> php_value inclu...

Editing large files on Mac OS X

Does anyone have any recommendations for a programmer's editor that can cope with large files on Mac OS X? By large I mean hundreds of megabytes. TextMate doesn't cut it. ...

Problem with Zend Framework Quickstart Tutorial and version 1.8.2

I'm trying to work through the quick start tutorial of the Zend Framework version 1.8.2, but I'm getting an error when running this code: zf.sh create project quickstart error: expecting `'{'' in /Users/andrew/Sites/_library/ZendFramework-1.8.2/library/Zend/Tool/Framework/Client/Console.php on line 63 I'm doing this on Mac OS X 10.4. ...

MacBook Trackpad Gestures: Move Windows like in Minority Report

With the MacBook Trackpad I can scroll documents by using two fingers or zoom into the screen with two fingers and Ctrl pressed. What could be very useful is to move the currently active window with a similar gesture (3 fingers, or 2 fingers + modifier key). Is there an existing tool, script that allows this behaviour? If not, would th...

Cant focus WxWidgets frame in Mac OSX compiled with SCons

Hello. I have this WxWidgets test source code that compiles, and when run, it shows a simple frame: /* * hworld.cpp * Hello world sample by Robert Roebling */ #include "wx-2.8/wx/wx.h" class MyApp: public wxApp { virtual bool OnInit(); }; class MyFrame: public wxFrame { public: MyFrame(const wxString& title, const wxPoin...

Subversion: error on checkout - Mac OS 10.5

I'm running Mac OS 10.5 I'm trying to do a checkout of a online repository to a local folder, using the svn checkout command: svn checkout [url] --username [username] --password [password] [targetfolder] It starts adding files to my new working directory as expected, but then throws the following error: svn: In directory 'svn/trunk/...

How do I create a lock/unlock button and behavior in my secure preference pane?

Is there a guide out there for imitating the Lock/Unlock button and behavior of the secure Apple preference panes? (e.g. Network) ...

How to replace "ld --exclude-libs" on Mac OS X?

We're trying to port a commercial SDK software from Linux to Mac OS X and we're running into the problem that ld on Mac OS X does not support the --exclude-libs switch which we use on the linux side. We are linking in static libraries, object files to create a shared library. We want to only expose symbols marked with: #define EXPORT_...

How to set up USB CDC drivers on Mac OS X?

I have a custom-built USB CDC device. If I plug it into a Windows box (2k, XP, Vista), up pops the Found New Hardware Wizard and I can point it at my .inf file, which supplies a mapping from the USB VID and PID to the USB driver (in this case the inbuilt usbser.sys). Then it appears as a virtual COM port and I can set up dial-up networki...

Is anything required to get a Quartz callback besides registering for it?

I'm trying to use CGDisplayRegisterReconfigurationCallback to get display reconfiguration events in Quartz on Mac OS X. Here's the super-simple code: void CB(CGDirectDisplayID display, CGDisplayChangeSummaryFlags flags, void *userInfo) { std::cout << "In callback!" << std::endl; } int main (int argc, char * const argv[])...

How can I create a 'source list' on Mac OS X?

The Apple guidelines talk about using a source list - how do I create this source list, either in Carbon or Cocoa? Is there an official API somewhere for this component? ...

CFNetwork HTTP timeout?

I am looking for a way to add a timeout to a CFHTTP request. It seems like there should be a feature of the CFHTTPMessage or the CFReadStream object, but I can't find it. Do I have to roll my own timer on the run loop or something? (if so, any code for this?) Thanks! ...

OSX Audio Hijack style audio recording from other applications (cocoa)

Hi basically I am lost in apples documentation and not sure where to start on this. I need to record the audio from applications running on my system, similar to audio hijack and wiretap studio pro, but I am unsure where to start with the audio captuer. I see reference to quicktime capture documentation but it is not clear how to achei...

Get text field info out of loaded webpage - Mac OS X Development

Hi, I am a newbie in the Mac world. I need to create an app that is able to extract information entered on a web page, from text fields. My app will load a webpage hosted somewhere, and within the webpage there will be a a series of text fields and a submit button. Once the button is clicked, I must be able to read the information ente...

Recommended method to create a "table" using core-animation?

What would be the recommended method to create a "table" like display (columns, rows, header and footer) using core-animation, which I can "build" using animations? I've got my data to hand in an NSDictionary and I've started laying things out, but I feel I'm probably not doing it optimally; I'm creating nested sets of CALayers and wor...

Using readline's rl_insert_text on OS X 10.5

So, I'm trying to stuff some default text into a user input using readline, and having trouble getting it to work on OSX 10.5: // rl_insert_text_ex.c // gcc -o rl_insert_text_ex rl_insert_text_ex.c -lreadline #include <stdio.h> #include <readline/readline.h> int my_startup_hook(void) { return rl_insert_text("ponycorns"); } int main(i...