The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Building a Widgetry Based Runtime

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Building a Widgetry Based Runtime Posted: Apr 3, 2007 11:35 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Building a Widgetry Based Runtime
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

In building a Widgetry based runtime (the Twitter client that Michael and I have been working on), I've learned a couple of things that you'll run into. Mind you, these are transient issues that will go away as engineering deals with them (they'll be addressed as Widgetry moves into production) - but if you're out on the leading edge, here they are:

  • When using the RTP to prepare your GUI app, for "Action on last window close", don't set "Shutdown image" - instead, set "Continue Processing". Then set up your own quit behavior
  • Specify a custom NoWindowBlock - otherwise, when you open Widgetry based dialog boxes, you'll be in for a nasty surprise

The problem in both cases is that RTP currently makes assumptions about the kinds of Windows you have open, and doesn't "see" Widgetry based Windows. So in case (1) above, your image will quit as you start it. Very annoying :)

In case (2), dialogs prompt the NoWindowBlock as they close, which again, sees "no windows" and offers to open the launcher or quit - not what you want. I used this in my build script:

WindowManager noWindowBlock: [:mgr | true].

Not sophisticated, but it gets the job done for my little application.

Technorati Tags: , ,

Read: Building a Widgetry Based Runtime

Topic: Justifying the Unjustifiable Previous Topic   Next Topic Topic: Twittering Along

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use