osx

Mac OS X Development.

Hi All, I would love to begin developing applications for the MAC OS X, although I have to idea where to start. Problem: I currently do not, and cannot afford a new MAC OS X-based computer. Solution: A very good friend loves trying out things that I've made for Windows, and also owns a MAC OS X computer, and is willing to test these ne...

Xcode Error: "Buildfile: build.xml does not exist! Build failed"

I am trying to use Xcode 3.2 for java tool development. My project has no problem building and shows it built the file build.xml fine and also shows up in file folder fine. When I try to run the .java file, I get the error: "Buildfile: build.xml does not exist! Build failed". Running "ant -find build.xml" in Terminal produces "not found"...

Opening a file in Mac OS X

I am trying to open a text file with C++ in Mac OS X but I always get a Bus error. I do not care where to put the file. I just need to read it. Am I writing its address wrong? or that Bus Error has another reason? FILE *dic; dic = fopen("DICT","rb"); dic = fopen("./DICT","rb"); dic = fopen("~/DICT","rb"); dic = fopen("~//DICT","rb")...

send key code to command line program os x bash script

I want to make a script that starts a program and then sends it key input. In psuedo-script: #!/bin/bash ./program << (PRESS CONTROL-Z) The program is running so if there were additional commands in the script they will not be reached unless say control-z terminates the program. Is this possible? From what I've found I thought it mig...

Problems using 2 simplemodal osx calls

I´m developing a webpage that contains two <p> tags (program and events), that shows two different contents. When I click the program button (it´s a <p> tag), it´s ok, it shows the table on the div´s. But, when I click the events button, again it shows the program <p> tag contents, and I want to show the events table content. I´ve read d...

Linking to libcrypto for Leopard?

Hi I am using Mac OS X 10.6 SDK and my deployment target is set to Mac OS 10.5. I'm linking to libcrypto (AquaticPrime requires this) and found out that my app doesn't launch on Leopard. The error is dyld: Library not loaded: /usr/lib/libcrypto.0.9.8.dylib I've tried the following workarounds but none of them work: Linking direct...

Oracle 10g on MacOS Snow Leopard

Hi guys, I've found this helpful tutorial on web http://blog.rayapps.com/2009/09/14/how-to-install-oracle-database-10g-on-mac-os-x-snow-leopard/ I've followed all steps, but, I've a problem with netca run. When I'll start it, crash with this error: Invalid memory access of location 00000014 eip=11069523 /opt/oracle/product/10.2.0/db...

How can I set icon for Mac OS X Bundle?

Hi! I have try to set icon for my App in the xCode. In the info.plist I wrote: <key>CFBundleIconFile</key> <string>icon</string> icon is icon.icns file 57X57 in the resources. But finally bundle does not contain an icon. When I press about my app Item in the menu bar an about window appears with my icon. What's wrong? Please hel...

cmake, gcc, cuda and -m32 wtf

Hi all I figured out that CUDA does not work in 64bit mode on my mac (or couldn't get it running so far). Therefore I decided to compile everything for 32bit. I use cmake 2.8 and added the following options add_definitions(-Wall -m32) set(CUDA_64_BIT_DEVICE_CODE OFF) set(CMAKE_MODULE_LINKER_FLAGS -m32) However when it tries to link...

Cocoa equivalent of diskEvt/kEventClassVolume?

We have a drop-down menu of volumes in our UI, and I'd like to update it when a new disk is mounted. In the Classic days, this would involve watching for a diskEvt event. In Carbon, I think this was kEventClassVolume. What's the Cocoa equivalent? (A pointer into Apple's documentation on this would satisfy the question. I've been unable ...

getting sound on .asf video on Mac OS X

When I try to open the following video: http://streaming1.hss-win.rpi.edu/ondemand/cogsci/issues_in_cs/issues_in_cogsci_02_04_2009.asf I can get it but without any sound... I tried it both inside the browser (Firefox) and in QuickTime Media player but still it does not work. Any idea how to get this to work on Mac OS X? Using version ...

How can I close a Window using the OS-X ScriptingBridge framework, from Perl?

Problem... Since MacPerl is no longer supported on 64bit perl, I am trying alternative frameworks to control Terminal.app. I am trying the ScriptingBridge, but have run into a problem passing an enumerated string to the closeSaving method using the PerlObjCBridge. I want to call: typedef enum { TerminalSaveOptionsYes = 'yes ' /* ...

(MACOSX) - Knowing whether a mounted device was mounted from a DMG

Well the title says it all - couldn't find that info using DiskArbitration or FSGetVolumeInfo/GetVolumeParms... I know that hdiutil uses a private framework called DiskImages framework, but I wouldn't want to run an external utility each time I want this info... wheres the API for this ? Thanks. ...

Simple approach to develop an text editing tool for the mac?

I come from the iPhone development world but have never developed desktop applications. Now I want to write a small but helpful text editor for helping wiring small articles. I have found that I always summarize knowledge in TextEdit in a raw, not nicely formatted manner. Next, I go through that and start forming useful sentences out o...

How can I run a Perl script on Mac OS X?

I know this is a real basic and stupid question but how do I run a Perl script on OS X? I honestly can't find the answer anywhere! Presumably I have to run a command in Terminal but what? ...

How do I build an app and framework on OS X 10.6 that can run on 10.5?

Here's my situation: I have the source code for a third-party framework that I want to include in my project. I'm developing on 10.6 but I want to support 10.5, so I have the base SDK and the deployment target set to 10.5. I can build the framework and the application, and the app runs inside Xcode and on the machine. However, it fails ...

Starting RMI server on ubuntu laptop

Hello, I wrote a server-client rmi application and I'm using MacOsX and Ubuntu laptops to test them. When I start rmiregistry and the server on MacOsX, I can see the details in the netstat that the port 1099 is open and used. Then If I try to use the RMI, using the client from Ubuntu laptop - it works fine. However, when I try things ...

How can I unzip a file in MacOS X Obj-C?

How can I unzip a file in MacOS X Obj-C? What frameworks do I need and what is the call? ...

How to Programmatically Identify a PI Font (a Dingbat) under OS X

There is a class of fonts called Pi fonts whose glyphs, under OS X, get mapped to the private Unicode space 0xF021-0xF0FF such that if you subtract 0xF000 from each unicode character to retrieve the 8-bit version of the character and be able to draw that character as if it were a standard Roman character. My question is how do I recogn...

What are some good Mercurial GUI clients for OS X?

question says it all. I really like the Brotherbard GitX fork - is there something along the same lines for Hg? ...