Re: setHidden: on MacOS 10.2
Re: setHidden: on MacOS 10.2
- Subject: Re: setHidden: on MacOS 10.2
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sat, 1 May 2004 10:34:16 +0200
At 14:13 Uhr -0500 30.04.2004, Glenn Andreas wrote:
The Dialog manager has always used this trick (for decades now) -
HideDialogItem adds 0x4000 to the horizontal coordinate (and
ShowDialogItem subtracts 0x4000) and works well.
Just before there is a wrong impression of Carbon here: In Carbon,
the dialog manager is pretty much a Dodo these days. You use
ControlRefs (or HIViews), which supported hiding and showing since I
can remember.
OTOH, there were apps that use to hide windows by moving them to
some negative coordinate - until people with multiple monitors whose
second monitor was to the left of the main monitor suddenly saw
their supposedly hidden windows show up there (I seem to remember
this was for windows that were suppose to hide on deactivate, rather
than keep a separate flag and use Show/HideWindow, they'd be moved
regardless).
Commonly used trick in HyperCard to hide the last card window,
because HC required one window to be open at any time.
Using dynamically loaded bundles that would add -setHidden: via a
category, you could probably come up with a transparent way to do
this for 10.2 (i.e., write a "-setHidden:" that embeds the view
inside a tabview if it isn't already, and then hide/show
accordingly, and load that as needed based on Cocoa version).
Good thinking. Would be nice to have a sort of "setHidden
compatibility lib" for this purpose.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.