objc

NXApplication.h
1 
9 #pragma once
10 #include <Foundation/Foundation.h>
11 #include <runtime-hw/hw.h>
12 
30 @interface Application : NXObject {
31 @private
32  id<ApplicationDelegate> _delegate;
33  BOOL _run;
34  int _exitstatus;
35  NXArray *_args;
36 }
37 
42 
52 - (NXArray *)args;
53 
63 
73 - (void)terminate;
74 
86 - (void)terminateWithExitStatus:(int)status;
87 
88 @end
Foundation framework header.
id< ApplicationDelegate > delegate()
Gets the current application delegate.
The main application class that coordinates application-wide functionality.
Definition: NXApplication.h:30
Hardware interface abstraction layer.
bool BOOL
A Boolean value.
Definition: runtime.h:60
id sharedApplication()
Returns the shared application instance.
The NXArray classNXArray represents an array that can store ordered objects.
Definition: NXArray.h:19
The base class for objects in the Foundation framework.
Definition: NXObject.h:21
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18
NXArray * args()
Returns command-line arguments passed to the application.
void terminate()
This method notifies the app that you want to exit the run loop.