get focused window in desktop by kernel modules(kext)

Discussion in 'Mac Programming' started by mehdies, Dec 17, 2012.

  1. mehdies macrumors member

    Jun 10, 2012

    Is there any way to get focused window in kexts? I mean,can i get active program's name in kernel space that user working with that in user space?

    In user space we can use:

     [[NSWorkspace sharedWorkspace]activeApplication];
    but i don't know in kernel space.

  2. ytk macrumors regular

    Jul 8, 2010
    I admit I know almost nothing about kernel programming, but my instincts tell me you're trying to do something very, very wrong here. :p

Share This Page