TweetFollow Us on Twitter

Volume Number:11
Issue Number:2
Column Tag:Appletalk

Yenta and the Appletalk Class Library

ChatterBox for the aspiring MOOSE

By Eric Rosé,

Note: Source code files accompanying article are located on MacTech CD-ROM or source code disks.

A Historical Note

The infancy of my Macintosh programming life was spent writing network software and hacking Appletalk code; the scars have mostly healed. IAC and the Communication Toolbox have made network software easier to write, but there is still a burden on the programmer to manage zone and node identification, as well as actually sending the data - especially if you want to provide a different interface than the PPC Browser, or if you want to communicate invisibly (eg. an e-mail driver which should seamlessly perform the task of finding other people it can send messages to).

This first part of this article describes the Appletalk Class Library - a modular and extensible approach to Appletalk communication using Think C++. The ACL is a set of objects which encapsulate tasks like initializing Appletalk, getting lists of zones, looking up and confirming addresses, and sending data between nodes. These objects are fully asynchronous, and provide a way for you to specify completion routines which can move memory (a big plus!). The second part of this article shows how to use these classes in conjunction with a number of TCL-like but fully C++ interface classes to build “Yenta” - a “chat” application in the spirit of Ron Hafernik’s “ChatterBox” program (yay Ron!).

To Spare You The Trouble

The ACL itself consists of about 2800 lines of code, which clearly prohibits me from going into all of it in detail in this article. Much of the Appletalk code within the ACL has been seen before either in IM:IAC or DTS programs such as GetZoneList or DMZ. My general approach will be to give the declaration for each class I discuss and describe how it can be used, only showing method definitions when they illustrate some interesting or important concepts and programming strategies. The interface classes which I use to build Yenta are also of my own devising and consist of about 9000 lines of code. Since the focus of this article is on the ACL, I will not discuss them except when absolutely necessary. All the code for the ACL and the Yenta application is available from Xplain.

Appletalk Review

Anyone who wants the real lowdown on Appletalk network topology and protocols should read the second edition of “Inside Appletalk” or Michael Peirce’s book “Programming with Appletalk”. These details are not important for the development of the ACL, so this review will talk primarily about what kind of information we have to keep track of in order to communicate on an Appletalk network.

Every Appletalk network consists of zero or more zones; each zone is represented by a unique name. If there is no zone at all, the name “*” is used as a default. Once you have the zone name you can perform lookups, confirmations, etc. Every ‘visible’ entity within a zone has a unique name which is specified by an object name, a type, and the zone name; the commonly used format is name:type@zone. All network entities also have a numerical address made up of a node number (the ID of the computer they are on), a socket number (a number between 1 and 255 which specifies a socket on the computer) and a zone number. There may be multiple zone numbers assigned to each zone name. Some things you can do with network addresses are 1) formally register them on the network (making them visible); 2) deregister them (making them invisible); 3) look for addresses matching a certain name or pattern; and 4) confirm an address which you obtained earlier.

The ACL uses the PPC Toolbox (IM:IAC, ch 11) to do its data transmission. The PPC Toolbox extends the ‘address’ of a network entity by adding to the “name:type@zone” identifier a theoretically infinite number of ports - each described by a unique “pname:ptype” pair. For the purpose of simplicity, the ACL uses the same ‘name’ for both the location name and the port name, although you can still specify different location and port types if you want.

Asynchronicity is a vitally important aspect of Appletalk communication. Ideally all communication will be asynchronous so that we can be doing node lookups and confirmations while we are sending large amounts of data. To determine when such a task completes, you either have to poll a flag in the task record, or assign a completion routine which is limited in power because it can’t move memory; generally they simply set global variables which are polled by the application. The ACL provides an object (CPPPeriodicTask) which acts as a wrapper for periodic tasks, and a second class (CPPPeriodicTaskManager) which performs all of the polling operations for you. All you have to do is specify a method or routine to be run when the task completes, hand it to a CPPPeriodicTaskManager object and let things take care of themselves. Because your method is not called at interrupt time, as would a traditional completion routine, you can feel free to move as much memory as you want to.


Enough talk of what has to be done; let’s talk about how to do it! All of the nifto features we’ve discussed above are implemented in the ACL in three abstract base classes and nine concrete classes. To build on a firm foundation, we’ll look at the abstract classes first.

Laying the Foundation


All of the objects in the ACL have a single abstract base class called CPPObject (the declaration for which is shown below). Besides providing a common ancestor, this class gives every object the potential for making an exact copy of it (Clone) or returning its name as a c-string to anyone who asks (ClassName). We will see the utility of this feature later.

class CPPObject {
 CPPObject (void);
 virtual~CPPObject (void);
 virtualchar*ClassName (void);
 virtualCPPObject*Clone (void);    


Directly descended from CPPObject is CPPPeriodicTask - an object which encapsulates the data and methods needed to maintain an asynchronous task. Associated with CPPPeriodicTask is CPPTaskManager, which maintains a list of all periodic tasks and is responsible for making sure that each task is called at least as often as it needs to be. Here are declarations for these classes. I elaborate on them below.

typedef void (*CompletionProc)(CPPObject *TheTask);

class CPPPeriodicTask : public CPPObject {

 CPPPeriodicTask (CPPTaskManager *TaskManager, 
 long minPeriod = 120,
 Boolean deleteWhenCompleted = TRUE);
 ~CPPPeriodicTask (void);
 virtualchar*ClassName (void);

    // Setter and accessor methods
 long   GetPeriod (void);
 long   GetTimesCalled (void);
 void   SetPeriod (long newPeriod);
 OSErr  TaskError (void);
 void   SetCompletionProc (CompletionProc NewProc);

    // user-specific methods
 virtualBoolean  NeedsToRun (void);
 virtualvoidDoPeriodicAction (void);
 virtualvoidDoCompletedAction (void);
 OSErr  callResult;
 CPPTaskManager  *ourManager;
 CompletionProc  completion;
 long   minimumPeriod;
 long   lastCalled;
 long   timesCalled;

class CPPTaskManager : public CPPObjectList {
 CPPTaskManager (void);
 ~CPPTaskManager (void);
 virtualchar   *ClassName (void);

 Boolean AddPeriodicTask (CPPPeriodicTask *TheTask);
 Boolean RemovePeriodicTask (CPPPeriodicTask *TheTask,
  Boolean disposeOfTask);
 long HowManyTasksOfType (char *ClassName);
 void   RunPeriodicTasks (void);
 short  HowManyPeriodicTasks (void);

CPPTaskManager (PTM) is subclassed off of an object which maintains a list of CPPObjects. Since CPPObject is the base class of the entire ACL, this list can hold any object in the ACL; in this case the list only contains CPPPeriodicTask objects, or any object descended from them.

The AddPeriodicTask and RemovePeriodicTask methods are semantically identical to append and delete operations on lists. One thing to note is that the ‘Remove’ method gives you the option of disposing of the task or merely removing it from the list. The two ‘HowMany???’ methods let you count the total number of objects in the queue, or the number of objects belonging to a specific class. The code for HowManyTasksOfType is shown below, and demonstrates the use of the ClassName method.

long CPPTaskManager::HowManyTasksOfType (char *ClassName)
/* returns how many objects of type “ClassName” are in the queue */
 long i = 1;
 long Count = 0;
 while (i <= numItems)
 if (strcmp (((*this)[i])->ClassName(), ClassName) == 0)
   Count ++;
 return Count;

The key method in the PTM class is RunPeriodicTasks, which iterates through all the tasks which it manages, executing those whose periods have expired and removing those which have completed. The code for this method is shown below:

void CPPTaskManager::RunPeriodicTasks (void)
/* Give all of the periodic tasks we manage a chance to execute */
 long i = 1;
 CPPPeriodicTask *TheTask;
 while (i <= numItems)
   if (TheTask = (CPPPeriodicTask *)((*this)[i]))
                  // execute the task if it needs to run
   if (TheTask->NeedsToRun())
      TheTask->isRunning = TRUE;
      BroadcastMessage (kTaskActivated, (void *)i);
       TheTask->isRunning = FALSE;
      BroadcastMessage (kTaskDeactivated, (void *)i);
                  // if it has completed remove it from the queue
   if (TheTask->hasCompleted)
       CPPList::DeleteItem(i, FALSE);// Dequeue w/o deleting
       TheTask->DoCompletedAction(); // Perform final operation
       if (TheTask->deleteWhenDone)// Dispose of the task if 
         delete TheTask;  // requested
   else // advance to the next item if we don't delete this one

On each call to RunPeriodicTasks, each task in the queue is asked to determine whether or not it needs to run; if it does, the PTM calls DoPeriodicAction (the contents of which will be explained in a minute). If during execution, the periodic task determines that it is done, the PTM removes the task from the queue, calls DoCompletedAction to let the task perform any special final actions, and then deletes it, if requested to. Ideally RunPeriodicTasks should be called once during every iteration of the application’s main event loop in order to give enough processing time to the tasks in the PTM.

CPPPeriodicTask is an abstract base class whose only job is to maintain all the bookkeeping information which the PTM needs to service it. Each task has associated with it a minimum period which indicates (in ticks) how often it is to run. Unlike the Time Manager, this is not a guaranteed rate of service - it merely indicates that the task will be run no more often than once every n ticks. While this is an acceptable strategy for polling periodic lookup/read/write tasks, I wouldn’t advise it for controlling vital processes.

The key functional methods in CPPPeriodicTask are NeedsToRun, DoPeriodicAction and DoCompletedAction. The basic NeedsToRun method subtracts the last called time of the task from the current time, and returns TRUE if that amount exceeds minimumPeriod. If you want you could override it to take the state of the task into account, as well as the period.

The basic DoPeriodicAction method merely increments the timesCalled variable and stores the current time in lastCalled. Any override of DoPeriodicAction should call the inherited method so that this bookkeeping information is maintained. An important job which must be done by the user’s DoPeriodicAction method is setting the public hasCompleted flag, which the PTM checks to see whether the task should be dequeued.

DoCompletedAction allows the user to customize the task’s final behavior in two ways. Here is the code for the basic method:

void CPPPeriodicTask::DoCompletedAction (void)
/* execute the completion routine, if there is one */
 if (this->completion)
   (*this->completion)((CPPObject *)this);

One way to customize DoCompletedAction would be to overload it to perform any necessary data copying, notification, etc. The other way is to use SetCompletionProc to specify a routine to be called explicitly. Why do we need to be able to do it both ways? Glad you asked! As an example, most of the ACL’s lookup tasks allocate goodly-sized chunks of memory which are only used when a lookup is underway. Principles of information hiding make it more logical to dispose of this memory in an overridden method than an external routine.

On the other hand, many times when we do a lookup we would like the results to be displayed somewhere. Principles of information hiding argue that this kind of ‘display-specific’ code should not be placed inside the task itself. In addition, it would become tedious and wasteful to have to create several subclasses of the same kind of lookup task which differ only in their completion routines. This all becomes much clearer when we discuss the construction of the Yenta application, so don’t worry if this doesn’t quite make sense yet.

Poring (over) The Concrete

Now that we have discussed the abstract classes, let’s move on to the ones which do the gruntwork.


In order to use Appletalk, you need a set of maintenance routines which let you do things like find out driver numbers, turn self-send capability on and off, initialize the PPC Toolbox, etc. To save the programmer worry (and time spent flipping through IM) I encapsulated these routines in a class called CPPMaBell, whose declaration is shown below

class CPPMaBell : public CPPObject {
 CPPMaBell (Boolean AllowSelfSend = TRUE);
 ~CPPMaBell (void);
 virtualchar   *ClassName (void);

    // General Appletalk Utilities
 OSErr  OpenATalkDriver (short whichDrivers);
 short  GetDriverNumber(short whichDriver);
 short  GetAtalkVersion (void);
 BooleanHasPhase2ATalk (void);
 BooleanEnableSelfSend (void);
 BooleanDisableSelfSend (void);
 BooleanSelfSendEnabled (void);

    // PPC Toolbox routines
 OSErr  InitPPCToolbox (void);
 OSErr  OpenCommunicationPort (StringPtr OurName,
        StringPtr PortType,
        PPCPortRefNum *newRefNum);
 OSErr  CloseCommunicationPort (PPCPortRefNum portRefNum);
 OSErr  EndSession (PPCSessRefNum  sessionID);
 short  XPPRefNum,
 short  AtalkVersionNumber;

The majority of these routines are unspectacular, but necessary. One routine of interest is OpenCommunicationPort, which shows how to open a PPC Toolbox Port. This code modifies the example code in IM:IAC, p. 11-21, by setting the connection’s full address to “OurName:PPCCommPort” at location “?’s Macintosh: OurName•PortType@ zone”.

OSErr CPPMaBell::OpenCommunicationPort (StringPtr OurName,
   StringPtr PortType,
   PPCPortRefNum *newRefNum)
 PPCOpenPBRec    OpenRec;
 PPCPortRec PortRec;
 LocationNameRec LocationRec;
 EntityName TheName;
 OSErr  ErrCode;
    // set up the port specification record
 PortRec.nameScript = smRoman;
 PortRec.portKindSelector = ppcByString;
 CopyString (OurName,;
 CopyString ("\pPPCCommPort", PortRec.u.portTypeStr);
    // set up the record which describes who we are
 LocationRec.locationKindSelector = ppcNBPTypeLocation;
 PStrCat(32, &LocationRec.u.nbpType[0], 3, OurName, 
  "\p•", PortType);
 // set up the 'open port' record
 OpenRec.serviceType = ppcServiceRealTime;
 OpenRec.resFlag = 0;
 OpenRec.portName = &PortRec;
 OpenRec.locationName = &LocationRec;
 OpenRec.networkVisible = TRUE;
    // make the call and, if no errors, get the port number
 if ((ErrCode = PPCOpen (&OpenRec, FALSE)) == noErr)
   *newRefNum = OpenRec.portRefNum;
   *newRefNum = -1;
 return ErrCode;


As mentioned in the Appletalk Review, network entities can be identified using three strings and/or three numbers. The CPPNodeInfo object whose declaration is shown below is the ACL’s common denominator for representing network entities. All six pieces of address data are freely settable and accessible, placing no restrictions on the protocol you use to communicate with (eg. DDP uses only the numbers, PPC only the names).

class CPPNodeInfo : CPPObject {
 CPPNodeInfo (void);
 ~CPPNodeInfo (void);
 virtualchar*ClassName (void);

 void   SetNodeName (StringPtr ObjectStr, StringPtr TypeStr, 
 StringPtr ZoneStr);
 void   SetNodeAddress (short SocketNum, short NodeNum, 
 short ZoneNum);
 void   GetNodeName(StringPtr *ObjectStr, StringPtr *TypeStr, 
 StringPtr *ZoneStr);
 void   GetNodeAddress (short *SocketNum, short *NodeNum, 
 short *ZoneNum);
 StringPtrReturnNameString (void);
 StringPtrReturnShortNameString (void);

 BooleanRegisterNodeAddress (OSErr *ErrCode);
 BooleanDeregisterNodeAddress (OSErr *ErrCode);
 BooleanConfirmNodeAddress (OSErr *ErrCode);

 BooleanEquals (CPPNodeInfo *TestNA);
 CPPObject*Clone (void);
 Ptr    InfoToStream (void);
 NamesTableEntry *NTE;  // only defined if registered
 unsigned char socketNumber,
 short  zoneNumber;
CPPNodeInfo *StreamToInfo (Ptr Buffer, Ptr *BufferEnd);

In addition to managing the network address and name data, CPPNodeInfo lets you register and deregister address on the network, so that any CPPNodeInfo entity can be made visible to the outside world. For convenience, a synchronous routine, ConfirmNodeAddress, has been provided to let you check to see if the entity’s address has changed behind your back.

InfoToStream and StreamToInfo provide the ability to write the node’s address out to a block of memory and then reconstruct a CPPNodeInfo record from such a block of memory. This is provided so that you can send addresses back and forth between machines without any loss of data.

Finally, CPPNodeInfo provides a Clone method which creates a CPPNodeInfo object which refers to the same object as the original, and an Equals method, which tests a passed-in object to see if it refers to the same object as the one which makes the method call.

411 - CPPPeriodicTask Returns

In the Appletalk Review, we talked about two different kinds of lookup we want to be able to do - lookup of zone names (including the zone we are in) and lookup of all network entities whose names match a predefined pattern. In the ACL, these two jobs are performed by subclasses of CPPPeriodicTask, affectionately known as CPPZone411 and CPPNode411. Here are their declarations (for brevity, I’ve omitted their private variable and method declarations).

class CPPZone411 : public CPPPeriodicTask {
 CPPZone411 (CPPTaskManager *TaskManager,
     CPPMaBell *MaBell, long minPeriod = 120, 
     Boolean deleteWhenDone = TRUE);
 ~CPPZone411 (void);
 virtualchar   *ClassName (void);

 virtual void  DoPeriodicAction (void);
 virtual void  DoCompletedAction (void);
 BooleanNthZone (long whichItem, Boolean getCopy, 
   StringPtr *ZoneName);
 long   NumZonesFound (Boolean *isDone);
 void   StartZoneLookup (CompletionProc DoProc);
 StringPtrGetOurZoneName (OSErr *ErrCode);
 CPPStringList *GetFoundList (void);
 CPPStringList *FoundList;

class CPPNode411 : public CPPPeriodicTask {
 CPPNode411 (CPPTaskManager *TaskManager, 
 long minPeriod = 120, 
 Boolean deleteWhenDone = TRUE);
 ~CPPNode411 (void);
 virtual char *ClassName (void);

 virtual void  DoPeriodicAction (void);
 virtual void  DoCompletedAction (void);
 CPPNodeInfo   *NthNode (long whichItem, Boolean getCopy);
 long   NumNodesFound (Boolean *isDone);
 void   StartNodeLookup (StringPtr ObjectName,
  StringPtr TypeName, 
  StringPtr ZoneName,
  short maxNumResponses,
  CompletionProc DoProc);
 CPPObjectList *GetFoundList (void);
 CPPObjectList *FoundList;

Each class maintains a list of names or nodes which it has found, and provides a similar interface (Nth???, Num???Found, and GetFoundList) for accessing them. CPPZone411 provides an additional routine called GetOurZoneName which returns the name of the network our machine resides on. The details of how to perform zone and node lookup have been discussed many times in IM and programs like DMZ and GetZoneList from Apple DTS, so I won’t go into those here. It is, however, worth looking at the DoPeriodicAction, DoCompletedAction, and Start???Lookup methods to see how you can use the CPPPeriodicTask abstract class to do something useful. We’ll look at CPPNode411, since node lookup is considerably more straightforward.

To begin a node lookup, one calls the StartNodeLookup method, passing it the name, type, and zone names to match against, along with the maximum number of responses you want, and the address of a routine to call on completion. Here are the guts of StartNodeLookup.

void CPPNode411::StartNodeLookup (StringPtr ObjectName,
  StringPtr TypeName, 
  StringPtr ZoneName,
  short maxNumResponses,
  CompletionProc DoProc)
 if ((!this->hasCompleted) || (!this->ourManager))
   return;// exit if doing a lookup or bogus params
    // otherwise, set up the call
 this->hasCompleted = FALSE;// note we are not done
 this->FoundList->DeleteItems(TRUE); // get rid of old results
 SetupNBPCall(ObjectName, TypeName, ZoneName, maxNumResponses);
 if (this->callResult == noErr)
   this->ourManager->AddPeriodicTask(this);  // now add the task

The first thing the task does is check its own hasCompleted flag to see if it is currently doing a lookup. Once it determines that it is not already busy, it sets the flag to FALSE, so that the PTM will not toss it out as soon as it is enqueued. It then clears any nodes which may have been found earlier from its list of ‘found’ nodes. SetupNBPCall is a private method which allocates the necessary storage, fills in the paramBlock for an NBP call, and makes the PLookupName call - storing its result in the class’ callResult variable. If the call is made successfully, the only thing left to do is add the task to the PTM’s list of serviceable tasks. All subsequent activity is managed by the DoPeriodic/CompletedTask methods.

Here’s CPPNode411’s DoPeriodicAction method:

void CPPNode411::DoPeriodicAction (void)
    // call the inherited method to update frequency count
 switch (this->lookupRec->MPPioResult) {
 case noErr :  // the call has completed
 this->hasCompleted = TRUE;
 this->callResult = noErr;
 case 1  :// still busy getting names
 default: // an error occurred
 this->callResult = lookupRec->MPPioResult;
 hasCompleted = TRUE;

As one might expect, the periodic task checks the ioResult parameter of the paramBlock which was used to make the PLookupName call and responds appropriately. If it has completed successfully, it calls ProcessNodes which extracts all of the nodes from the lookup buffer, then sets the hasCompleted flag so the PTM will remove it from the queue. If the call has completed with an error, the task also sets the hasCompleted flag, but records the error so that the programmer can use the TaskError method to find out what went wrong.

When RunPeriodicTasks sees that the hasCompleted flag is set, it will call CPPNode411’s DoCompletedAction method:

 void CPPNode411::DoCompletedAction (void)

As mentioned earlier, this method is used exclusively to free up memory allocated in StartNodeLookup before calling the inherited method which will call the completion routine the user passed to StartNodeLookup. Here’s an example of such a completion routine:

void NodeLookupCompleted  (CPPObject *TheTask)
/* add each 'found' node to a list of users */
 CPPNode411 *LookupTask = (CPPNode411 *)TheTask;
 long   numFound;
 numFound = LookupTask->NumNodesFound(&BTemp);
 if (numFound && BTemp)
 for (long i = 1; i <= numFound; i++)
     UserList->AddNode(LookupTask->NthNode (i, FALSE));

Though the guts of the Start, DoPeriodic, and DoCompleted code are different in CPPZone411 and every other periodic task, the basic strategy remains the same: allocate memory for the call in Start, check the ioResult flag in DoPeriodicAction, and deallocate the memory in DoCompletedAction.

A third task which falls partially under the pervue of 411 is CPPConfirmTask, which takes a CPPNodeInfo object and a completion routine, and sets a flag to indicate whether the node still exists on the network. The unique parts of its public declaration are shown below:

class CPPConfirmTask : public CPPPeriodicTask {
 CPPConfirmTask (CPPTaskManager *TaskManager,
 long minPeriod = 120,
      Boolean deleteWhenDone = TRUE);
 ~CPPConfirmTask (void);
 BooleanNodeExists (void);
 void   StartNodeConfirm (CPPNodeInfo *TheNode,
   CompletionProc DoProc);

The Three R’s and the Other Guy

When using the PPC Toolbox to exchange data, the strategy is to open a connection on your computer, wait for someone to start a session with you, perform all necessary reads and write, then close the session. We will, therefore, need four more tasks to let us exchange data over the network - ‘read’, ‘write’, and ‘respond to connection requests’. Oh yes, and ‘initiate connection requests’.


Listening for a connection is done by posting a PPCInform call; connections can be accepted or rejected based on authentication information which the caller provides. In the ACL, CPPMaBell’s OpenCommunicationPort is used to open a port on your machine which someone can connect to. A subclass of CPPPeriodicTask called CPPListenTask does the ‘waiting’ by posting and polling a PPCInform call. In its current form, it automatically accepts all connections which people try to form with it. If you wanted to provide authentication, you could simply subclass CPPListenTask, set it to not automatically accept, then have its DoCompletedAction method perform the needed verification. The unique parts of the declaration for CPPListenTask are shown below:

class CPPListenTask : public CPPPeriodicTask {
 CPPListenTask (CPPTaskManager *TaskManager,
 long minPeriod = 120,
 Boolean deleteWhenDone = TRUE);
 ~CPPListenTask (void); 
 PPCSessRefNum GetNewSessionID (void);
 void   GetConnectedToInfo (Boolean *hasConnected,
 LocationNamePtr *Location,
 PPCPortPtr *PortRec);
 void   StartListenTask (PPCPortRefNum PortID, 
 CompletionProc DoProc);
 PPCSessRefNum   sessionID;

You start the connection task by passing it the reference number of the port opened by CPPMaBell, and a completion routine. When the task completes, you can get the reference number for the session, and information about the person you are connected to using the GetNewSessionID and GetConnectedToInfo methods. The guts of StartListenTask are merely a modification of the code in IM:IAC, p. 11-36, and so are not repeated here.


Once a connection is open, a PPCRead task should be posted asynchronously to receive any data coming in on the connection. The ACL task which lets you do this is called CPPReadTask; the unique parts of its declaration are shown below.

class CPPReadTask : public CPPPeriodicTask {
 CPPReadTask (CPPTaskManager *TaskManager,
  long minPeriod = 120,
  Boolean deleteWhenDone = TRUE);
 ~CPPReadTask (void);
 long   GetDataSize (void);
 Handle GetData (Boolean BecomeOwner, 
 Boolean *AmITheOwner);
 void   StartReadTask (PPCSessRefNum ConnectionID, 
  short blockSize,
    CompletionProc DoProc);
 PPCSessRefNum sessionID;

You start a CPPReadTask by specifying a session number (obtained from CPPListenTask) and the size of the blocks you want to read. CPPReadTask starts out with an empty data handle, and a buffer of size blockSize in which data is temporarily stored. As data is sent over to it from the other end of the connection, it is accumulated into the data handle in blockSize sized chunks. The ‘optimal’ block size to use will depend heavily on the application; for transmitting typed messages, 128 bytes is probably fine; for doing file-transfers, you probably want to go to 1024 or 2048 bytes per block.

When the task is completed, GetDataSize tells you how much was read, and GetData returns a handle to the data and lets you establish ownership of it. The distinction of who owns the actual data handle becomes important when more than one object calls GetData on the same CPPReadTask. It is also important to determine whether the data will remain after the CPPReadTask is deleted. When you call GetData, you use BecomeOwner to tell it whether or not you will take responsibility for disposing of the handle. When you get the handle back, the AmITheOwner variable is set to indicate whether you succeeded in getting ownership of the handle, or whether someone else already owns it.

Note that a good time to post the first CPPReadTask on an open connection is in the completion task of the CPPListenTask which received the connection in the first place. I did not do this in CPPListenTask both to make it more flexible and to reduce the coupling between classes in the ACL, but the CPPYListenTask subclass used by the Yenta application uses this strategy most effectively.


On the other end of the connection from PCCInform and PPCRead, a PPCWrite task must be posted asynchronously to dump a chunk of data across the network. This duty is carried out by CPPWriteTask class (declaration below).

class CPPWriteTask : CPPPeriodicTask {
 CPPWriteTask (CPPTaskManager *TaskManager, 
 long minPeriod = 120, 
 Boolean deleteWhenDone = TRUE);
 ~CPPWriteTask (void);
 void StartWriteTask (Ptr DataToWrite, Boolean OwnsData,
 PPCSessRefNum ConnectionID,
 CompletionProc DoProc,
 OSType DataType = "????",
 OSType DataCreator = "????");
 void   StartWriteTask (PPCPortRefNum SourcePortRefNum,
 CPPNodeInfo *SendTo,
 Ptr DataToWrite, Boolean OwnsData,
 CompletionProc DoProc,
 OSType DataType = "????",
 OSType DataCreator = "????");

To provide flexibility, this task may be started in one of two ways. The first is to pass it a CPPNodeInfo object corresponding to the network entity you want to communicate with, the data, the ownership flag, and the block’s type and creator. In this case the write task synchronously establishes the session for you, making the assumption that the person you are trying to talk to has followed the naming conventions for ACL objects (see the description of CPPMaBell). A drawback of using synchronous connect is that you cannot connect to another port on your own computer.

The second way to start CPPWriteTask is to pass it the reference number of an established connection (which requires that you establish the connection yourself) along with the data you want to send, a boolean flag indicating whether it is allowed to dispose of the data on completion, and the type and creator of the data block.

“But how do I establish a connection?” Funny you should ask. The ACL provides a class which lets you asynchronously establish a connection with another network entity and return the reference number of the established connection. The declaration for this class (CPPConnectTask) is shown below.

class CPPConnectTask : CPPPeriodicTask {
 CPPConnectTask (CPPTaskManager *TaskManager, 
     long minPeriod = 120, 
     Boolean deleteWhenDone = TRUE);
 ~CPPConnectTask (void);
 PPCSessRefNum GetSessionID (Boolean *isDone);
 void   StartConnectTask (
  PPCPortRefNum SourcePortRefNum,
      CPPNodeInfo *ConnectTo,
      CompletionProc DoProc);
 PPCSessRefNum sessionID;    

As with the second StartWriteTask call, all you have to do is pass it the reference number of the port on your computer, and the network address of an entity which you wish to talk to and has followed the naming conventions for ACL network objects. When the task completes, you can use the GetSessionID call to get the reference number to pass to the second StartWriteTask call.

And Closing?

When you have finished reading and writing data across a session, you can call CPPMaBell::CloseSession to close the connection between the two computers. Something to be wary of when you are figuring out where to make the call to CloseSession, is that closing from the writer’s end can sometimes interrupt the read task. It is much better to have the end which does the reading close the session when it completes so that you can be sure that it actually receives all the data it was sent. Ideally CloseSession would be called by CPPReadTask’s completion method, which could then post another CPPListenTask (sort of like having CPPListenTask’s completion method posting a CPPYReadTask). The ACL’s CPPReadTask does not do this, since it would create restricting dependencies on the CPPReadTask and CPPListenTask, but you are encouraged to implement this behavior in a subclass of CPPReadTask.

That’s All Folks

Believe it or not, we’ve covered the entire Appletalk Class Library. As you’ve noticed, the only data transmission protocol I use is that provided by the PPC Toolbox. With the information provided by the CPPNodeInfo class, you should be able to subclass CPPPeriodicTask to provide support for ATP, DDP, ADSP, or any other protocol you care to use.


Yenta, as I mentioned before, is an application built entirely in C++ which uses the ACL to do its communications, and a set of home-rolled TCL-like classes to provide the interface. The main window of the application is shown in Figure 1.

Figure 1. The Yenta “Send” Window

On the left is a list of all known zones. The magnifying glass button will re-load the list of zones which is automatically loaded when you run the application. Double-clicking on an item in the zone list will cause the program to scan that zone for other Yenta applications. If any are found, they are placed in the list on the right side, which tracks the names and addresses of all users who you know about on all of the zones listed on the left.

Near the bottom is a scrollable text area in which you can type up to 32K of text (can we say TEHandle? I knew you could). To send the text to another user(s), you can either double-click on a single name in the user list, or shift-click on several names and press the send button. If the ‘echo’ checkbox is on, your message is placed in a scrolling text-edit window (shown in figure 2) along with a log of all your incoming messages.

Figure 2. The Yenta “Message Log” Window

In case you leave your computer for any length of time, a feature called AutoReply in the file menu lets you type in a string which is echoed back to any other Yenta application which sends you a message when AutoReply is active.

Also available from the File menu is a Preferences dialog (shown in figure 3) which lets you give Yenta explicit instructions on how to maintain the user list. By default, users are added to the list when they send you messages or whenever you ask Yenta to scan a zone for new users. In the Preferences dialog you can specify a rate at which the application should 1) scan all known zones for new users, and 2) confirm each of the addresses in the right-hand list. Scan causes new users to be added to the list automatically, and confirm causes them to be removed if they are no longer visible on the network. You can also use the Preferences dialog to specify a sound to be played when messages are received (very useful!) and when a user logs on or logs off (marginally useful).

Figure 3. The Yenta “Preferences” Dialog


Yenta is set to run in a 500 K partition, and should function properly on any Macintosh running System 7 with program linking turned on.

What’s Involved

Not much, actually. In order to provide the basic communications features of Yenta, I only had to subclass two classes in the ACL - CPPReadTask and CPPListenTask. Implementing the auto-scan/confirm features required the construction of five more descendants of CPPPeriodicTask. The interface required about 40 other classes, but I’m not going into those in detail here. The approach I will take in going over all this is to talk about the two new classes and how they work, then show how all of the basic communications classes are used in the application. After that I will discuss the periodic task classes which implement the scan and confirm features. Figure 4 presents an overview of the tasks used by the Yenta application, which may help you to sort out who is doing what to whom.

Figure 4. Yenta’s Task Generation Map

Customizing the ACL

Back when I was discussing listening, reading, and writing, I noted that it could be beneficial to create links between the CPPListenTask and CPPReadTask classes so that when a listen completed it would spawn a read, and vice versa. That is essentially what the two new classes do. As a result, the only method we override in each class is DoCompletedAction. Both overloaded methods are listed below.

void  CPPYListenTask::DoCompletedAction (void)
 CPPYReadTask  *DoRead = NULL;
 if (this->callResult = noErr)
   DoRead = new CPPYReadTask (this->ourManager, 15, TRUE);
   DoRead->StartReadTask(this->sessionID, 100, NULL);

void  CPPYReadTask::DoCompletedAction (void)
 CPPYListenTask  *LTask = NULL;
 Handle TempHandle = this->GetData (FALSE, &AmITheOwner);
 EndRec.sessRefNum = this->sessionID; // close connection
 this->callResult = PPCEnd (&EndRec, FALSE);
   LTask = new CPPYListenTask (this->ourManager, 60, TRUE);
   LTask->StartListenTask(gOurPort, NULL);

The details of CPPYListenTask’s completion routine are fairly intuitive; if the listen task completes successfully it creates a new CPPYReadTask and starts it running on that session, using a period of 100 ticks.

The details of CPPYReadTask’s completion routine requires a bit more explaining, as it involves classes in other parts of the program. gTalkText is a queue which holds pointers to blocks of data - in this case messages received by the application. DoCompletedAction copies the received data into a pointer using Hand2Ptr, then adds it to the ‘received message’ queue. It then closes the connection and starts a new CPPYListenTask with a 60 tick period to wait for someone else to talk to us.

How It All Fits:

Listening and Reading

The nice thing about this tight link between the read and listen tasks is that once we have opened the communications port and posted the first listen task, everything else is done automatically; without our ever having to tell it to, the port is always engaged in reading or listening. The code which starts the whole thing off is part of the s method, and is shown below.

CPPMaBell *gMaBell;
CPPTaskManager *gSlaveDriver;
gMaBell = new CPPMaBell (TRUE);
if ((ErrCode = gMaBell->InitPPCToolbox()) != noErr)
 ErrorAlert (ErrCode, NULL);
// create the lookup/read/write task manager
gSlaveDriver = new CPPTaskManager();
// open the port we will use to communicate through
if ((ErrCode = gMaBell->OpenCommunicationPort (ObjString, 
   gAppName, &gOurPort)) != noErr)
 ErrorAlert (ErrCode, "\pCan't open a port to communicate with.");
// Set up a ConnectionTask to handle communications 
LTask = new CPPYListenTask(gSlaveDriver, 60, TRUE);
LTask->StartListenTask(gOurPort, NULL);

When the application is shutting down, we simply delete gSlaveDriver - which causes any outstanding tasks to be aborted and deleted, closes gOurPort, and deletes gMaBell to shut down Appletalk.


Writing data to other users is also a fairly simple process. All writing is done from the ‘Send’ window, so I created a method within it called SendToUser, the details of which are shown below.

void  CPPSendWindow::SendToUser(Ptr Text, Boolean ownsData, 
 CPPNodeInfo *SendTo)
 CPPWriteTask  *TheTask;
    // have the write task open the connection
 TheTask = new CPPWriteTask (gSlaveDriver, 25, TRUE);
 TheTask->StartWriteTask (gOurPort, SendTo, Text, ownsData, 
 NULL, (OSType)'TEXT', (OSType)'YntA');      

SendToUser simply creates a CPPWriteTask and uses the ‘automatic connect’ version of StartWriteTask to send the data to the specified user.

SendToUser is used by two other methods within CPPSendWindow - the method which responds to the user pressing the send button, and the method which sends the AutoReply string back to someone who sends us a message. Looking at these two methods will complete our coverage of how writing is done within Yenta. Let’s look at the AutoReply method first:

void  CPPSendWindow::GotNewMessage (CPPNodeInfo *FromWhom)
 Ptr    TempPtr, OurIDStream;
 OSErr  ErrCode;

    // send autoreply message if feature is on
   if (gReplyString)
    // Create a string with our name and address in it
 OurIDStream = gOurIdentity->InfoToStream();
    // create a pointer to hold our address & the reply string
 TempPtr = NewPtr (GetPtrSize(OurIDStream) 
 + gReplyString[0]);
 if ((ErrCode = MemError()) == noErr)
   BlockMove (OurIDStream, TempPtr,GetPtrSize(OurIDStream));
   BlockMove (gReplyString+1,
 DisposPtr (OurIDStream);
    // send the autoreply to the user who sent us the message
 SendToUser (TempPtr, TRUE, FromWhom);
    // Add the user to the list
 if (this->UserList->AddNewUser(FromWhom))
   if (gPrefsInfo.playLogon)

This method is called every time a message is taken from the message queue. The first part checks a StringPtr called gReplyString; if AutoReply is turned on, gReplyString points to the AutoReply message, otherwise it is NULL. Because the standard format for Yenta messages requires that the address of the sender be included with the message, we first use CPPNodeInfo’s InfoToStream method to convert our address to a pointer, copy the string and the address into another pointer, then ask SendToUser to deliver the message. Note that the write task is given the responsibility for deleting the pointer when it completes.

The method which responds to the user pressing the send button is named (rather predictably) DoSendButton. The first part of the method collects information about the text to be sent, then constructs the message, storing it in a variable called TempPtr. It also stores the total number of selected users in the variable NumToSendTo, then enters the following loop:

    // send text to each hilighted user
 while (this->UserList->NextSelectedCell(&whichUser))
   UserData = (CPPNodeInfo *)((*this->UserList)[whichUser]);
   if (UserData && !(UserData->Equals(gOurIdentity)))
     SendToUser (TempPtr, NumToSendTo == 1, UserData);

Each selected user’s CPPNodeInfo object is extracted from the user list, and the data sent to each of them using the SendToUser method. Note that the write task is only given permission to dispose of the data if there is one user selected.

When you send to more than one user, the matter of disposing of the write data becomes a bit more complicated, because there are no hard-and-fast rules for determining which write task should actually be given permission to dispose of the data. You can’t give permission to any one task in particular, since you have no guarantee that any particular task will complete after all of the others. Similarly, you can’t let the application dispose of the memory directly after the loop, since not all the tasks may have completed by then. You could create a copy of the data for each user and give each task ownership of its copy, but consider the problem of sending 10K of data to 50 users; you tend to run out of memory rather quickly.

The solution which I came up with was to create a subclass of CPPPeriodicTask which could hold on to the data pointer, and wait for all of the write tasks to complete before disposing of it. This class, called CPPWatchWriteTasks, accomplishes this task by calling its PTM’s HowManyTasksOfType method with the name “CPPWriteTask” until the count reaches zero, then completing and deleting the pointer it was given. The following fragment comes directly after the ‘send’ loop shown above:

    // keep track of 'write' data until all tasks complete
 if (NumToSendTo != 1)
   WatchTask = new CPPWatchWriteTasks (gSlaveDriver, 60);

The Final Pieces

The last two features to discuss are the program’s ability to automatically scan known zones for new users and to confirm the presence of known users. Each of these features required the creation of two subclasses of CPPPeriodicTask: one which does the actual work, and the other which simply triggers it every n minutes. Let’s look at the details of the trigger classes first.

There are two trigger classes - CPPSpawnZoneTask and CPPSpawnConfirmTask. Each class has three elements in common: 1) a private variable of the type task it triggers (CPPScanZones or CPPConfirmUsers respectively), 2) a Start??? method which initializes the private variable and enqueues the task, and 3) a DoPeriodicTask method which, when called, calls Start??? on that private variable. Below is the code for one of their DoPeriodicTask methods; the other is identical in style.

void  CPPSpawnZoneTask::DoPeriodicAction (void)
/* if the Scan task has completed, ask it to scan again; */
    // call the inherited method to update frequency count
 if (scanTask->hasCompleted)
   scanTask->StartScanZones (NULL);

A key feature of both trigger tasks is that they never complete. (What, never? No, never!) Both of them remain in the queue until they are either explicitly removed or until the application shuts down. Boring, but useful. Time to move on to the gruntwork classes - CPPScanZones and CPPConfirmUsers.


CPPScanZones is a fairly unassuming descendant of CPPPeriodicTask. It has a single unique method - StartScanZones, and three private variables, shown below:

class CPPScanZones : public CPPPeriodicTask {
 void   StartScanZones (CompletionProc DoProc);
 CPPStringList *zoneList;
 CPPNode411 *lookupTask;
 long   whichZone; 

When StartScanZones is called, it copies the list of zones in the Send window into the zoneList variable, allocates the lookupTask object, and sets whichZone to 1. Its DoPeriodicTask method looks like this:

void  CPPScanZones::DoPeriodicAction (void)
/* if the lookup has completed, advance to the next zone and start another lookup */
 Str32  TypeStr;
 Str255 STemp;
    // call the inherited method to update frequency count

 if (lookupTask->hasCompleted)
   if (this->whichZone <= this->zoneList->GetNumItems())
   ZoneName = (*zoneList)[this->whichZone];
 PStrCat (32, TypeStr, 2, "\p •", gAppName);
 lookupTask->StartNodeLookup("\p=", TypeStr, 
 ZoneName, 50, ProcessNodeLookupResults);
 PStrCat (255, STemp, 3, "\pScanning zone '", 
 ZoneName, "\p' for new users.");
      SetStatusMessage (STemp, TRUE);
      this->hasCompleted = TRUE;
      this->callResult = noErr;

At each iteration, it gets the name of the next zone in the list and starts the CPPNode411 task looking for all objects in that zone which match the ACL naming convention, using the application name as the PortType (see the discussion of CPPMaBell’s OpenCommunicationPort method). The global routine ProcessNodeLookupResults takes each node in the ‘found’ list and passes it to the user list, which then determines whether the node is already in the list or not.


CPPConfirmUsers is also a fairly unassuming task, with a declaration similar to that of CPPScanZones:

class CPPConfirmUsers : public CPPPeriodicTask {
 void   StartConfirmUsers (CompletionProc DoProc);
 CPPObjectList   *nodeList;
 CPPConfirmTask  *confirmTask;
 long   whichNode;

StartConfirmUsers copies the list of known addresses from the Send window into the nodeList variable, allocates the confirmTask object, and sets whichNode to 1. It’s DoPeriodicTask method follows:

void  CPPConfirmUsers::DoPeriodicAction (void)
 CPPNodeInfo*TheNode = NULL;
 Str255 STemp;

 if (confirmTask->hasCompleted)
   if (this->whichNode <= gUserList->GetNumItems())
      TheNode = (CPPNodeInfo *)((*gUserList)[whichNode]);
                  // tell the user we are confirming this connection
      UsersName = ShortName (TheNode);
 PStrCat (255, STemp, 2, "\pSearching for ", UsersName);
      SetStatusMessage (STemp, TRUE);
      this->hasCompleted = TRUE;
      this->callResult = noErr;

In a manner similar to CPPScanZones, it iterates through its list, extracting each user address in turn and activating the confirm task. Note that it assigns a completion routine to CPPConfirmTask. This is done primarily so that we don’t have to create a specific subclass of CPPConfirmTask. The completion routine simply asks the user list to delete the specified user if the NodeExists method returns FALSE (indicating that the confirm task failed to find the user on the network).

In Conclusion

Believe it or not, we’re done. As promised, I haven’t discussed any of the interface classes/application framework which I used to put Yenta together. If you are comfortable with the TCL, you probably needn’t bother, unless you want to work entirely in C++. If, like me, you find the TCL a bit baroque and unintuitive, you might want to look over the classes I’ve constructed. They don’t provide as many fancy features as the TCL (embedded scrolling panes, etc.) but most of the classes map pretty directly onto the Macintosh user interface, which I think makes it easier to use. If there is enough interest, I may discuss parts of it at a later date. If anyone finds any bugs (bound to be in there, somewhere!), or comes up with any neat classes which add functionality to either the ACL or my interface class library, please snail/e-mail me and let me know. Feel free to modify, subclass, and experiment like mad. Good hacking to you all!



Inside AppleTalk, Second Edition. Addison-Wesley Publishing Company. Good overview of network topology and communication protocols.

Pierce, Michael. Programming with Appletalk. Addison-Wesley Publishing Company. Great overview of the nitty-gritty details; lots of ‘how to’ code.

Technical Manuals

Inside Macintosh, Vol II, chapter 10

Inside Macintosh, Vol V, chapter 28

Inside Macintosh, Vol VI, chapters 7 and 32

Inside Macintosh:Interapplication Communication, chapter 11

Software (available from Apple DTS)

Network Watch (DMZ)

Neighborhood Watch



Community Search:
MacTech Search:

Software Updates via MacUpdate

Tor Browser 11.5.8 - Anonymize Web brows...
Using Tor Browser you can protect yourself against tracking, surveillance, and censorship. Tor was originally designed, implemented, and deployed as a third-generation onion-routing project of the U.... Read more
Alarm Clock Pro 15.0 - $19.95 (91% off)
Alarm Clock Pro isn't just an ordinary alarm clock. Use it to wake you up in the morning, send and compose e-mails, remind you of appointments, randomize the iTunes selection, control an internet... Read more
Google Chrome 107.0.5304.121 - Modern an...
Google Chrome is a Web browser by Google, created to be a modern platform for Web pages and applications. It utilizes very fast loading of Web pages and has a V8 engine, which is a custom built... Read more
calibre 6.9.0 - Complete e-book library...
Calibre is a complete e-book library manager. Organize your collection, convert your books to multiple formats, and sync with all of your devices. Let Calibre be your multi-tasking digital librarian... Read more
Safari Technology Preview 16.4 - The new...
Safari Technology Preview contains the most recent additions and improvements to WebKit and the latest advances in Safari web technologies. And once installed, you will receive notifications of... Read more
FileZilla 3.62.2 - Fast and reliable FTP...
FileZilla (ported from Windows) is a fast and reliable FTP client and server with lots of useful features and an intuitive interface. The FileZilla Client not only supports FTP, but also FTP over TLS... Read more
djay Pro 4.0.13 - Transform your Mac int...
djay Pro provides a complete toolkit for performing DJs. Its unique modern interface is built around a sophisticated integration with iTunes and Spotify, giving you instant access to millions of... Read more
Opera 93.0.4585.21 - High-performance We...
Opera is a fast and secure browser trusted by millions of users. With the intuitive interface, Speed Dial and visual bookmarks for organizing favorite sites, news feature with fresh, relevant content... Read more
AppCleaner 3.6.6 - Uninstall your apps e...
AppCleaner allows you to uninstall your apps easily. It searches the files created by the applications and you can delete them quickly. Supports macOS Ventura. Fixed an issue causing failed updates... Read more
QuickBooks - Financial manag...
QuickBooks helps you manage your business easily and efficiently. Organize your finances all in one place, track money going in and out of your business, and spot areas where you can save. Built for... Read more

Latest Forum Discussions

See All

‘Top Hunter Roddy & Cathy’ Review –...
The NEOGEO is generally characterized by, with only a few notable exceptions, fighting games and Metal Slug. Within a couple of years of its launch, the vast majority of the output on the console seemed to be mining (quite successfully) a few... | Read more »
SwitchArcade Round-Up: Reviews Featuring...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for November 28th, 2022. In today’s article, we’ve got a pair of reviews to check out. Full reviews of Pokemon Scarlet and Violet and The Oregon Trail are waiting for you to read. There’... | Read more »
‘OPUS: Echo of Starsong’ Interview: Port...
With OPUS: Echo of Starsong ($8.99) having finally launched on iOS after hitting PC and consoles, I had a chance to talk to Scott Chen who is the co-founder and executive producer of Sigono. In our chat, I touched on topics like game subscription... | Read more »
Best iPhone Game Updates: ‘Rush Rally 3’...
Hello everyone, and welcome to the week! It’s time once again for our look back at the noteworthy updates of the last seven days. As November breaths its last, the holiday season is right around the corner. That means we should start seeing more... | Read more »
‘Total Football’ is an Arcade-Style Socc...
GALA SPORTS recently launched its brand new soccer title, Total Football, and, true to its name, it is a pure arcade-style soccer game in the same vein as FIFA Mobile and PES Mobile. It also features official licensing from FIFPro and Manchester... | Read more »
Genshin Impact will recieve two new char...
HoYoverse has announced that Genshin Impacts version 3.3 will be arriving on December 7th. Titled All Senses Clear, All Existence Void, the update will bring two powerful new characters and a brand new card-based minigame. [Read more] | Read more »
‘Wreckfest’ Mobile Compared With Console...
HandyGames’ mobile version of Bugbear’s demolition derby-style racer Wreckfest ($9.99) released on iOS and Android recently, and we featured it as our Game of the Week. | Read more »
Black Friday Deals Here – The TouchArcad...
After taking a couple of weeks off we return on this glorious Black Friday with another episode of The TouchArcade Show. We get into a big discussion about virtual assistants like Alexa, Siri, and Google, and their place in the greater smarthome... | Read more »
TouchArcade Game of the Week: ‘Station 1...
I’m a big fan of Glitch Games and their unique brand of point-and-click adventure/escape room/puzzle games, and while they’re a tiny outfit and there’d typically be a couple years gap in-between their new releases, they were always worth the wait.... | Read more »
SwitchArcade Round-Up: ‘Super Lone Survi...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for November 25th, 2022. Today we look at the remaining releases for the week, and I’ll be honest with you: it’s not a great assortment. Still, there are at least a couple of things... | Read more »

Price Scanner via

Cyber Monday: 24″ Apple M1 iMacs for $150 off...
Amazon has Apple’s 24″ M1 iMacs on Black Friday sale for $150 off MSRP. Their prices are currently the lowest available for new iMacs among the Apple retailers we track: – 24″ M1 iMacs (8-Core CPU/7-... Read more
Cyber Monday Sale: 25% off Apple MagSafe acce...
Apple retailers are offering MagSafe accessories for up to 25% off MSRP for Cyber Monday. Here are the best deals available, currently from Verizon and Amazon: (1) Verizon has Apple MagSafe Chargers... Read more
Cyber Monday Sale: Apple AirPods for up to $1...
Looking for Apple AirPods, AirPods Pro, or AirPods Max this Cyber Monday? Look no further than our Apple AirPods Price Tracker. We track prices from 20+ Apple retailers and update the tracker... Read more
Final day for Apple’s Black Friday/Cyber Mond...
CYBER MONDAY Apple’s four day Black Friday/Cyber Monday 2022 event is now live and will run from November 25, 2022 to November 28, 2022 (ends today!). Receive a free $100-$250 Apple Gift Card with... Read more
Cyber Monday: Apple 13″ M2 MacBook Airs for $...
Apple retailers have posted their Cyber Monday prices on 13″ MacBook Airs. Take up to $200 off MSRP on M2-powered Airs with these sales with prices starting at only $1049. Free shipping is available... Read more
The best Cyber Monday iPhone sale? This $500...
If you switch to Xfinity Mobile and open a new line of service, they will take $500 off the price of a new iPhone, no trade-in required. This is the best no trade-in Cyber Monday Apple iPhone 14 deal... Read more
Cyber Monday Sale: Apple 16″ MacBook Pros for...
Amazon is offering $500 off MSRP discounts on Apple 16″ MacBook Pros with M1 Pro CPUs as part of their Cyber Monday sale. Their prices are the lowest available for these models from any Apple... Read more
Cyber Monday Sale: Apple 14″ MacBook Pros for...
Amazon is offering $300-$500 off MSRP discounts on Apple 14-inch MacBook Pros with M1 Pro CPUs as part of their Cyber Monday sale. Their prices are the lowest available for these models from any... Read more
Cyber Monday Sale: Apple Watch Ultra for $60...
Amazon has Apple Watch Ultra models (Alpine Loop, Trail Loop, and Opean Bans) on sale for $60 off MSRP as part of their Cyber Monday sale, each including free shipping, reducing the price for an... Read more
Cyber Monday MacBook Sale: 13″ M1 Apple MacBo...
Amazon has Apple 13″ M1 MacBook Airs back on sale for $200 off MSRP, starting at only $799, for Cyber Monday 2022. Their prices are the lowest available for new MacBooks this Cyber Monday. Stock may... Read more

Jobs Board

*Apple* Electronic Repair Technician - PlanI...
…a highly motivated individual to join our Production Department as an Apple Electronic Repair Technician. The computer repair technician will diagnose, assemble, Read more
Product Manager II - *Apple* - DISH (United...
…you will be doing We seek an ambitious, data-driven thinker to assist the Apple Product Development team as our new Retail Wireless division continues to grow and Read more
Staff Engineer 5G Protocol, *Apple* - DISH...
…metrics. Essential Functions and Responsibilities for a Staff Engineer 5G protocol( Apple ) Knowledge of 5G and 4G/LTE protocols and system architectures Experience Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States ( - Apple Blossom Mall Read more
Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States ( - Apple Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.