OmniWeb prevents logout

Garance A Drosehn gad at eclipse.its.rpi.edu
Thu Feb 16 16:47:07 PST 1995


> > When I try to quit the Workspace Manager without first quitting
> > OmniWeb, all programs quit except OmniWeb. Nothing happens until
> > I explicitly quit OmniWeb - then I'm logged out.
> 
> 	Yep, that's annoying. It catches me every time. OmniWeb has
> always had a problem with this (that's my recollection anyway).
> The same thing that happens when the app is quit should happen when
> Workspace quits it via the Application appWillTerminate method..

appWillTerminate is the method that gets called when "Quit" is
selected from the menu.  It is not called when the Workspace
pulls the rug out from under the app.  To handle that case, you
have to define a method appPowerOffIn:andSave:.

Omniweb must define that method (*), or it wouldn't be able to hang
when the workspace tries to quit it.  The trick is that, while you
need to return "self" from appWillTerminate for quit-processing to
continue, in the appPowerOffIn:andSave: method you need to return
NULL for it to continue.  So if you use the exact same code for
both methods, the app will hang in power-off (or workspace-quit)
processing.

(*) - I'm not a real NeXTSTEP programmer, but I play one on usenet...

     Seems to me there was another method which I stumbled upon
     which does about the same thing, but I don't remember what that
     was.  This is the one that I use in some of my programs, however,
     and it behaves as described.  It's documented in some pre-3.0
     Concepts documentation, I believe.

> This is probably an easy fix for the Omni folk.

This is undoubtably true, and they're more likely to know the real
story than I am anyway...    :-)

---
Garance Alistair Drosehn     =     gad at eclipse.its.rpi.edu
ITS Systems Programmer            (handles NeXT-type mail)
Rensselaer Polytechnic Institute;           Troy NY    USA


More information about the OmniWeb-l mailing list