Re: How to know when a window is drawn ?
Re: How to know when a window is drawn ?
- Subject: Re: How to know when a window is drawn ?
- From: Uli Kusterer <email@hidden>
- Date: Sat, 26 Nov 2005 14:04:28 +0100
Am 26.11.2005 um 00:32 schrieb John Walter:
2005/11/25, Uli Kusterer <email@hidden>:
Am 25.11.2005 um 10:16 schrieb John Walter:
Firstly my application needs to know when the target app will redraw
its windows, and what areas of these windows are concerned (ie which
are invalidated). I assumed I could do this with a kind of event
API,
but I found nothing helpful.
In a Cocoa app, you could probably inject yourself to override a
few NSView methods (drawRect:, for instance) to notify your app of
redraws.
You wouldn't happen to know how to do this, would you ? It wouldn't be
a problem if I had the source code of all the target apps I want to
deploy , but I'm not sure Microsoft would be kind enough to give me
the source code of Word or Excel (which are Carbon apps if I'm right,
but I think you got my point).
Google for "mach_inject", "method swizzling" and "poseAsClass:".
There's more info on that stuff available than anyone could reproduce
on this mailing list. Also check out the "Cocoa and List Resources"
post the list moderator posts on this mailing list frequently, it
contains lots of web site URLs where you can find useful info on
everything (including the above technologies).
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden