Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
OOWeakRefObject Class Reference

#include <OOWeakReference.h>

+ Inheritance diagram for OOWeakRefObject:
+ Collaboration diagram for OOWeakRefObject:

Instance Methods

(id) - weakSelf
 
(id) - weakRetain [implementation]
 
(void) - weakRefDied: [implementation]
 
(void) - dealloc [implementation]
 
- Instance Methods inherited from <OOWeakReferenceSupport>
(id) - OO_RETURNS_RETAINED
 

Protected Attributes

OOWeakReferenceweakSelf
 

Detailed Description

Definition at line 137 of file OOWeakReference.h.

Method Documentation

◆ dealloc

◆ weakRefDied:

- (void) weakRefDied: (OOWeakReference *) weakRef
implementation

Reimplemented from <OOWeakReferenceSupport>.

Definition at line 1 of file OOWeakReference.m.

159 :(OOWeakReference *)weakRef
160{
161 if (weakRef == weakSelf) weakSelf = nil;
162}
return nil
OOWeakReference * weakSelf

◆ weakRetain

- (id) weakRetain
implementation

Definition at line 1 of file OOWeakReference.m.

153{
155 return [weakSelf retain]; // Each caller releases this, as -weakRetain must be balanced with -release.
156}
id weakRefWithObject:(id< OOWeakReferenceSupport > object)

Referenced by StationEntity::abortDockingForShip:.

+ Here is the caller graph for this function:

◆ weakSelf

- (id) weakSelf

Definition at line 1 of file OOWeakReference.m.

173{
174 return [[self weakRetain] autorelease];
175}

Member Data Documentation

◆ weakSelf

- (OOWeakReference*) weakSelf
protected

Definition at line 140 of file OOWeakReference.h.


The documentation for this class was generated from the following files: