picofuse-objc

Instance Methods | Class Methods | List of all members
<NXApplicationDelegate> Protocol Reference

What an application tells its delegate. More...

#import <Application/Application.h>

Instance Methods

(void) - applicationDidStart:watchdogReset:
 Called on worker 0 when the application starts. More...
 
(void) - applicationDidStart:
 Called on worker 0 when the application starts, as -applicationDidStart:watchdogReset: is, which is called instead if the delegate has both. More...
 
(void) - applicationWillTerminate:signal:
 Called on the thread which ran the application, once it has been terminated, every event which was posted has been dispatched, and every worker has finished. More...
 

Class Methods

(NXArray *) + commandLineFlags
 Returns the NXArgument flags which can be given on the command line, for NXApplicationMain, which calls it on the delegate's class once the system has started.
 

Detailed Description

What an application tells its delegate.

Each method is optional.

Definition at line 16 of file NXApplication.h.

Method Documentation

◆ applicationDidStart:()

- (void) applicationDidStart: (NXApplication *)  application
optional

Called on worker 0 when the application starts, as -applicationDidStart:watchdogReset: is, which is called instead if the delegate has both.

Parameters
applicationThe application.

◆ applicationDidStart:watchdogReset:()

- (void) applicationDidStart: (NXApplication *)  application
watchdogReset: (BOOL)  reset 
optional

Called on worker 0 when the application starts.

Events can be posted from here, and none are dispatched, on any worker, until it returns.

Parameters
applicationThe application.
resetYES if the watchdog restarted the device, which is only so when NXApplicationMain started the watchdog.

◆ applicationWillTerminate:signal:()

- (void) applicationWillTerminate: (NXApplication *)  application
signal: (int)  signal 
optional

Called on the thread which ran the application, once it has been terminated, every event which was posted has been dispatched, and every worker has finished.

Parameters
applicationThe application.
signalThe number of the signal which terminated it, such as 15 for TERM, or 0 if it wasn't one. Signals only terminate it when NXApplicationMain handles them.

The documentation for this protocol was generated from the following file: