Re: [Pyobjc-dev] NSAppEnableForeground
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@or...> - 2003-02-14 01:00:22
|
On donderdag, feb 13, 2003, at 22:34 Europe/Amsterdam, Bob Ippolito wrote: > I could rewrite the patch again to try and find the symbol dynamically > and do nothing if it can't find it.. This sounds workable. If we assume the people responsible won't change the calling sequence in an incompatible way, and if we could ensure CPSEnableForegroundOperation wasn't called earlier than strictly necessary (i.e. when calling the first routine that would actually require the window manager) and if we would give a warning at that point if the call wasn't available then I might even be tempted to put this in the core. Hmm, some of these "if"s could be left to user code, if we add a MacOS.EnsureForeground() which would return a yes/no/notsure indicator (or a MacOS.EnsureForeground(conservative=True/False) which would raise an exception if it didn't work (or couldn't make sure, or any of another number of interfaces that would allow the same functionality). -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |