Right I'm getting a bit tired of this so hopefully you can help me sort it out once and for all.
I'm really confused about what's going on with Python on my MacBook. I'm running OS X 10.6.2 and have installed python from the website (the package that includes IDLE). This works absolutely fine, and in fact IDLE will run everything I want...
Hello,
I would like to have several custom fields from a (server) database merged into Word Processing documents, beyond the normal "mail merge" fields. I'm not finding anything like an API out of the box that allows you to do this for custom fields. This seems like it would be pretty common in business software, but I assume that's one...
I would like to iterate through a CFDictionary (CFPropertyList) and get all values on a specific level.
This would be my dictionary / property-list:
root
A
foo
0
bar
0
B
foo
10
bar
100
C
foo
20
bar
500
Using ObjC it would look something like this:
//dict is loaded wit...
I have a view based gui that contains a text field for each gui item. When I select another menu item I want my text fields to exit out of editing mode. I could not find anyway to do this in the nsTextField docs. Any ideas?
...
Still having great difficulty with this problem. Any suggestions?
I cannot find a simple tutorial online that explains the basics of NSPanel windowing as different from NSWindow.
I have an HUD window that I'd like to show as a notification & input box, but I cannot for the life of me figure out how. My attempts are below.
I know thi...
How can I compile Valgrind on Snow Leopard?
...
I'm looking for advice on the best way to implement some kind of bi-directional communication between a "server-side" application, written in Objective-C and running on a mac, and a client application running on an iPhone.
To cut a long story short, I'm adapting an existing library for use in a client-server environment. The library...
I need to virtualise Ubuntu 24/7 on my Mac. Is there a lite virtualisation piece of software that allows me to run it discretely? I do not want an interface... I will manage via SSH... I have been using VirtualBox but it always insists on having a window open... can I run a guest
OS as a service?? VMWare server looks suitable but it's ...
I'm trying to programmatically send modified keystrokes, for instance a capital "A". The problem is that the shift modifier does not seem to have any effect.
In my code, I have two events, one for the shift key down, and another for the 'm' key down.
CGEventRef mDown = CGEventCreateKeyboardEvent(NULL, (CGKeyCode)46, true);
CGEventRef ...
I'm trying to re-write an old image-viewing plugin for the mac. The old version uses QuickDraw (I said it was old) and resources (really really old) and so it doesn't work in Firefox 3.6 (which is why I'm re-writing it)
I know some Objective C, and so I figure I'm going co re-write this in that using new-fangled Mac routines and nibs, e...
I'm working on a Command Line app to help me on launchd tasks to know if a task is running by returning a BOOL, the problem comes when i need to do a command line and obtain the output for further parsing.
i'm coding it in C/C++ so i can't use NSTask for it, any ideas on how to achieve the goal?
The Command
sudo launchctl list -x [job...
I have the following code in a window controller as part of a singleton special web browser
+ (id)sharedPurchaseController {
static SomeController *sharedController = nil;
if (!sharedController) {
sharedController = [[SomeController alloc] initWithWindowNibName:@"anXIB"];
}
return sharedController;
}
- (void)a...
I have 3 questions. I am making a C++ executable to launch a Perl program I made. I will compile it for Winows, Mac OSX and Linux. It's pretty much just: system("perl progam.pl");
When compiled with Mac OSX, the program starts in ~. How would I get it to start in the dir it was launched from, or is it just a problem with the compiler?
...
I know the process id of an application in Mac OS X. How can I switch to it (using applescript, or python, or whatever)?
By "switch", I mean, put in focus.
The usual solution is to use the applescript code tell application "Foo" activate, but here the name is not useful because I have many instances of the same application running. I a...
Hi folks
I have been trying to find any way for writing asynchronously on a stream in Cocoa.
I have a set of events in my applications which will try to send data through the socket but i can't be blocked during this transmission due to design terms.
I have tried setting a delegate on the output stream and check the event NSStreamEven...
Is there anyway to have jEdits keyboard controls behave the same way that a native Mac OS app does?
By behave I mean command+left moves the caret to the start of the line, alt+left moves to the beginning of the current word etc.
...
I run a sudo gem list or gem query --local, and it only lists a portion of the gem's installed.
For instance ruby-debug is installed, I'm using it to debug stuff...but it doesn't show up in the gem list.
I've tried to run gem update —system and it doesn't do anything.
Note: if I then run a sudo gem install ruby-debug it installs succe...
Hi,
I having been googling for a way to do raw (sometimes called direct) i/o under mac os. Raw i/o turns of the operating system page cache to give the application more direct access to the disk. This is useful because some of the filestructure I am using are not efficient using LRU page replacement. It is fairly straight forward to imp...
How can I send MIDI messages out from a C++ program and have them play the sound from the General MIDI bank?
I've looked around and there doesn't seem to be a simple answer, and my brain starts to melt after reading long manuals about CoreMIDI and things like that.
I have a simple C++ game/synthesizer project, and all I want to do is, ...
hello all,
i want to install newest sqlite3 on my mac osx. i am trying this from last 6 hours but still not succeed.Here are the steps i have followed.I have tried this site
mkdir ~/src
cd ~/src
curl http://www.sqlite.org/sqlite-3.6.18.tar.gz | tar zx
cd sqlite-3.6.18
autoconf
./configure --prefix=/usr/local
make
sudo make install
//ch...