mac

Kiosk Applications - OS X programming - Multiple monitors

Hi, I've learnt Cocoa + Objective C primarily for iPhone development, and I need to utilize this skill set to build a very basic kiosk application for OS X in a couple of days. The application is basically as follows : The setup has two touch screen monitors, the app must be running full screen mode. The monitor on the right acts as a...

PHP on Mac OS X - Loading Non-Existent Extensions by Default - Erroneous phpinfo() Results?

I have enabled PHP 5.3.2 and Apache 2.2.14 on my install of Mac OS X Snow Leopard and have confirmed that I am connecting to it with a call to phpinfo(); On inital startup, it appears that ALL possible extensions are being loaded, as the call to print_r(get_loaded_extensions()) implies: Array ( [0] => Core [1] => date [2] =...

How To Connect iPhone To Mac Over Local Area Network?

Hi, I'd like to write an app that has the ability to sync an iPhone with a Mac over a local area network (wireless or otherwise). It's sort of like what Pastebot Sync does: http://tapbots.com/software/pastebot/#sync Basically, I'll have to write two programs. One for the iPhone and another for the Mac. These two programs will have to b...

Automated unzipping of files

Hello, I have a folder full of zipped files (about 200). I would like to transform this into a folder consisting only of unzipped files. What would be the easiest and quickest way to do this? Please note that I would like to remove the zipped file from the folder once it us unzipped. Also, I'm on a Mac. Thanks! ...

Populate NSForm with NSComboBoxes

So I have a task of reading from an xml file which contains a description of what form fields and comboboxes should exist in a dialog. I started by using NSForm and addentry to add the form fields, but then found out NSMatrix may be required to add combobox cells dynamically. So my questions are: 1) Since NSForm inherits from NSMatrix ...

Lilypond Mac OS X build issue

I am trying to do a clean build of Lilypond on a clean install of Mac OS X. Dependencies have been installed using Brew. I do ./configure && make all in the Lilypond dir. It gets through the configure and starts building but ends on ERROR: In procedure dynamic-link: ERROR: file: "libguile-srfi-srfi-1-v-3", message: "file not found" ...

How do I debug through system libraries on OS X?

I'm debugging a Cocoa app, which calls the system libraries. I get debug symbols for my own code, but not the system libraries, which stops me debugging any further. How can I get debug symbols for the system library. I'm using gdb, compiling against the 10.5 SDK on 10.6.4 (gcc 4.2). Here is the stack-trace I'd like to get symbols for:...

Presenting multiple views sequentially - OS X

Hi, Following up on this question: http://stackoverflow.com/questions/3800253/kiosk-applications-os-x-programming-multiple-monitors I'm an iPhone programmer just starting out with OS X programming, and I'd like to know how I can present multiple views sequentially. What I basically need to do is - Have a welcome screen with a button c...

Add text at the end of document fragments on a Mac

On a Mac, I have a directory of html files that are all document fragments. Using the TexFinderX app, I was easily able to do a find/replace and add everything at the top of the documents that I wanted (i.e. etc.) . Now I need to find a way to add the closing tags to all of the documents (i.e. ). TexFinderX does not have a way to d...

Change Default Browser Programmatically Mac OSX

How would you change the default browser programmatically on Mac OSX. For example from safari to chrome, or chrome to firefox? Thanks ...

Problem With openPanelDidEnd in PyObjC in 10.6

The following code which worked fine under OS X 10.5 now fails on 10.6: @IBAction def addButton_(self, sender): panel = NSOpenPanel.openPanel() panel.setCanChooseDirectories_(YES) panel.setAllowsMultipleSelection_(YES) try: panel.beginSheetForDirectory_file_modalForWindow_modalDelegate_didEndSelector_contextI...

NSView enterFullScreenWithOptions: scaling the NSView

Hello again, So, in reference to : http://stackoverflow.com/questions/3800253/kiosk-applications-os-x-programming-multiple-monitors I have an 800x600 NSView and I need to scale this proportionally when I enter full screen mode using NSView's enterFullScreenModeWithOptions. Right now, what's happening is the UI elements are stationary ...

Ansi C patch using dlsym compiles OK under linux but fails on Mac Os X

Hi ;-) I have build a little patch to append to a certain application and trace the invocations of some functions. Among them, malloc() and open(). I am using dlsym to store the pointer to the original symbol and replace the function name with my own. It compiles -and works- perfectly under linux. Here's the code: #define _GNU_SOURCE #...

Mac OS System 1.0 Programming Language

Hi, I started my early days programming in a Macintosh 128k (I was 10) and I don't quite remember the programming languages used. Any one does? I would like to know the different programming languages available at that time for that platform. Thanks ...

Accessing Sqlite3 database using JavaScript

Hi all, I hope someone can help me here. I am developing two apps at the minute, one iPhone, one Mac. Both have maps, the iPhone one has standard map and the Mac one has an embedded webviw that displays the map using a webpage with JavaScript. What I would like to do is to take the core data sqlite3 database from the iphone app and re...

Cannot Install Ruby Gems 1.3.7 on Mac OSX 10.6.4

I am following the instructions at http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard to install ruby 1.9.2 and rubygems 1.3.7 Everything goes smoothly until I get to the "Compile and Install RubyGems" part and enter the command line: sudo /usr/local/bin/ruby setup.rb This continually returns the followin...

Resizing Problem with a Layer-Hosting NSView

I have a layer-hosting NSView (-isFlipped = YES) with three layer-hosting subviews. The subviews are a header, a content area, and a footer. The header has a disclosure triangle which will collapse the content view and just show the header and footer stuck together. I can accomplish this pretty easily with Core Animation, but there is...

Mac Command Line - List Available Serial Ports?

on my Mac, i currently have the available serial ports: /dev/tty.usbserial-A700dYoR /dev/cu.usbserial-A700dYoR /dev/tty.Bluetooth-PDA-Sync /dev/cu.Bluetooth-PDA-Sync /dev/tty.Bluetooth-Modem /dev/cu.Bluetooth-Modem is it possible to retrieve a list of the available serial ports of the computer from the command line (terminal)? ...

Where can I put temporary files that I don't want show to the user?

Hello guys, in my Mac software I need decrypt a file and, after I do my operations on it, I will remove it. My problem is: Where can I put this file? I don't want show it to the user. ...

How to convert DATE to UNIX TIMESTAMP in shell script on MacOS

On Linux you can convert a date like "2010-10-02" to a unix timestamp in shell script by date -d "2010-10-02" "+%S" Since Mac OS does not have the equivalent -d for date. How do you go about converting a date to a unix timestamp in a shell script. ...