osx

MySQL_Python on Snow Leopard

Hi, I've tried to solve this myself searching and searching but I can't get it to work. :( I'm in Snow Leopard 10.6.4 and tried to setup my Django environment, first I upgraded my python to 2.6.5, installed django and then mysql_python. All seems to be smooth until I to connect to mysql using syncdb. Got this error/trace message: djang...

how can i see raw serial data from a bluetooh connection on a mac?

Hello, I want to see the data flow from a connected bluetooth device. I figure I should be able to see the raw data in the terminal somehow, but I cannot seem to find out how to do this. I'm running Snow Leopard on a MacBook Thanks. ...

Haskell SDL on OS X

SDL on OS X uses preprocessor tricks to overload main() with their own entry point, written in Objective C, which calls the user's main. These tricks make the lives of non-C SDL users (e.g: the Haskell bindings) very difficult. Is there a good reason for this? Why couldn't SDL do the objective-C Cocoa initialization in SDL_init? ...

How do I open a Open File dialog in OS X using C++?

I'm working on an application using OpenGL and C++ that parses some structured input from a file and displays it graphically. I'd like to start an Open File dialog when the application loads to allow the user to choose the file they want to have displayed. I haven't been able to find what I need on the web. Is there a way to achieve this...

Drawing an "NSView" to a Custom-View - How? Am I taking the right approach?

I'm using Objective-C and Cocoa, whilst developing for Mac OS X - so not the iPhone/Cocoa Touch. (That said, I'd be interested if it was the same procedure for the iPhone) I'm working on a preferences window for a simple app. I have a NSWindow with a toolbar - there are 5 different items on the toolbar, all of which need to bring up a d...

Creating Bonjour services for the Finder

I am playing around a bit with Bonjour and for prototyping I use the Pybonjour library, which seemed to work like a charm for my first trials. However, when I try to create a service that is visible in Finder, I fail hard. I used this page as a reference for the service identifiers to use. The document specifies which services are browse...

Is it possible to map an address to the result of a function?

Hey guy, I'm writing a NES emulator in C/C++ for Mac OS (I've already written one, so I know the basics). Since many hardware registers are mapped to memory locations, I was wondering if there was some syscall I could use to map an address to the result of a function: when it would be accessed, the function would be called. (I'm pretty ...

is mac good for python programming ?

I am programming a django based website. I actually use a small computer under Ubuntu 10.04. I would like to buy something more professional, so I am wondering whether an iMac is good for that, because : Is there a free IDE as good as eclipse on MacOS ? Is there a remote python debugger like pydev for eclipse ? Is there some typical is...

Draw over screen with Quartz

Hi, I'm trying to work out what the best way to draw over the top of all other items on the screen on OS X. I don't want to impede the user's ability to interact with their applications, but want to 'annotate' them. I want to be able to draw up to 20 different annotations. The top half of this screenshot from Gizmodo happens to nicely s...

Cocoa/Iphone dev - target/action mechanism

Hi, I started learning Iphone development. As i'm reading about the cocoa development framework, few principal notions came around and with it a little bit of confusion. I want to make sure I understand things right and to get a little clarification : Delegate - basically the strategy design pattern. I set my class delegate and data so...

swprintf chokes on characters outside 8-bit range

This happens on OS X, though I suspect it applies to any UNIX-y OS. I have two strings that look like this: const wchar_t *test1 = (const wchar_t *)"\x44\x00\x00\x00\x73\x00\x00\x00\x00\x00\x00\x00"; const wchar_t *test2 = (const wchar_t *)"\x44\x00\x00\x00\x19\x20\x00\x00\x73\x00\x00\x00\x00\x00\x00\x00"; In the debugger, test1 look...

How do I test sending email from a web applicatoin on OSX?

I have a Django application running locally and I'd like to test the "send_mail()" functionality. Currently, I'm able to turn on postfix using the following command in Terminal: sudo postfix start Once I turn on postfix, I run the following command in Terminal: telnet localhost 25 Those two steps seem to be working because the "se...

Tomcat 6.0 on Mac OS X

Hey, I'm trying to run Apache Tomcat 6.0.26 on Mac OS X - Snow Leopard, but with no luck :( I've downloaded Tomcat core from: http://tomcat.apache.org/download-60.cgi unarchived it at /Livrary/Tomcat directory, but when I'm trying to run it using ./bin/startup.sh command from log/catalina.out logs it seem's that it can't find servlet-ap...

How to make a droplet on mac osx with automator?

I readed some tutorials about making droplets with apple script or with automator's help. First, I need to know if these droplets only works with the drag n drop file action, or if you can do the action in the current directory you are.And if the last answer is yes, how to do with automator? This was a general question. In my case. I ne...

How to access windows hierarchy for my application on Mac?

I mean all the windows which belong to my application (process). I need to get something like (NSWindow *) for all of them. Notice, some windows were created by third-party plug-ins and are not accessible by [NSApp windows]. Yes, I know, Quartz Window Services can return all the windows by PID. But how can I get NSWindow by CGWindowID th...

develop android apps in xcode

hi im trying to develop an android app in xcode. ive downloaded java, java jdk and the android sdk and have loaded a half finished (but working with no errors) app. i also changed the target to: Build Tool: /usr/bin/ant Arguments: install but when i try to build it i get Build file build.xml does not exist i couldn't figure...

Getting error code from GetEventParameter

Here is a snippet of code I have to handle smooth scrolling. here is the output of the NSLog: 2010-06-21 16:04:10.524 PDFViewWXOSX[80161:a0f] first error: -9870 2010-06-21 16:04:10.525 PDFViewWXOSX[80161:a0f] second error: 0 2010-06-21 16:04:10.552 PDFViewWXOSX[80161:a0f] first error: 0 2010-06-21 16:04:10.553 PDFViewWXOSX[80161:a0f] se...

Align four Quicktime (.MOV) files by their audio signals and play back simultaneously?

Greetings, Does anyone know a way to align four Quicktime (.MOV) files by their audio signals and then play them back, simultaneously as videos, on Mac OS 10.6? Thanks! ...

Copy files to network path or drive using python on OSX

I have a similar question like the one asked here but I need it to work on OSX. http://stackoverflow.com/questions/2625877/copy-files-to-nework-path-or-drive-using-python So i want to save a file on a SMB network share. Can this be done? Thanks! ...

How to split pdf using objective-c?

I have implemented one desktop application(MAC). Now i want to add split pdf functionality.I dont know how to implement. If any resources available then please advice me. Thanks in advance. ...