[comp.sys.mac.programmer] C++ used for DAs?????

Christopher_C_Lapp@cup.portal.com (04/27/91)

Can anyone give me advice on how to adapt the rigid rules of writing
desk accessory software (the five procedure names must be named according
to rules, etc.) to using C++ objects in the development?  Has anyone
had any experience?
Chris Lapp
Lingua Science
email: Christopher_C_Lapp@cup.portal.com

beard@ux5.lbl.gov (Patrick C Beard) (04/30/91)

In article <41728@cup.portal.com> Christopher_C_Lapp@cup.portal.com writes:
#Can anyone give me advice on how to adapt the rigid rules of writing
#desk accessory software (the five procedure names must be named according
#to rules, etc.) to using C++ objects in the development?  Has anyone
#had any experience?
#Chris Lapp
#Lingua Science
#email: Christopher_C_Lapp@cup.portal.com



You should check out my article in the October issue of d e v e l o p about
polymorphic code resources in C++.  In it, I describe how to create
code resources that use virtual functions.  In preparing for the article
I created several examples of this technique:  an iconifiable window definition
function (object actually); a driver for interapplication communication, and
the Memory desk accessory (example included with MPW) rewritten to use a
driver object.  I can make all of these examples available to the net if
there is enough interest.

--
//  Patrick C. Beard, Software Engineer, Berkeley Systems, Inc.
//                    "Heroes of technology."
//   beard@lbl.gov, d0346@applelink.apple.com (ATTN: Patrick)

John_Miller@mindlink.bc.ca (John Miller) (05/01/91)

In article <12618@dog.ee.lbl.gov>, Patrick C. Beard writes

> In article <41728@cup.portal.com> Christopher_C_Lapp@cup.portal.com
> writes:
> #Can anyone give me advice on how to adapt the rigid rules of > # writing
desk accessory software (the five procedure names must
> # be named according to rules, etc.) to using C++ objects in the
> #  development?  Has anyone had any experience?
> #Chris Lapp
> #Lingua Science
> #email: Christopher_C_Lapp@cup.portal.com

> You should check out my article in the October issue of
>  d e v e l o p aboutpolymorphic code resources in C++.  In it, I
> describe how to create code resources that use virtual functions.
> In preparing for the article ....

And for a longer term solution, pester Apple to add an option
to CFront that will emit virtual tables in a form that can
reside in standalone code without requiring an A5-world.  The
changes required are relatively minor.  Given the importance
of standalone code in the Mac softwre world, it would be nice
to have this support as a "standard" part of MPW C++.

_____________________________________________________________________
John Miller                         (604) 433-1795
Symplex Systems                     AppleLink (rarely)  SYMPLEX
Burnaby, British Columbia           Fax: (604) 430-8516
Canada                              usenet:  john_miller@mindlink.uucp

Macintosh Consulting and Software Development
_____________________________________________________________________