using Apple's Application and ApplicationAdapter classes.