Re: ImageCapture + ImageKit problem...
Re: ImageCapture + ImageKit problem...
- Subject: Re: ImageCapture + ImageKit problem...
- From: Eric Matecki <email@hidden>
- Date: Fri, 24 Feb 2012 10:47:49 +0100
Hi Fritz,
On 23/02/12 21:26, Fritz Anderson wrote:
On 23 Feb 2012, at 2:12 AM, Eric Matecki wrote:
Oh, something that may be part of the problem (or of the solution...):
I don't call run on my app for multiplatform portability reasons.
Instead I call this in a customized event loop:
Alas, you are writing an application for Mac OS X. Cocoa's event loop handler is probably more than two lines long, and ImageCapture/ImageKit may depend on things your event loop does not do.
Narrow your problem down by seeing whether your app works when run as an application.
— F
I really can't call run...
Our app runs on macosx, win, linux, android, and even on macrosystem's casablanca (if you ever heard about it).
They all have different philosophies about event handling, and we have to find some common groud.
In NSApplication's doc, it is said :
Subclassing Notes
...
Methods to Override
...
Override run if you want the application to manage the main event loop differently than it does by default. (This a critical and
complex task, however, that you should only attempt with good reason.)
...
I think my reason is a good one, or at least a valid one, I can't just rewrite everything, that wouldn't make any economic sense.
So where can I find pointers as to how to override the run methods (google wasn't my friend this time...) ?
After all, it is explicitly allowed by Apple.
Thanks.
--
Eric M.
http://www.tvpaint.fr
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden