Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Mac port: HelloWorld3


The last time I did serious Mac programming was when I wrote the GUI classes for Digitalk's Smalltalk/V Mac. Somewhat later, I also took a stab at doing a port of VisualAge/Smalltalk, which unfortunately never got completed. :-( The reason I mention this is because the VA/Smalltalk OSWidget classes have got a lot in common, structurally at least, with the SWT widgets. I remember the two biggest issues at the time, were
  1. How do you keep the widgets from painting on top of each other? (tell me this has been fixed in OS X!)
  2. How do you manage the menu bar?

    To handle the second issue, I ended up maintaining each shell's "menubar" as a collection of menus which I swapped in and out as the shells got focus. This actually worked reasonably well although, as is true whenever you don't let the o/s handle the issue, the book keeping was a bit nasty. When you talk about the "main application menu" do mean a menu with commands which aren't included in each shell's menu?

    McQ.



    Maurice Parker <maurice@xxxxxxxxxxxxxxxxxxxxxx>
    Sent by: platform-swt-dev-admin@xxxxxxxxxxx

    12/03/2001 03:50 AM
    Please respond to platform-swt-dev

           
            To:        <platform-swt-dev@xxxxxxxxxxx>
            cc:        
            Subject:        [platform-swt-dev] Mac port:  HelloWorld3


    Hey,

    OK, the latest version is now at the HelloWorld3 level.  Get it at:
    http://www.vineyardenterprise.com/BlackMoon.tar.gz

    Thanks go out to Pradeep Bashyal who emailed me the solution to the problem
    people were having building on their local machines.

    This is a big change over the last version.  A lot more of the Widget
    hierarchy is in place and the initial event handling code has been added.
    There are a couple of bugs in the code that I know about and will take a
    look at before moving on to HelloWorld4.

    The first bug is that you only see "Hello" until you resize the window.
    This is because I didn't implement the computeTrim() code in Scrollable.

    The second one is much nastier.  To create it, grab the resize control and
    start resizing the window.  Do it fast for a few seconds and the program
    will crash.  The problem has to do with the Notification Center code in the
    Shell class.  I'll search through Apple's site Mon. night and try to find
    out what's happening.

    If anyone's chomping at the bit to do something, the main application menu
    hasn't been put into Display yet.  It's something I've been meaning to get
    around to but haven't yet.

    -Maurice

    _______________________________________________
    platform-swt-dev mailing list
    platform-swt-dev@xxxxxxxxxxx
    http://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top