osx

Why can't I delete the entries file in a .svn directory from the command line?

First this is all done on Mac OS X, ver 10.6.4 I copied a file tree, which included some java code that had been checked out of subversion. I wanted to delete all the .svn files in that tree. So I used the following command: find . -name .svn -exec rm -fr .svn {} \; And I got messages like this: rm: ./repository/entity/.svn: Direct...

Is there a way to send data to another process's standard input under Mac OS?

Hey guys, I was wondering if there was an API, however obscure it would be, that would allow someone to send data to another process's stdin stream under Mac OS X. Under Linux, if I remember correctly, you can use the filesystem in /proc to access these streams (with the correct permissions, of course). I dunno. Mach ports, anyone? ...

Problem creating friendly SEO URLs on local server

I'm having problems implementing friendly SEO urls on my local (Mac OS X Snow Leopard) development server. *Note: site.com is just an example (1) Currently my site's root is set up with a virtual host pointing to a sub-directory of my Sites folder. (2) Pages are currently being accessed in the following format: http://site.com/index.p...

CFBundleDevelopmentRegion not works as expected

I've added several localizations to my osx applications. English Simplified Chinese Traditional Chinese Italian French and then trying to test other localization without change system language(default is English). but no matter which language I set in the key CFBundleDevelopmentRegion at info.plist file. it always shows me the defa...

add openjdk-7 to Spring Tools Suite in Mac OS X 10.5

I've successfully added Landon Fullers compile of OpenJDK 7 on Leopard PPC (64-bit G5) in "/usr/local//usr/local/openjdk7-macppc-2009-12-16-b4" and a "java-1.7.0" alias and executing "java -version" at least works fine. However, I can't add the JVM to Spring Tools Suite (which is Eclipse basically). I get the dreaded "Standard VM not s...

autospec can't run tests after touching a file.

I've got two files in app/views/users -rw-r--r-- 1 create.html.erb -rw-r--r--@ 1 new.html.erb With autospec running and all my tests passing, I touch 'new.html.erb' and and growl notifies my that my tests can't run and autospec outputs: 0 examples, 0 failures If I start autospec again all my tests pass. If I touch 'create.html.erb...

Change iPhone Simulator's window position on my MacBook Pro dual screen setup?

iPhone Simulator is version 4.0 (211.1) I know, this is a weird question for S.O., but I figured if anyone has seen this, it would be someone here. I have a MacBook Pro with a 22" lcd attached. I run the 22" as my "main" screen with the dock and I use the MBP's display as a secondary. I want the iPhone Simulator to run on the actual ...

Is there a way to make Textedit the default editor for text files opened in the terminal?

It there a way to make files opened for editing in the terminal open in Textedit instead? I mean, where a command might open a file for editing (like git commit), instead of opening that file in vi or emacs, it would open in Textedit (or perhaps another Textediting application of you choosing, such as Coda). And as a bonus question, is...

Does MonoTouch work on a virtualized Mac OS?

Is it possible to install it on VirtualBox or other virtualization solution? If yes, how fast it works? ...

Can Adobe AIR 2+ mimic the Mac OSX behavior for "Hide Window" when providing a custom native menu?

In my Flex 4/Adobe AIR 2 application I am using a FlexNativeMenu on my WindowedApplication to set a lot of customized menus. I would like to keep the original "Hide " menu option from the applications root menu in OSX. Without it my app breaks the expected behavior for users and ends up frustrating me. I see there is a function called...

How to use multiple Help Books in a Cocoa Application

I managed to setup the the online help system for the main application help which is using the CFBundleHelpBookFolder and CFBundleHelpBookName from the bundle Info.plist. But i can't display other help files. I use the following AHRegisterHelpBook code which gets called with the help bundle path like "/Users/llothar/Python.help". The ...

What do I need to do to get this OpenGL superbible vertex shader to compile on OS X?

The OpenGL Superbible 5th Edition was recently released, and it documents OpenGL 3.3. Unfortunately, OS X only supports OpenGL 2.1 and GLSL version 1.20. The very first non-trivial vertex shader they give you fails to compile with the error message: ERROR: 0:5: '' : Version number not supported by GL2 ERROR: 0:8: 'in' : syntax error...

Add HTML Signature to Mail on Osx

Hi, can anybody tell me how to add a HTML Signature with Images to Mail 3.6 on OsX? I tried following this tutorial: http://theappleblog.com/2009/08/07/how-to-getting-more-from-mail-with-html-signatures/ but none of the text in the example appears in the signature. It just stays blank. Greetz Spanky ...

how do I observe keyboard input event while the applicaion is not actived.

how do I observe keyboard input event while the applicaion is not actived. ...

Cocoa + WebView - Application window doesn't catch all clicks - sometimes clicks "jump through" to background windows

Hi, I have a cocoa based app with only a webview catching the entire window. Sometimes when I click on stuff on the page loaded by the webview - the click seems to "jump through" and arrive to the window behind mine, instead of being handled by my window/webview. The phenomena seems sporadic and I don't really have a clue why this is h...

How do you re-order a window to be on top of all others in cocoa?

I want my application to become the top-level window on the OSX desktop when it needs to display important information. How would you go about doing this in cocoa? ...

Why are the python.org OS X installers built with gcc-4.0?

In answering SO question 3500638, Ned Deily states that the Apple-supplied Pythons (2.5.4 and 2.6.5) are both built with gcc-4.2. However, all three of the python.org OS X Pythons (2.6.5, 2.7, 3.1.2) are built using gcc-4.0. Questions Why are the python.org Pythons (2.6.5, 2.7, 3.1.2) built using gcc-4.0? What are the gotchas of usin...

OpenCV -- record browser window instead of capturing camera output?

I'm trying to get started with OpenCV by trying to write a simple screen recorder -- one that can perform continuous or polled capture of a GUI window on Mac. For example, I could capture the client area of a browser window. I'm sure this is possible, but I don't know where to start -- any pointers? Is the framegrabber to read the GUI...

Setting Up PHP & SQLite with a "Command Script"?

Hi, I'm trying to setup PHP & SQLite on my mac with by following this page: http://developer.apple.com/mac/articles/internet/phpeasyway.html. The code posted on the site is supposed to be run in a command script but I don't know how to make that happen. I've tried making a bash script and an applescript but both of those give errors. Any...

NSPasteboard setString:forType: returns NO under Leopard, fine in Snow Leopard

The following code is from a NSTableViewDataSource where I'm trying to impliement drag and drop. Can someone tell me why the setString:forTypes: method in the following code returns NO under Leopard? It works fine in Snow Leopard. I checked the "Pasteboard Programming Topics for Cocoa" legacy document but I can't figure out what I'm doi...