ObjFW
Loading...
Searching...
No Matches
<OFApplicationDelegate> Protocol Reference

A protocol for delegates of OFApplication. More...

#include <ObjFW/ObjFW.h>

Inheritance diagram for <OFApplicationDelegate>:
<OFObject>

Instance Methods

(void) - applicationDidFinishLaunching:
 A method which is called when the application was initialized and is running now.
 
(void) - applicationWillTerminate:
 A method which is called when the application will terminate.
 
(void) - applicationDidReceiveSIGINT
 A method which is called when the application received a SIGINT.
 
(void) - applicationDidReceiveSIGHUP
 A method which is called when the application received a SIGHUP.
 
(void) - applicationDidReceiveSIGUSR1
 A method which is called when the application received a SIGUSR1.
 
(void) - applicationDidReceiveSIGUSR2
 A method which is called when the application received a SIGUSR2.
 
- Instance Methods inherited from <OFObject>
(Class) - class
 Returns the class of the object.
 
(nullable Class) - superclass
 Returns the superclass of the object.
 
(unsigned long) - hash
 Returns a hash for the object.
 
(unsigned int) - retainCount
 Returns the retain count.
 
(bool) - isProxy
 Returns whether the object is a proxy object.
 
(bool) - isKindOfClass:
 Returns a boolean whether the object is of the specified kind.
 
(bool) - isMemberOfClass:
 Returns a boolean whether the object is a member of the specified class.
 
(bool) - respondsToSelector:
 Returns a boolean whether the object responds to the specified selector.
 
(bool) - conformsToProtocol:
 Checks whether the object conforms to the specified protocol.
 
(nullable IMP- methodForSelector:
 Returns the implementation for the specified selector.
 
(nullable id) - performSelector:
 Performs the specified selector.
 
(nullable id) - performSelector:withObject:
 Performs the specified selector with the specified object.
 
(nullable id) - performSelector:withObject:withObject:
 Performs the specified selector with the specified objects.
 
(nullable id) - performSelector:withObject:withObject:withObject:
 Performs the specified selector with the specified objects.
 
(nullable id) - performSelector:withObject:withObject:withObject:withObject:
 Performs the specified selector with the specified objects.
 
(bool) - isEqual:
 Checks two objects for equality.
 
(instancetype) - retain
 Increases the retain count.
 
(void) - release
 Decreases the retain count.
 
(instancetype) - autorelease
 Adds the object to the topmost autorelease pool of the thread's autorelease pool stack.
 
(instancetype) - self
 Returns the receiver.
 
(bool) - allowsWeakReference
 Returns whether the object allows a weak reference.
 
(bool) - retainWeakReference
 Retain a weak reference to this object.
 

Detailed Description

A protocol for delegates of OFApplication.

Note
Signals are not available on AmigaOS!

Method Documentation

◆ applicationDidFinishLaunching:

- (void) applicationDidFinishLaunching: (OFNotification *) notification

A method which is called when the application was initialized and is running now.

Parameters
notificationA notification with name OFApplicationDidFinishLaunchingNotification

◆ applicationDidReceiveSIGHUP

- (void) applicationDidReceiveSIGHUP
optionalrequired

A method which is called when the application received a SIGHUP.

This signal is not available on Windows.

Warning
You are not allowed to send any messages inside this method, as message dispatching is not signal-safe! You are only allowed to do signal-safe operations like setting a variable or calling a signal-safe function!

◆ applicationDidReceiveSIGINT

- (void) applicationDidReceiveSIGINT
optionalrequired

A method which is called when the application received a SIGINT.

Warning
You are not allowed to send any messages inside this method, as message dispatching is not signal-safe! You are only allowed to do signal-safe operations like setting a variable or calling a signal-safe function!

◆ applicationDidReceiveSIGUSR1

- (void) applicationDidReceiveSIGUSR1
optionalrequired

A method which is called when the application received a SIGUSR1.

This signal is not available on Windows.

Warning
You are not allowed to send any messages inside this method, as message dispatching is not signal-safe! You are only allowed to do signal-safe operations like setting a variable or calling a signal-safe function!

◆ applicationDidReceiveSIGUSR2

- (void) applicationDidReceiveSIGUSR2
optionalrequired

A method which is called when the application received a SIGUSR2.

This signal is not available on Windows.

Warning
You are not allowed to send any messages inside this method, as message dispatching is not signal-safe! You are only allowed to do signal-safe operations like setting a variable or calling a signal-safe function!

◆ applicationWillTerminate:

- (void) applicationWillTerminate: (OFNotification *) notification
optional

A method which is called when the application will terminate.

Parameters
notificationA notification with name OFApplicationWillTerminateNotification

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