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

A protocol that needs to be implemented by delegates for OFKernelEventObserver. More...

#include <ObjFW/ObjFW.h>

Inheritance diagram for <OFKernelEventObserverDelegate>:
<OFObject>

Instance Methods

(void) - objectIsReadyForReading:
 This callback is called when an object did get ready for reading.
 
(void) - objectIsReadyForWriting:
 This callback is called when an object did get ready for writing.
 
(void) - execSignalWasReceived:
 This callback is called when an Exec Signal was received.
 
- 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 that needs to be implemented by delegates for OFKernelEventObserver.

Method Documentation

◆ execSignalWasReceived:

- (void) execSignalWasReceived: (ULONG) signalMask
optionalrequired

This callback is called when an Exec Signal was received.

Note
This is only available on AmigaOS!

◆ objectIsReadyForReading:

- (void) objectIsReadyForReading: (id) object
optional

This callback is called when an object did get ready for reading.

Note
If the object is a subclass of OFStream and tryReadLine (OFStream) or tryReadUntilDelimiter: (OFStream) has been called on the stream, this callback will not be called again until new data has been received, even though there is still data in the cache. The reason for this is to prevent spinning in a loop when there is an incomplete string in the cache. Once the string has been completed, the callback will be called again as long there is data in the cache.
Parameters
objectThe object which did become ready for reading

◆ objectIsReadyForWriting:

- (void) objectIsReadyForWriting: (id) object
optionalrequired

This callback is called when an object did get ready for writing.

Parameters
objectThe object which did become ready for writing

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