• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ImageCapture + ImageKit problem...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ImageCapture + ImageKit problem...


  • Subject: Re: ImageCapture + ImageKit problem...
  • From: Eric Matecki <email@hidden>
  • Date: Fri, 24 Feb 2012 15:25:13 +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 ground.

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


References: 
 >ImageCapture + ImageKit problem... (From: Eric Matecki <email@hidden>)
 >Re: ImageCapture + ImageKit problem... (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: What to use instead of operatingSystemVersionString
  • Next by Date: [Obj-C] if (self) vs. if (self != nil)
  • Previous by thread: Re: ImageCapture + ImageKit problem...
  • Next by thread: Re: NSView mouseDown truncated coordinates
  • Index(es):
    • Date
    • Thread