Other Messages the View System Sends
ReOrientToScreen
slot. If a particular view doesn't have such a slot, it is closed. If it does have such a slot, it is sent the ReOrientToScreen
message so that it can adjust to the new screen coordinates.
When you are in rotated mode, the presence of a ReOrientToScreen
slot in an application base view controls whether or not the application can be opened while in rotated mode.
Commonly, applications will create a ReOrientToScreen
slot with the value ROM_DefRotateFunc
. This function closes and reopens the application. Since applications should normally reopen to the same state (for instance looking at the same soup entry), closing and reopening the application will give the same result as if the application were closed, the screen were rotated, and the application were reopened (where it would presumably adjust itself to the current screen size).
For some applications, completely closing and opening the application may be overkill; an application can provide its own ReOrientToScreen
method which does something else.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996