I'm trying to automate a foreign OSX application using the accessibility API. Some of
the state of the application isn't available through the API, so I acquire it through
screen scraping. To do this, I need to get CGWindowID for an accessibility object with
a 'Window Role'.
Is there any direct way of acquiring CGWindowID of a 'Window R...
I'm getting close to finishing my first relatively simple Xcode project (a custom installer) and I need to do 22 builds. Yes that wasn't a typo! What's different on each build is the PRODUCT_NAME, a source file in the bundle Resources folder and a variable that says whether the software is a trial version or not.
From what I've read so...
I would like for OSX to switch audio output devices when I insert a USB headset. It should switch to the headset on insertion, and switch back to Speakers when I remove the headset.
I can't seem to find a way within the Sound preferences to do this. Is there a program out there which can handle it for me?
...
I have an application A which may or may not need to spawn an application B and will communicate with it using remote messaging (via NSConnections etc.).
While i know how to do this if B is started first, i wonder:
What is a clean cocoa-based approach of transparently starting B on demand?
(For those familiar with COM, i am effectively...
I have a NSTextView that I want to display a horizontal scroll bar. Following some leads on the internet, I have most of it working, except that I am having problems with the vertical scroll bar.
What I have done is to find the width of the longest line (in pixels with the given font) and then I resize the NSTextContainer and the NSTex...
I have a C++ application that I am porting to MacOSX (specifically, 10.6). The app makes heavy use of the C++ standard library and boost. I recently observed some breakage in the app that I'm having difficulty understanding.
Basically, the boost filesystem library throws a runtime exception when the program runs. With a bit of debugging...
Is there a way to convert .NET applications into Mac OS X applications? I am using Visual Basic 2008, and I want Mac users to use my application as well. Is it possible? If so please reply back with a link or source.
...
I have a file which was originally named 'foo' in the Finder. If I 'get info' for the file, the Finder recognizes it as "Kind: Plain text". If I rename the file as 'foo.png', Finder then recognizes it as "Kind: Portable Network Graphics image". If I rename the file as 'foo', Finder still recognizes it as "Kind: Portable Networks Graph...
I'm setting up an app to install on OS X. Previous versions of this app have been installed, and have associated a file type to open with the app in the Info.plist file in the app bundle. I have the same associations in the Info.plist for the new version of the app. I'd like to change the default app on install to use the new version wit...
I have an OS X prefpane that calls a NSAlert sheet with:
[alert beginSheetModalForWindow:[[self mainView] window] modalDelegate:self didEndSelector:@selector(unsavedChangesAlertDidEnd:returnCode:contextInfo:) contextInfo:nil];
Which shows the alert sheet attached to the System Preferences application fine, but when I click the sheet'...
Hello there,
I am a newbie learning Python/Django...
Am using the following tutorial located at:
http://bit.ly/eIdT
Created a mysite database in MySQL 5 running on Snow Leopard.
Edited the settings.py file to look like this:
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'mysite'
DATABASE_USER = 'root'
...
Hello,
I've got a simple class that I am pickling(dumping) to a file. On OS X this works fine, and on Windows this works fine.
However, while on windows I can load/unpickle the object fine - when windows then pickles this file and saves it back to disk, it becomes unreadable on OS X (although in Windows it still behaves as normal).
Th...
How to read OSX .plist files from Java? Thank you in advance!
...
I am building an application using CoreData which will require me to store an array of floating point numbers against instances of an Entity, and then fetch a selection of these entities in order of the (say) manhattan distance between their respective matrices.
Here is a rough diagram of something like what I mean:
Entity: {
name: '...
Hi!
Is there an API that will let me reproduce the blue round email address bubbles easily? You see these bubbles in Mail on MacOS and on the iPhone.
Thanks!
...
I have a Perl script that does a fork/exec to start another tool in the background and monitor some file system changes while this other tool is running. This seems to work like expected.
When I start this Perl script from a shell (e.g. Bash), of course the shell prompt should be gone for as long as my Perl script is running. And it wil...
Whenever I install a library that requires using subdirectories, it seems like I have to go to chmod hell. How can I make it where all subdirectories are accessible by PHP?
C:\Library\Webserver\Documents is the current root of my webserver.
...
I just set up a fresh Mac OS X 10.5 environment for Rails. I installed Ruby 1.8.7, renamed the packaged version of Ruby in /usr/bin, and updated the packaged version of RubyGems from 1.0.1 to 1.3.4. Here's the flow:
$ rails -v
Rails 2.3.4
$ gem -v
1.3.4
$ which gem
/usr/bin/gem
$ whereis gem
/usr/bin/gem
$ which rails
/usr/bin/rails
...
hey i am new to the macports thing as i recently switched to the mac. as i was thinking of developing some applications in my mac i wanted all the usual gnu and opensource tools i need. but i had a small confusion. i was installing git with macports and i noticied it installed a lot of packages like Perl that i already have in my machne....
i have a unix c programming assignment in which i do some advanced C network programming.this is my first step into advance programming. so i was wondering what is the best combination of tools for this on a mac. using an IDE like Eclipse is how i'd normally do it but i have to make my own makefiles and stuff. so i would like to learn ho...