> On May 1, 2015, at 12:13 PM, Christian Schmitz > <supp...@monkeybreadsoftware.de> wrote: > > >> I’m still missing something. Using this code, I can’t determine how to get >> the Dock’s Window List. I’ve added a listbox to display the results of the >> CGSWindowMBS list, but I get no window titles back. > > you make assumptions. Why do assume it has titles on the window? > Also query list for the process once you have the process ID and not before. > Finally I'm not sure if Apple likes you find it… >
I’ve created a new test app using only the code in your CGSWindowMBS example (MBS 15.0, Xojo 15r2.1) and I’m getting an abort signal in the built app and a silent crash in the debugger. Process: CGSWindowTest [23678] Path: /Users/USER/Documents/*/CGSWindowTest.app/Contents/MacOS/CGSWindowTest Identifier: com.tolisgroup.cgswindowtest Version: 1.0.0 (1.0.0.0.1) Code Type: X86 (Native) Parent Process: ??? [1] Responsible: CGSWindowTest [23678] User ID: 501 Date/Time: 2015-05-01 12:51:57.514 -0700 OS Version: Mac OS X 10.10.3 (14D136) Report Version: 11 Anonymous UUID: A055DE60-EFC8-9D1D-5155-506D1ECF658F Time Awake Since Boot: 84000 seconds Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Application Specific Information: abort() called *** error for object 0x214c920: pointer being freed was not allocated Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x9a14069a __pthread_kill + 10 1 libsystem_pthread.dylib 0x929def19 pthread_kill + 101 2 libsystem_c.dylib 0x98eabeee abort + 156 3 libsystem_malloc.dylib 0x9913feb9 free + 428 4 MBS Xojo MacOSXCG Plugin.xojo_plugin_8.dylib 0x067e474a CGSWindowListDestructor(REALobjectStruct*) + 106 5 com.tolisgroup.cgswindowtest 0x000fb42e CGSWindowListMBS.__exit%%o<CGSWindowListMBS> + 56 6 com.xojo.XojoFramework 0x00307e54 RuntimeUnlockObject + 816 7 com.tolisgroup.cgswindowtest 0x0010bc04 Window1.Window1.Event_Open%%o<Window1.Window1> + 1537 8 com.xojo.XojoFramework 0x0031a0e1 FireWindowOpenEvents + 212 9 com.tolisgroup.cgswindowtest 0x0000cfdd Window.Constructor%%o<Window> + 64 10 com.tolisgroup.cgswindowtest 0x0010bdd0 Window1.Window1%o<Window1.Window1>% + 210 11 com.tolisgroup.cgswindowtest 0x00002875 _MakeDefaultView + 52 12 com.tolisgroup.cgswindowtest 0x00002990 _LateStartup + 28 13 com.xojo.XojoFramework 0x0029f15d 0x15f000 + 1311069 14 com.tolisgroup.cgswindowtest 0x000c3c50 Delegate.Invoke%%p + 48 15 com.tolisgroup.cgswindowtest 0x000b9345 REALbasic._CallFunctionWithExceptionHandling%o<Object>%pp + 211 16 com.xojo.XojoFramework 0x0029eef9 0x15f000 + 1310457 17 com.xojo.XojoFramework 0x0019d353 0x15f000 + 254803 18 com.xojo.XojoFramework 0x0019bd90 0x15f000 + 249232 19 com.apple.Foundation 0x9b669053 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 50 20 com.apple.CoreFoundation 0x9c1e9c34 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20 21 com.apple.CoreFoundation 0x9c0c9901 _CFXNotificationPost + 3713 22 com.apple.Foundation 0x9b64a224 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92 23 com.apple.AppKit 0x9a6ef448 -[NSApplication _postDidFinishNotification] + 365 24 com.apple.AppKit 0x9a6ef138 -[NSApplication _sendFinishLaunchingNotification] + 239 25 com.apple.AppKit 0x9a6e4ff3 _DPSNextEvent + 3000 26 com.apple.AppKit 0x9a6e3dc5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 350 27 com.xojo.XojoFramework 0x0019db44 0x15f000 + 256836 28 com.xojo.XojoFramework 0x0019dbaa 0x15f000 + 256938 29 com.tolisgroup.cgswindowtest 0x00002bf4 Delegate.Invoke%% + 34 30 com.tolisgroup.cgswindowtest 0x00048a4e Application._CallFunctionWithExceptionHandling%%o<Application>p + 248 31 com.xojo.XojoFramework 0x00305f5a 0x15f000 + 1732442 32 com.xojo.XojoFramework 0x0019dad3 0x15f000 + 256723 33 com.apple.AppKit 0x9a6d877c -[NSApplication run] + 907 34 com.xojo.XojoFramework 0x00306000 0x15f000 + 1732608 35 com.xojo.XojoFramework 0x003041e5 RuntimeRun + 49 36 com.tolisgroup.cgswindowtest 0x000b97dc REALbasic._RuntimeRun + 34 37 com.tolisgroup.cgswindowtest 0x00002ae0 _Main + 257 38 com.tolisgroup.cgswindowtest 0x000025e8 main + 36 39 com.tolisgroup.cgswindowtest 0x0010f978 start + 53 _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info