Re: Window not becoming key window when it should after makeKeyAndOrderFront:
Re: Window not becoming key window when it should after makeKeyAndOrderFront:
- Subject: Re: Window not becoming key window when it should after makeKeyAndOrderFront:
- From: Steve Moon <email@hidden>
- Date: Wed, 28 Nov 2001 08:20:55 -0800
Thanks Rosyna,
after spending more times and setting a breakpoint in a delegate method
of NSWindow here is the backtrace when the window suddenly decide to
resign as the key window :
--------------------------------
#0 -[MiniApp windowDidResignKey:] (self=0x243580, _cmd=0x706bd9c4,
aNotification=0x393810) at MiniApp.m:1594/Users/Steve/Projects/MiniApp/
#1 0x708374a8 in _nsNotificationCenterCallBack ()
#2 0x7019bb18 in CFStorageDeleteValues ()
#3 0x701992a8 in _CFNotificationCenterPostLocalNotification ()
#4 0x70198fcc in _CFNotificationCenterPostNotification ()
#5 0x7082c2e0 in -[NSNotificationCenter
postNotificationName:object:userInfo:flags:] ()
#6 0x70833c14 in -[NSNotificationCenter postNotificationName:object:] ()
#7 0x70c38ce4 in -[NSWindow resignKeyWindow] ()
#8 0x70c7dbe8 in _NXSendWindowNotification ()
#9 0x70c86514 in -[NSView displayIfNeededInRect:] ()
#10 0x70b94038 in -[NSApplication sendEvent:] ()
#11 0x70c23488 in -[NSApplication run] ()
#12 0x70c91ed0 in NSApplicationMain ()
#13 0x000031a0 in _start ()
#14 0x00002fd0 in start ()
--------------------------------
I was clicking in an NSScrollView in the window when it resign as the
key window, so I suspect that entry #9 is probably the scrollview (?)
Any ideas on how we can workaround on this problem (except the
suggestion from Rosyna) ?? anyone at Apple with some workaround ??
Steve
On Wednesday, November 28, 2001, at 07:58 AM, Rosyna wrote:
This is a bug I reported multiple times to apple. It should come
frontmost if you close the window, then bring it forward again