Re: Activating application raises windows meant to be invisible
Re: Activating application raises windows meant to be invisible
- Subject: Re: Activating application raises windows meant to be invisible
- From: David Reitter <email@hidden>
- Date: Sat, 29 May 2010 22:49:56 -0400
Peter,
On May 28, 2010, at 1:04 AM, Peter Ammon wrote:
> If a window is ordered out, AppKit will not order it back in when the app is activated. Is it possible that a different window is created, or that the window was not ordered out to begin with?
Yes, orderOut is called on the window as far as I can tell.
> Is it possible that one of the windows is set to hide on deactivate?
No, that's not the case (also see below).
It's entirely possible that the application shows the window somehow. How can I find out? I have tried setting breakpoints on orderFront: and also makeKeyAndOrderFront: - no luck. Also, by the time applicationShouldHandleReopen: is called, the window is already visible.
Where would I set a breakpoint to catch the point where the window is actually made visible?
Thanks
- David
(gdb) print * (NSWindow *) [view window]
$2 = {
<NSResponder> = {
<NSObject> = {
isa = 0x1002b0b38
},
members of NSResponder:
_nextResponder = 0x0
},
members of NSWindow:
_frame = {
origin = {
x = 1080,
y = 366
},
size = {
width = 589,
height = 617
}
},
_contentView = 0x1020ad510,
_delegate = 0x1020ca410,
_firstResponder = 0x1020ca410,
_lastLeftHit = 0x0,
_lastRightHit = 0x0,
_counterpart = 0x0,
_fieldEditor = 0x0,
_winEventMask = -1071906784,
_windowNum = -1,
_level = 0,
_backgroundColor = 0x100f07240,
_borderView = 0x102092150,
_postingDisabled = 0 '\000',
_styleMask = 14 '\016',
_flushDisabled = 0 '\000',
_reservedWindow1 = 0 '\000',
_cursorRects = 0x0,
_trectTable = 0x0,
_miniIcon = 0x0,
_unused = 0,
_dragTypes = 0x0,
_representedURL = 0x0,
_sizeLimits = 0x0,
_frameSaveName = 0x0,
_regDragTypes = 0x1020cea00,
_wFlags = {
backing = 2,
visible = 0,
isMainWindow = 0,
isKeyWindow = 0,
hidesOnDeactivate = 0,
dontFreeWhenClosed = 0,
oneShot = 0,
deferred = 1,
cursorRectsDisabled = 0,
haveFreeCursorRects = 0,
validCursorRects = 0,
docEdited = 0,
dynamicDepthLimit = 0,
worksWhenModal = 0,
limitedBecomeKey = 0,
needsFlush = 0,
viewsNeedDisplay = 0,
ignoredFirstMouse = 0,
repostedFirstMouse = 0,
windowDying = 0,
tempHidden = 0,
floatingPanel = 0,
wantsToBeOnMainScreen = 0,
optimizedDrawingOk = 0,
optimizeDrawing = 1,
titleIsRepresentedFilename = 0,
excludedFromWindowsMenu = 0,
depthLimit = 0,
delegateReturnsValidRequestor = 1,
lmouseupPending = 0,
rmouseupPending = 0,
wantsToDestroyRealWindow = 0,
wantsToRegDragTypes = 1,
sentInvalidateCursorRectsMsg = 0,
avoidsActivation = 0,
frameSavedUsingTitle = 0,
didRegDragTypes = 0,
delayedOneShot = 0,
postedNeedsDisplayNote = 0,
postedInvalidCursorRectsNote = 0,
initialFirstResponderTempSet = 0,
autodisplay = 1,
tossedFirstEvent = 0,
isImageCache = 0,
interfaceStyle = 0,
keyViewSelectionDirection = 0,
defaultButtonCellKETemporarilyDisabled = 0,
defaultButtonCellKEDisabled = 0,
menuHasBeenSet = 0,
wantsToBeModal = 0,
showingModalFrame = 0,
isTerminating = 0,
win32MouseActivationInProgress = 0,
makingFirstResponderForMouseDown = 0,
needsZoom = 0,
sentWindowNeedsDisplayMsg = 0,
liveResizeActive = 0
},
_defaultButtonCell = 0x0,
_initialFirstResponder = 0x0,
_auxiliaryStorage = 0x1020aafe0
}_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden