Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#4 Improve Terminate Action for Mac OS X

closed
nobody
None
5
2007-01-18
2006-11-14
okamura
No

I use Thingamablog 1.0.5 with Mac OS X 10.4.8.

Mac users usually use command-Q to terminate an
application in Mac OS. On the other hand, Thingamablog
prepares for terminate command in File menu.

After I terminate Thingamablog, Thingamablog uploads
all files at next publissing. I was embarrassed by this.

One day I noticed that I could evade this. I can evade
this when I terminate Thingamablog with File menu. Then
I tried to trace handling of two termination with a
debugger. As a result, I understood followings.

command-Q:
Call only
net.sf.thingamablog.gui.app.ThingamablogFrame.MyShutdownHook.run

file menu command:
Call net.sf.thingamablog.gui.app.ThingamablogFrame.closeApp
(closeApp method calls System.exit(0).)
Call
net.sf.thingamablog.gui.app.ThingamablogFrame.MyShutdownHook.run

Then I made a patch file. It works with Mac OS X 10.4.8
(both Intel Mac and PPC Mac) well. In addition, I
tested it on Windows XP SP2 a little. This does not
seem to have any problem, too.

Discussion

  • okamura
    okamura
    2007-01-18

    Logged In: YES
    user_id=1377520
    Originator: YES

    This patch was applied to Thingamablog 1.0.6.

     
  • okamura
    okamura
    2007-01-18

    • status: open --> closed