TweetFollow Us on Twitter

Sep 96 Dialog Box
Volume Number:12
Issue Number:9
Column Tag:Dialogue Box

Dialog Box

By Matt Neuburg, letters@mactech.com

Hello Java, Good-bye OLE and OpenDoc

Sometimes, when we are lucky, reality sneaks up and screams “Hello!” when we most need it.

Thinking about how to write extensible applications in Java, I was listing requirements, procedures, and issues for communication and control between the main application and the extensions. What is the minimum core of OLE and OpenDoc? Does it really have to be as complicated as OpenDoc?

Then reality suddenly screamed, “Hello! Isn’t a Java-enabled browser one of the most extensible applications we have ever seen? How is that done?”

A browser can load and run essentially “anonymous” applets, of any complexity, that can do just about anything - even bring up windows and work with files (when permitted). What more could we want?

Well, for extensible applications in general, we could want custom menus, closer integration into the application, and more access to the application’s data. As it happens, all this is possible - right now - with Java; the implementation of a browser shows us how.

We extend the Applet class to make our own applets. The Applet class establishes a few “entry points” (methods) through which a browser can tell the applet to initialize itself, run, update, and so on. The applet can do whatever else you want in addition to these few responsibilities.

For its part, the browser must implement the AppletContext interface, which dictates the services the browser must provide to any applet. If both sides fulfill these contracts, the browser can use Java’s ClassLoader to load an applet from a local or remote file, place it into the browser’s own window, and run it.

To implement our own extensible applications, we don’t have to use applets (although we certainly can); we just need to set up the kind of contracts established by the Applet class and the AppletContext interface. Perhaps we will include ways to share menus and application data; the particular methods are our call (so to speak).

Now think of the silliness of first implementing a Java-enabled OpenDoc part, then rewriting applications to accept OpenDoc parts! Or just rewriting for OpenDoc in general. Why not rewrite the applications in Java, and get straight to the point?

“Hello!” Which is the actually existing revolution - Java, or OLE/OpenDoc?

It’s time to tell OLE and OpenDoc (and VBXs, OCXs, XFCNs, MOBJs, XTNDs, and so on) “Good-bye!”

“Uncle Dave” Moffat

Mac Web Tools Redux

In the May 1996 Dialogue Box, Ziya Oz writes:

“At the last Macworld Expo in Boston, I asked myself: If Ceneca was not formed by ex-Taligent people, would they have developed Page/SiteMill for the Mac OS first? Would they even have developed for the Mac at all? My answers are: No and No again.”

His conclusions are erroneous. Ceneca initially planned to write PageMill for Windows. However, when they spoke to Web authors at several companies, they found out that Macintosh was the dominant platform for creating Web content. Ceneca therefore changed their strategy and developed a Mac version instead. (I learned this from Robert Seidl of Ceneca/Adobe at the WWDC.)

The majority of Web content is created on Macs. Macintosh is also the second most popular Web server, after UNIX. A developer writing content tools would be wise to publish a Mac version of his product.

Terry Morse

Language Wars Redux

Many Mac OS programmers still code in Pascal - and that’s OK. But they (and MacTech Magazine, too) should give another language a try. No, I’m not talking about C++ or Java; I’m talking about Oberon-2 (Pascal’s grandchild, so to speak). Interested? Then read on.

MacOberon, Oberon System 3, and Oberon/F generate 68K code. PowerOberon generates PowerPC code, but has no linker yet. Or you can use MPW. The URLs are:

ftp://ftp.inf.ethz.ch/pub/Oberon/

ftp://oberon.ssw.uni-linz.ac.at/pub/Oberon/PowerMac/

http://frodo.informatik.uni-ulm.de/projekte/MPWOberon/

As a CodeWarrior, I hope that Metrowerks will integrate this fantastic language into their IDE. But, till then, I’m perfectly happy with C++ and PowerPlant.

By the way, to “serious” Oberon users I recommend Programming in Oberon and Object-oriented Programming in Oberon-2 (both from Addison-Wesley).

Paul E. Sevinc

[Our paucity of articles written in Oberon is not due to any want of trying. In fact, we have a review of Oberon/F in the works; watch for it in a future issue. As always, the best way to ensure coverage of your favorite area of expertise is to participate by writing us an article yourself - man]

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Seven Knights Idle Adventure drafts in a...
Seven Knights Idle Adventure is opening up more stages, passing the 15k mark, and players may find themselves in need of more help to clear these higher stages. Well, the cavalry has arrived with the introduction of the Legendary Hero Iris, as... | Read more »
AFK Arena celebrates five years of 100 m...
Lilith Games is quite the behemoth when it comes to mobile games, with Rise of Kingdom and Dislyte firmly planting them as a bit name. Also up there is AFK Arena, which is celebrating a double whammy of its 5th anniversary, as well as blazing past... | Read more »
Fallout Shelter pulls in ten times its u...
When the Fallout TV series was announced I, like I assume many others, assumed it was going to be an utter pile of garbage. Well, as we now know that couldn't be further from the truth. It was a smash hit, and this success has of course given the... | Read more »
Recruit two powerful-sounding students t...
I am a fan of anime, and I hear about a lot that comes through, but one that escaped my attention until now is A Certain Scientific Railgun T, and that name is very enticing. If it's new to you too, then players of Blue Archive can get a hands-on... | Read more »
Top Hat Studios unveils a new gameplay t...
There are a lot of big games coming that you might be excited about, but one of those I am most interested in is Athenian Rhapsody because it looks delightfully silly. The developers behind this project, the rather fancy-sounding Top Hat Studios,... | Read more »
Bound through time on the hunt for sneak...
Have you ever sat down and wondered what would happen if Dr Who and Sherlock Holmes went on an adventure? Well, besides probably being the best mash-up of English fiction, you'd get the Hidden Through Time series, and now Rogueside has announced... | Read more »
The secrets of Penacony might soon come...
Version 2.2 of Honkai: Star Rail is on the horizon and brings the culmination of the Penacony adventure after quite the escalation in the latest story quests. To help you through this new expansion is the introduction of two powerful new... | Read more »
The Legend of Heroes: Trails of Cold Ste...
I adore game series that have connecting lore and stories, which of course means the Legend of Heroes is very dear to me, Trails lore has been building for two decades. Excitedly, the next stage is upon us as Userjoy has announced the upcoming... | Read more »
Go from lowly lizard to wicked Wyvern in...
Do you like questing, and do you like dragons? If not then boy is this not the announcement for you, as Loongcheer Game has unveiled Quest Dragon: Idle Mobile Game. Yes, it is amazing Square Enix hasn’t sued them for copyright infringement, but... | Read more »
Aether Gazer unveils Chapter 16 of its m...
After a bit of maintenance, Aether Gazer has released Chapter 16 of its main storyline, titled Night Parade of the Beasts. This big update brings a new character, a special outfit, some special limited-time events, and, of course, an engaging... | Read more »

Price Scanner via MacPrices.net

Apple introduces the new M4-powered 11-inch a...
Today, Apple revealed the new 2024 M4 iPad Pro series, boasting a surprisingly thin and light design that pushes the boundaries of portability and performance. Offered in silver and space black... Read more
Apple introduces the new 2024 11-inch and 13-...
Apple has unveiled the revamped 11-inch and brand-new 13-inch iPad Air models, upgraded with the M2 chip. Marking the first time it’s offered in two sizes, the 11-inch iPad Air retains its super-... Read more
Apple discontinues 9th-gen iPad, drops prices...
With today’s introduction of the new 2024 iPad Airs and iPad Pros, Apple has (finally) discontinued the older 9th-generation iPad with a home button. In response, they also dropped prices on 10th-... Read more
Apple AirPods on sale for record-low prices t...
Best Buy has Apple AirPods on sale for record-low prices today starting at only $79. Buy online and choose free shipping or free local store pickup (if available). Sale price for online orders only,... Read more
13-inch M3 MacBook Airs on sale for $100 off...
Best Buy has Apple 13″ MacBook Airs with M3 CPUs in stock and on sale today for $100 off MSRP. Prices start at $999. Their prices, along with Amazon’s, are the lowest currently available for new 13″... Read more
Amazon is offering a $100 discount on every 1...
Amazon has every configuration and color of Apple’s 13″ M3 MacBook Air on sale for $100 off MSRP, now starting at $999 shipped. Shipping is free: – 13″ MacBook Air (8GB RAM/256GB SSD): $999 $100 off... Read more
Sunday Sale: Take $150 off every 15-inch M3 M...
Amazon is now offering a $150 discount on every configuration and color of Apple’s M3-powered 15″ MacBook Airs. Prices start at $1149 for models with 8GB of RAM and 256GB of storage: – 15″ M3 MacBook... Read more
Apple’s 24-inch M3 iMacs are on sale for $150...
Amazon is offering a $150 discount on Apple’s new M3-powered 24″ iMacs. Prices start at $1149 for models with 8GB of RAM and 256GB of storage: – 24″ M3 iMac/8-core GPU/8GB/256GB: $1149.99, $150 off... Read more
Verizon has Apple AirPods on sale this weeken...
Verizon has Apple AirPods on sale for up to 31% off MSRP on their online store this weekend. Their prices are the lowest price available for AirPods from any Apple retailer. Verizon service is not... Read more
Apple has 15-inch M2 MacBook Airs available s...
Apple has clearance, Certified Refurbished, 15″ M2 MacBook Airs available starting at $1019 and ranging up to $300 off original MSRP. These are the cheapest 15″ MacBook Airs for sale today at Apple.... Read more

Jobs Board

Liquor Stock Clerk - S. *Apple* St. - Idaho...
Liquor Stock Clerk - S. Apple St. Boise Posting Begin Date: 2023/10/10 Posting End Date: 2024/10/14 Category: Retail Sub Category: Customer Service Work Type: Part Read more
*Apple* App Developer - Datrose (United Stat...
…year experiencein programming and have computer knowledge with SWIFT. Job Responsibilites: Apple App Developer is expected to support essential tasks for the RxASL Read more
Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple 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.