Puppeting/Automating one application from another?

2010-02-16 Thread James Trankelson
Hi, I'm trying to figure out the general feasibility of the following task. Imagine I have two separate applications, running side by side. Is it possible to take all of the mouse/keyboard inputs that are going into one of these applications, and send them to the other in a way that would allow

Re: Puppeting/Automating one application from another?

2010-02-16 Thread James Trankelson
, 2010, at 18:31, James Trankelson wrote: Hi, I'm trying to figure out the general feasibility of the following task. Imagine I have two separate applications, running side by side. Is it possible to take all of the mouse/keyboard inputs that are going into one of these applications, and send

Objective C++ from Objective C

2009-02-02 Thread James Trankelson
Hi, For the majority of my OS X programming life, I've been using Objective C exclusively. However, I now have a reason to want to use some C++ standard template libraries, and have started looking into Objective C++. I've found the documentation on Objective C++ lacking, and was hoping if

Re: Objective C++ from Objective C

2009-02-02 Thread James Trankelson
results. wp On Feb 2, 2009, at 5:08 PM, James Trankelson wrote: Hi, For the majority of my OS X programming life, I've been using Objective C exclusively. However, I now have a reason to want to use some C++ standard template libraries, and have started looking into Objective C++. I've found

Re: Objective C++ from Objective C

2009-02-02 Thread James Trankelson
()); } return self; } On Feb 2, 2009, at 5:19 PM, James Trankelson wrote: I guess I should have been more clear. My Objective C++ file is named with an .mm extension. The sourcecode.cpp.objcpp specification is the XCode setting that tells the compiler how to treat the file. jim On Tue, Feb 3, 2009

Control via applicationDidFinishLaunching?

2009-01-17 Thread James Trankelson
Ok, sorry for the generic subject line, but this is a hard one to describe. Bear with me. I'm using an external framework (the Ogre graphics engine) that is very Carbon-centric. Support for Cocoa is new in this framework, and unfortunately, poorly integrated. Here's my problem: Ogre is

Re: IKImageView setImage only works once.

2009-01-14 Thread James Trankelson
wrote: On 15 Jan 2009, at 12:22 pm, James Trankelson wrote: Well, judging from how often ImageKit questions appear to be answered here, my expectations aren't high, but here goes anyway... I'm using an IKImageView and calling setImage to set its contents. The problem is that setImage only

CF equivalent of NSPortMessage?

2008-10-27 Thread James Trankelson
I've been running a multithreaded application that listens for messages from other threads within the same application. I've build a number of applications that work in this way, and they've worked well. However, I've recently been trying to write the CoreFoundation equivalent of my existing

Objective-C parameter mutation

2008-10-15 Thread James Trankelson
Hi, I have a question about method parameters in Objective C. A long time ago, I had a method like the following: -(void) foo:(float)val { } ... and when I would call it ([inst foo:0.001], for example), the value inside the foo method would NOT be 0.001. At the time, I believed there to be an

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-08 Thread James Trankelson
As I mentioned in my case, the images load fine when running through XCode, but not as a standalone binary. So, I guess the images themselves are fine. As producing an isolated test case scenario is going to be prohibitively difficult in my case, all I would like is a way to detect this happening

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-08 Thread James Trankelson
Indeed, for me, this is related to file descriptors. While it's still unclear to me exactly where the problem lies, some quick fiddling with opening the files as NSData and creating images from those appears to be bearing fruit. Thanks! -j On Fri, Aug 8, 2008 at 5:51 PM, Jean-Daniel Dupas [EMAIL

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-06 Thread James Trankelson
Hi Nicolas, David, I'm having the exact same problem. Loading collections of small images (jpeg in my case). The only slight difference for me is that if I run my application under XCode (Debug build), I don't get any errors. All of the images load fine. However, when I run the (Debug) binary,

Re: Trouble with performSelector afterDelay

2008-07-14 Thread James Trankelson
UINT_MAX; //Never release } Are there other ways objects can get released if not by retainCount? -jt On Mon, Jul 14, 2008 at 4:33 PM, Jens Alfke [EMAIL PROTECTED] wrote: On 14 Jul '08, at 11:53 AM, James Trankelson wrote: #0 0x0002606d in -[Worker release] at Worker.m:155 #1

Re: Trouble with performSelector afterDelay

2008-07-14 Thread James Trankelson
it several extraneous retain messages. -jt On Mon, Jul 14, 2008 at 6:40 PM, Ken Thomases [EMAIL PROTECTED] wrote: On Jul 14, 2008, at 5:25 PM, James Trankelson wrote: The funny thing about my Worker class is that it's a singleton, implementing the following method: - (unsigned)retainCount