I'd like to steal an NSWindow
from another process. Preferably that, but an NSView
, that is, the one that I would get from [window contentView]
, would be fine as well (especially since I suppose that I can escalate to NSWindow
with [view window]
.
Obviously, this is likely undocumented and incredibly not approved by Apple (or the Mac App Store). From my research, it seems that this might be doable via the accessibility API that Apple provides, however I have yet to find a method to do this.
I've looked at CGWindow.h
, but it doesn't seem to provide what I need.
Thanks (this is my first SO post).
I was advised to provide a non-nefarious reason: simple! It's for debugging purposes! And, err, for anything that anyone wants to do, really, because that will be possible, of course. One of my close friends, who is a great iOS hacker (the developer of MobileNotifier, search it on Google if you haven't heard of it) has suggested injecting bundles, which I said could then set up a distributed objects server, which would then work great. So we'll probably attempt that approach.