picofuse-objc

NXStreamSource.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include "NXEventSource.h"
9 
41 @private
42  NXStream *_stream;
43  id _target;
44  SEL _readable;
45  SEL _writable;
46  void *_device;
47  uintptr_t _attachment;
48  void *_attached;
49  NXStreamSource *_next;
50 }
51 
63 + (NXStreamSource *)sourceWithStream:(NXStream *)stream
64  target:(id)target
65  readable:(SEL)readable
66  writable:(SEL)writable;
67 
71 - (NXStream *)stream;
72 
76 - (BOOL)isAttached;
77 
78 @end
A stream of bytes, which can be read or written.
Definition: NXStream.h:38
Foundation framework header.
NXStream * stream()
Returns the stream.
Something which produces events, such as a timer, while it's attached to the application with -[NXApp...
Definition: NXEventSource.h:17
BOOL isAttached()
Returns YES if it's attached, so its messages are sent.
Defines the NXEventSource protocol, for what produces events for an application.
bool BOOL
A Boolean value.
Definition: runtime.h:60
Sends a message to a target when a stream has something to read, or room to write, as an event source of the application.
The base class for objects in the Foundation framework.
Definition: NXObject.h:28
const struct objc_selector * SEL
A pointer to a method selector.
Definition: runtime.h:23
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18