mac

Problem Deploying QT Jambi with web start on Mac OS X

I have a Java application, built with eclipse, that uses QTJambi. Running the application from the command line works perfectly. java -d32 -XstartOnFirstThread -jar MyApplication.jar someArg However, trying to deploy the application with WebStart is proving difficult. I've done a whole lot of reading and it seems many people have issu...

Resizing layers and its sublayers - CoreAnimation

Hi, I have a CALayer A with one sublayer B I want A to be resized (to be shrank) so I add the animations to my layer A but when I commit the animation sublayer B is not shrank. Its size remains(but its position changes as its superlayer bounds changes) How can I make my B layer to be resized along with A animation? This is what I wrote...

Does Java FileChannel.tryLock work on Mac OS X?

I have the code that similar to below. This code works fine on Windows and Linux but on Mac 10.5 and 10.6 gives java.io.Exception opertaion not supported. Many thanks for any help in this regard. try { File file = new File("FILELOCK3"); FileChannel channel = new RandomAccessFile(file, "rw").getChannel(); FileLock lock = null; ...

Names of files accessed by an application.

Hello Everyone! Any help with this problem would be fantastic. I appreciate all contributions! Let us say I'm running a daemon that is observing the behaviour of the app that has keyboard focus. I have it's PID and process name. Is there any way I can see what files that application is accessing? I'm programming in Objective-C, Cocoa ...

How to convert LWFN to TTF?

Looking for an easy (preferably free) way to convert a few Mac PostScript Type 1 (LWFN) fonts to TTF. Any ideas? ...

How do I launch a particular version of Xcode from Applescript?

I have two versions of Xcode installed, Xcode 3.2.3 and the Xcode4 developer preview. How do I ensure from Applescript that the 3.2.3 version is picked? ...

Comparing two NSMutableDictionaries

Hello fellow Computer People! I could do this myself, but was just wondering if there was a more efficient way that I haven't though of: I have two NSMutableDictionaries. Let us use these as an example: Dictionary 'Madrid' Bob : 54 Thomas : 32 Frank : 20 Dictionary 'Barcelona' Bob : 1100 Thomas : 32 Ed : 55 ...

Mac terminal Vim will only use backspace when at the end of a line

I seem to have something odd with either my Mac 10.6 terminal or my .vimrc. When I type backspace on my laptop's keyboard, it only works when the cursor is at the end of the line. Trying to delete from within a line does nothing. MacVim operates normally. Google hasn't helped because I can't even figure out what to call this behavior. ...

Accessing a site via localhost instead of IP

How do i set it up so my php files in my sites folder can be viewed with just the command localhost/ instead of the default http://10.0.1.35/~john/ the bottom one works fine but where do i need to change it so in my browser i can just enter localhost ...

What's so special about file descriptor 3 on linux?

I'm working on a server application that's going to work on Linux and Mac OS X. It goes like this: start main application fork of the controller process call lock_down() in the controller process terminate main application the controller process then forks again, creating a worker process eventually the controller keeps forking more wo...

How can I modify the control/option/command key mappings in the IntelliJ's Emacs keymap?

GNU Emacs on Mac OS X, by default, uses the control key as CTRL, and the command key as META. This drives me crazy, because my MacBook Pro contains only a single control key on the left, while I'm used to having a control key on both sides of the keyboard. With my GNU Emacs installation, I was able to modify the variables mac-control-mo...

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 ...

Making an executable bash file run when clicked

I have a bash file that does some file manipulation. I don't want to have to open the terminal every time I run it. Is there a way to make the program run when I double click it? (Like a windows .exe file) Thanks ...

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 get min-height working in Safari, Chrome on MAC

I have a page with the following CSS, it renders fine on IE and FF, but on Mac in Safari and Chrome the min-height does not seem to work and all the content collapses on top of each other when the browser page is short instead of staying extended and providing scrollbars: <style type="text/css"> html, body { height: 100%; ...

AppleScript Editor record doesn't work

I have opened the AppleScript Editor and pressed Record button. Then I run TextEdit, create a file and put some text there. When I click the Stop button in AppleScript Editor, nothing was recorded, the window is blank. What is the problem? ...

Application session in iOS?

I need to create an "login application" but i dont known about session in iOS. My application need login to my website (PHP based website) to get data. I dont known a lot about session in iPhone. Anybody can tell me how to create and manage application session in iOS? Thanks!!! ...

Get data from web in iOS.

I want to create an application send an request like "http://www.mysiteabc.com/[email protected]&amp;password=123321" and read data return from a web. Anybody can show me how to do this. Thanks ...

How to enumerate volumes on Mac OS X?

I am not very proficient in Mac OS X programming, but I am working on a Qt application which needs info about the storage devices. Basically a list of hard drives and USB thumb drives. The end result should be like a vector which contains the following info for each device: string: Label string: Mount point string: Device description (a...