osx - ShowWindow/HideWindow in Cocoa -
in carbon change window's visibility hidewindow(windowref) , showwindow(windowref).
in cocoa know can call nswindow's orderout: hide , orderfront:, orderback: or orderwindow:relativeto: put on screen, none of respect ordering of window relative other windows when last visible.
for example, if have 2 windows, 1 above other, , call orderout: on window, how show window again such still behind front window without calling orderwindow:relativeto:.
the thing can think of right remember window id of window above , use orderwindow:relativeto: when showing again, haven't thought through happens if window above closed before rear window made visible again.
i don't think there's method available in cocoa. guess need mimic using idea.
by way, carbon behavior if start 4 windows ordered as
b x c d e
then hide x
b c d e
now user reorders them, , removes some:
e c
and show x
again. did x
go in carbon in case?
Comments
Post a Comment