TweetFollow Us on Twitter

May 93 - WAMADA Notes

WAMADA Notes

John MacVeigh

The February WAMADA meeting was held a week late to avoid conflicting with MADACON. As a result, members who traveled to San Diego had a chance to report on the latest news from the conference. It will suffice to say that no one leapt for the phone to change their current development plans. The expected release of another MacApp update was the piece of news most immediately useful to our members. Component Software seems to be off to a good start with their plan to involve third parties in the enhancement of Component Workshop™. This could become a key weapon in their upcoming battle for market share with Symantec's Think C++. Bedrock is still on the horizon, and the viability of a single framework which provides a "native" look and feel on more than one platform remains barely tested. At the 50,000 foot level (a common Apple metaphor for "the big picture") the concept of writing frameworks to encapsulate your application's knowledge is the latest programming paradigm. Dave Wilson was the most public advocate of this idea, Taligent the most subtle.

Threads and Asynchronicity

The second part of the February meeting focused on ways of providing multiple execution paths in MacApp applications. Yvon Perreault of Cactus Inc. (a large-format color printing company) presented some sample code for the use of Apple's Threads package to provide asynchronous polling of PPC I/O completion calls. One "gotcha" with using threads is that segments can not be unloaded while a thread is executing, and since the main program is also a thread, MacApp's auto-unload feature had to be disabled.

Phil Flack of McDonnell Douglas Aerospace showed his code which provides event handling while the mouse is held down in controls. This was used to allow the monitoring of real-time devices which can transmit data to the Mac at any time. Phil overrode Button, CheckBox and Radio controls to set the control's action proc to a function which calls PollEvent during tracking. The key "trick" to making this work is to call Focus after PollEvent has returned. If the routine which is calling PollEvent is performing drawing, you need to also save off and restore the visRgn, clipRgn, and state of the fUpdating flag during the call.

Phil and coworker Mark Gerl also showed some code for a TEventHandler class called TTimedHandler which serves as an intermediary for TBehaviors on the application's idle chain. Since TBehaviors are not descended from TEventHandler, they can not directly be part of the idle chain. By using a TTimedHandler, a TBehavior can indirectly add itself to the idle chain. The TTimedHandler just passes the DoIdle call through to the TBehavior. Lastly, they described how the use of a state machine within idle methods can be used to break up processing of lengthy tasks without destroying the responsiveness of the user interface.

Affiliate Matters

The March WAMADA meeting fell four days after the infamous blizzard of '93, and squarely on Saint Patrick's Day. As a result, attendance also fell. Still, almost a dozen attendees gathered and, to start the meeting, tackled the subject of becoming an official MADA affiliate. The chief concern was that an admittance charge for non-members would drive people away, rather than encourage them to pay for membership. This lead to a discussion on how to structure MADA's fees and benefits. One proposed benefit of becoming an official affiliate is that we would receive a small share of the profits from MADA products sold at meetings. Since this is an inconvenient way to purchase software, it was suggested that a member's affiliation be recorded when they sign up, and that the affiliate get a cut from any MADA purchase which they made. Electronic access to bulletin boards is a common and often essential part of our jobs, so it was suggested that MADA establish a board on one or more of the commercial systems and limit access to members only. (Using existing systems removes the costs of billing and some administration from MADA, and provides the most widespread service). Also suggested was a more staggered fee structure, where a higher fee gains you increasing access to MADA's benefits, namely: printed information, books and software, on-line services, meetings and conferences. The question of where affiliate meetings fell in this list of services was left unanswered. Since the board member writing the affiliates rules (Leslie Jeffries) is also in charge of WAMADA, we agreed that becoming an affiliate was a good thing to do, but we wanted to see a more complete design of the implementation before making a formal declaration (typical OO programmers, huh?).

Mitem View

Our March speaker was Dan Corenzwit of Mitem Corporation. Mitem makes MitemView™, a communications product which people often associate exclusively with HyperCard. While HyperCard is the original interface for MitemView, it is no longer the only one. Now in its fourth generation, MitemView can make use of HyperCard, 4D, and C++. Note that I said "make use of" rather than "be used by". This is because Mitem considers MitemView (MV) to be a framework rather than a library. Dan credits Dave Wilson's session at MADACON for putting the difference in perspective. A library provides services which your application must determine how and when to call. A framework provides functionality that calls your application's additions at the appropriate time.

In the case of MV the functionality provided is the ability to recognize the arrival of messages and associated data from remote machines (usually mainframes) and then call your code to handle the message and its data. Its primary market is people who need to use "legacy" applications (all those mainframe COBOL applications which communicate with hardwired terminals) on their micros. Dan explained that MV views the remote system as a non-sequential, non-deterministic state machine and attempts to linearize the complexity of moving between states. MV works asynchronously (hmmm, I see a trend here!). It accepts input from a variety of communication services (SNA, TCP/IP, etc.) examines the "presentation" of the data (sort of a generalized terminal emulation) and matches incoming patterns with pre-built messages which it then sends to you. MV is able to update itself on the fly, from information provided by the sender, if a new configuration is needed to handle changes in the presentation.

To support MacApp, Mitem provides several C++ classes, along with code which is installed in your application as resources. The MV communication objects are not part of the target chain. This allows interactions with the remote machine to work in parallel with user interface activity. When MV recognizes a pattern it sends your code a message in the form of a message name. This name is turned into a method call by way of a registration table which your application builds. The result is that your application becomes a sort of way station between two users: the person running it, and the remote machine sending in data.

In combination with the previous month's discussion of handling asynchronous I/O, I found the asynchronous nature of MitemView its most interesting feature. Dan showed that responding to messages from MV in the proper order can improve response time, by taking the remote machine's processing time into account. As operating systems (including the Mac's) move towards providing multi-threading and multi-processing services, those of us who long ago became comfortable with event-based programming will have to take the next step to working with these new services. Thinking back to MADACON, I don't recall many vendors touting multi-threading as a factor in the design of their frameworks (SmalltalkAgents is the only exception that comes to mind). Let's hope this changes as fast as the new OSs change.

If you're in the D.C. area, and interested in object oriented programming, give WAMADA a visit. We meet every third Wednesday at McDonnell Douglas in Tyson's Corner, Virginia, beginning around 7:15 p.m. For a map, send a message to JEFFRIES.L on AppleLink, or call Leslie at (301) 340-5126 during business hours (EST).

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Tokkun Studio unveils alpha trailer for...
We are back on the MMORPG news train, and this time it comes from the sort of international developers Tokkun Studio. They are based in France and Japan, so it counts. Anyway, semantics aside, they have released an alpha trailer for the upcoming... | Read more »
Win a host of exclusive in-game Honor of...
To celebrate its latest Jujutsu Kaisen crossover event, Honor of Kings is offering a bounty of login and achievement rewards kicking off the holiday season early. [Read more] | Read more »
Miraibo GO comes out swinging hard as it...
Having just launched what feels like yesterday, Dreamcube Studio is wasting no time adding events to their open-world survival Miraibo GO. Abyssal Souls arrives relatively in time for the spooky season and brings with it horrifying new partners to... | Read more »
Ditch the heavy binders and high price t...
As fun as the real-world equivalent and the very old Game Boy version are, the Pokemon Trading Card games have historically been received poorly on mobile. It is a very strange and confusing trend, but one that The Pokemon Company is determined to... | Read more »
Peace amongst mobile gamers is now shatt...
Some of the crazy folk tales from gaming have undoubtedly come from the EVE universe. Stories of spying, betrayal, and epic battles have entered history, and now the franchise expands as CCP Games launches EVE Galaxy Conquest, a free-to-play 4x... | Read more »
Lord of Nazarick, the turn-based RPG bas...
Crunchyroll and A PLUS JAPAN have just confirmed that Lord of Nazarick, their turn-based RPG based on the popular OVERLORD anime, is now available for iOS and Android. Starting today at 2PM CET, fans can download the game from Google Play and the... | Read more »
Digital Extremes' recent Devstream...
If you are anything like me you are impatiently waiting for Warframe: 1999 whilst simultaneously cursing the fact Excalibur Prime is permanently Vault locked. To keep us fed during our wait, Digital Extremes hosted a Double Devstream to dish out a... | Read more »
The Frozen Canvas adds a splash of colou...
It is time to grab your gloves and layer up, as Torchlight: Infinite is diving into the frozen tundra in its sixth season. The Frozen Canvas is a colourful new update that brings a stylish flair to the Netherrealm and puts creativity in the... | Read more »
Back When AOL WAS the Internet – The Tou...
In Episode 606 of The TouchArcade Show we kick things off talking about my plans for this weekend, which has resulted in this week’s show being a bit shorter than normal. We also go over some more updates on our Patreon situation, which has been... | Read more »
Creative Assembly's latest mobile p...
The Total War series has been slowly trickling onto mobile, which is a fantastic thing because most, if not all, of them are incredibly great fun. Creative Assembly's latest to get the Feral Interactive treatment into portable form is Total War:... | Read more »

Price Scanner via MacPrices.net

Early Black Friday Deal: Apple’s newly upgrad...
Amazon has Apple 13″ MacBook Airs with M2 CPUs and 16GB of RAM on early Black Friday sale for $200 off MSRP, only $799. Their prices are the lowest currently available for these newly upgraded 13″ M2... Read more
13-inch 8GB M2 MacBook Airs for $749, $250 of...
Best Buy has Apple 13″ MacBook Airs with M2 CPUs and 8GB of RAM in stock and on sale on their online store for $250 off MSRP. Prices start at $749. Their prices are the lowest currently available for... Read more
Amazon is offering an early Black Friday $100...
Amazon is offering early Black Friday discounts on Apple’s new 2024 WiFi iPad minis ranging up to $100 off MSRP, each with free shipping. These are the lowest prices available for new minis anywhere... Read more
Price Drop! Clearance 14-inch M3 MacBook Pros...
Best Buy is offering a $500 discount on clearance 14″ M3 MacBook Pros on their online store this week with prices available starting at only $1099. Prices valid for online orders only, in-store... Read more
Apple AirPods Pro with USB-C on early Black F...
A couple of Apple retailers are offering $70 (28%) discounts on Apple’s AirPods Pro with USB-C (and hearing aid capabilities) this weekend. These are early AirPods Black Friday discounts if you’re... Read more
Price drop! 13-inch M3 MacBook Airs now avail...
With yesterday’s across-the-board MacBook Air upgrade to 16GB of RAM standard, Apple has dropped prices on clearance 13″ 8GB M3 MacBook Airs, Certified Refurbished, to a new low starting at only $829... Read more
Price drop! Apple 15-inch M3 MacBook Airs now...
With yesterday’s release of 15-inch M3 MacBook Airs with 16GB of RAM standard, Apple has dropped prices on clearance Certified Refurbished 15″ 8GB M3 MacBook Airs to a new low starting at only $999.... Read more
Apple has clearance 15-inch M2 MacBook Airs a...
Apple has clearance, Certified Refurbished, 15″ M2 MacBook Airs now available starting at $929 and ranging up to $410 off original MSRP. These are the cheapest 15″ MacBook Airs for sale today at... Read more
Apple drops prices on 13-inch M2 MacBook Airs...
Apple has dropped prices on 13″ M2 MacBook Airs to a new low of only $749 in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, now available for $679 for 8-Core CPU/7-Core GPU/256GB models. Apple’s one-year warranty is included, shipping is free, and each... Read more

Jobs Board

Seasonal Cashier - *Apple* Blossom Mall - J...
Seasonal Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Seasonal Fine Jewelry Commission Associate -...
…Fine Jewelry Commission Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) Read more
Seasonal Operations Associate - *Apple* Blo...
Seasonal Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Read more
Hair Stylist - *Apple* Blossom Mall - JCPen...
Hair Stylist - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.