osx

Easiest way to connect iPhone and Mac over WiFi with "server client" model

Hi there, I am interested in creating a server application on the Mac and a client application on the iPhone. The iPhone would send commands to the Mac through this connection. What's the easiest way to do this? I've seen NS/CFNetServices discussed here: http://stackoverflow.com/questions/1848525/ad-hoc-wifi-connection-between-iphone-...

Using HandVU with OpenCV on Mac OS X 10.6.3

Hi, I've tried to user HandVU with OpenCV but when I tried to run "hvOpenCV config/default.conductor" I get a "Segmentation fault". Anybody know this problem? macbook:handvu-beta3 User$ hvOpenCV config/default.conductor will load conductor from file: config/default.conductor Segmentation fault I installed OpenCV through http://openc...

Mac OS X bluetooth programming sample ?

Hi, I am trying to develop an application using bluetooth in my MAC mini. However, after searching all over net, all that I could find was the "Bluetooth Device Access Guide" from apple, and not a single sample program ! Is any sample code for this available ? I will also explain what I am trying to do in my program, so that if any of y...

JNI call to Intel or PPC arch jnilib function differs

I am making a call from within Java to a jnilib function and get different logs on PPC and Intel. My function definitions are as follows: private native int initHandler(long vendorID, long productID); JNIEXPORT jint JNICALL Java_com_sue_protocol_SerialPortObserverThread_initHandler( JNIEnv *env, jobject obj, jlong usbVendor, jlong usbP...

Xcode: How-to create a Terminal window inside my application?

Hi, While I am playing with Rubycocoa, I created a small application that works like a charm. However, the only thing missing is like a Terminal inside my application. In Coda, there is a similar kind of view that allows you to open up a terminal session. How would I create a Terminal view like this inside Interface Builder and Xcode? ...

Starting gitk Error

When I'm loading gitk I get an error about an argument Error in startup script: bad argument "zoomed": must be normal, iconic, or withdrawn while executing "wm state . $geometry(state)" (procedure "makewindow" line 320) invoked from within "makewindow" (file "/usr/local/git/bin/gitk" line 11250) Anybody knows a solutio...

OSX, G/AWK, Bash - "illegal statement, unterminated string" and no file output.

I have a script that somebody from SO kindly provided to solve an issue I was having, However, I'm having some issues getting it to work on OSX. gawk --version GNU Awk 3.1.6 awk --version awk version 20100208 The original source is: awk -F, -vOFS=, -vc=1 ' NR == 1 { for (i=1; i<NF; i++) { if ($i != "") { g[c]...

Automatically install and launch a code-signed application from Safari

Is it possible and if so what are the steps necessary to package (or build) a Mac OS X application and code-sign it so that it can be downloaded with Safari and automatically launch? ... possibly after the user responds to some sort of dialog explaining that it is a signed application and the publisher has been verified. An example of t...

Inserting # character in OS X terminal when using "option as meta key"

I'm using the option key as meta key in my terminals but since I am using a UK keyboard this means that I can't use alt-3 (AKA option-3) to insert a '#' (hash/pound) characte. I don't want to turn option-as-meta off since I use the functionality it provides. Does anyone know how I can insert '#' characters in this situation? ...

Expanding all items of a NSOutlineView that loads data from a data source

First of all I'm new to cocoa development so I suppose I'm probably trying to do this the wrong way, but here goes: I have a NSOutlineView which loads the data from a NSOutlineViewDataSource imnplementation. I want all the items to be expanded after they are loaded, but i can't seem to find an event fired when the data has finished loadi...

Getting libjpeg/libTIFF.dylib error after recompiling php in OS X 10.6.3 Server

I've recompiled php 5.3.0 under OS X Server (10.6.3) in order to gain Freetype support in GD. As part of the process, I recompiled libjpeg-8a (and before that I tried libjpeg-7). But when I run apachectcl configtest, I get the following error: httpd: Syntax error on line 155 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/...

how to ignore hotkeys in os x

Hi, do the Mac OS X APIs provide a method to ignore all systemwide hotkeys? I'm currently researching how to build a kiosk-mode like application. I searched the OS X Developer documentation and tried google (combinations of [cocoa, carbon, os x, ignore, global, hotkey, kiosk, event]), but nothing turned up yet. I know this has been d...

Python: OSX Library for fast full screen jpg/png display

Frustrated by lack of a simple ACDSee equivalent for OS X, I'm looking to hack one up for myself. I'm looking for a gui library that accommodates: Full screen image display High quality image fit-to-screen (for display) Low memory usage Fast display Reasonable learning curve (the simpler the better) Looks like there are several choic...

Tool to monitor HTTP traffic

I have an application on my iPhone which sends out Http requests; is it possible to look into the HTTP stream using some tool?? I use standalone version of (IEInspector's) HttpAnalyzer tool on my windows PC to monitor HTTP traffic from all processes including the apps on Android phone (thanks to android debug bridge interface). Is there...

Is there a way to remove the source domain from the window title in an out-of-browser Silverlight 3 app?

We may not have the option to migrate over to Silverlight 4 right away, so I was wondering if anyone found a way to remove the source domain name from the window's title for out-of-browser Silverlight 3 applications. Our window title currently looks like this: "My App - localhost." Under Mac, I found the Info.plist file in the applicat...

Ruby Rails Mongrel Sever failing to serve OXS1.6

Hi there I'm fairly new to Rails and the Mac, and doing my first deploy... I'm trying to set up my rails app on a brand new Apple mini-server running OXS1.6 (Snow Leopard). It is currently running fine on my new iMac i7 (same OS). I start mongrel with this command: mongrel_rails start -e production -p 3000 -d -a 127.0.0.1 --debug A...

Should I talk about "pixels" when talking about the size of views in iPhone OS?

Actually, iPhone OS has an resolution independent measurement for view sizes. It's not really pixels, isn't it? For example, I could make a view 10.55f width, which is blended into fractional pixels then. But what's the name of that "unit" actually. Can we talk about "Units"? Or is that too generic or even wrong? Can we talk about "Unit...

How to programmatically detect Mac OS X Server Edition?

Is anybody knows any API that can help to distinguish Mac OS X "Server edition" from "Desktop edition"? My application should know on which edition of Mac OS X it currently running. (Server or Desktop) ...

NSOutlineview - strange behavior after reloading data

I have a NSOutlineView which loads data from a data source. The table is displayed in a panel. The items shown in the table are items which belong to an object (the relation is one-to many between the object and the items). I have a list of objects in a combo box (in fact a NSPopupButton), and when I select another object in the combo ...

What is happening to NCurses and OS X 10.6?

Apparently libncurses...dylib is broken OS X 10.6.3 relative to Mutt, and perhaps other applications, that use ncurses, although it works in 10.6 (as I can attest) and reportedly it works in 10.6.2. Does anyone know if this is a bug or a feature in the view of Apple? If a feature, is there a workaround for people who want to upgrade 10...