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 m

Re: Puppeting/Automating one application from another?

2010-02-16 Thread James Trankelson
I don't feel like that's the same thing. In the case of Remote Desktop and VNC, the mouse and keyboard events are certainly being redirected to another desktop, but only one application has the focus. On Tue, Feb 16, 2010 at 8:15 PM, Laurent Daudelin wrote: > On Feb 16, 2010, at

Trouble with performSelector afterDelay

2008-07-14 Thread James Trankelson
Hi, I've been experiencing some strangeness that I can't seem to understand surrounding my use of performSelector afterDelay. The situation is as follows. I have a class, 'Listener', that, when initialized, spawns a thread to listen on a port: class Listener: - (id) init { self = [super init]

Re: Trouble with performSelector afterDelay

2008-07-14 Thread James Trankelson
nt { return 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 i

Re: Trouble with performSelector afterDelay

2008-07-14 Thread James Trankelson
nding 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 f

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, I'

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 s

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

IKImageView setImage only works once.

2009-01-14 Thread James Trankelson
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 works the first time. Subsequent calls don't update the image. The

Re: IKImageView setImage only works once.

2009-01-14 Thread James Trankelson
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. &g

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 distribute

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 someone

Re: Objective C++ from Objective C

2009-02-02 Thread James Trankelson
if you get > better 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 >> s

Re: Objective C++ from Objective C

2009-02-02 Thread James Trankelson
f) > { > std::list temp; > temp.push_back(42); > NSLog(@"The list contains %d item(s)", temp.size()); > } > > return self; > } > > On Feb 2, 2009, at 5:19 PM, James Trankelson wrote: > > I guess I should have been more clear. > > My

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 Ob

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 mechan