FACTOID # 102: Kids in Mali spend only 2 years in school. More than half of them start working between the ages of 10 and 14.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

FACTS & STATISTICS    Simple view

  1. Select countries to view: (hold down Control key and click to select several)

     

     

    Compare:

     

     

  1. Select fact or statistic: (* = graphable)

     

     

     

  2. (OPTIONAL) Compare to statistic: (both need to be graphable)

     

     

     

  3. View result as:

     

       
(OR) SEARCH ALL encyclopedia, stats & forums:   

Encyclopedia > AppleEvents

Apple Events are the canonical high-level interprocess communication mechanism in Mac OS, first appearing in System 7 and supported by every version since then, including Mac OS X.


The starting point is a dynamically-typed, extensible descriptor format called an AEDesc, which is just an OSType code specifying the data type, together with a block of type-dependent data. For instance, the OSType code 'inte' indicated that the data was a four-byte signed integer in big_endian format.


Besides predefined type codes for various common simple types, there are two predefined structured descriptor types: an AERecord, which had data type 'reco' (record), and AEList with type 'list' (list or array). The internal structure of these contain recursively_nested AEDescs, while the AERecord also associated each element with a unique record field ID, which is an OSType. The Apple Event Manager provids API calls to construct these structures, as well as extract their contents and query the type of contents they hold.


The Apple Event Manager also supports coercions, which converts AEDescs from one data type to another. In addition to standard coercions (for instance between integer and real types), applications can install their own coercion handler callbacks, which could for example handle conversions to and from custom data types.


An Apple Event proper is an AERecord with fields that depended on the purpose of the event. In addition, it has attributes (which are distinct from record fields, which are now called the parameters of the event) from a set predefined by the Apple Event Manager, specifying such things as the event type and class codes which indicates what the event is supposed to do (both OSTypes), the target address to which the event is to be sent (which could be a process on the local or a remote machine), and various other options for handling it. Remote machines initially had to be connected via AppleTalk, but Mac OS 9 added the option for connections via TCP/IP.


After sending an AppleEvent to its target process, the sending process could elect to receive a reply. This is also an Apple Event, which could contain various bits of information returned from the target about the processing of the request event, including an error code indicating success/failure, or any other appropriate information.


Apple Events are the foundation of the AppleEvent Object Model, which in turn is the foundation of AppleScript.




  Results from FactBites:
 
JavaScript OSA - Responding to AppleEvents (413 words)
AppleEvent names are taken from the host application's AppleEvent dictionary.
If the 4-character codes associated with your AppleEvent handler are non-printable, and thus cannot be used to create a valid JavaScript function name, you can use a special function called OSAInit to install your handlers.
Continuing an AppleEvent allows the event you are processing to be passed on to the host application running your JavaScript script for processing.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.