#include <OOWeakReference.h>
Definition at line 109 of file OOWeakReference.h.
◆ class
◆ dealloc
Definition at line 1 of file OOWeakReference.m.
38{
39 [_object weakRefDied:self];
40
41 [super dealloc];
42}
◆ description
- (NSString *) description |
|
|
|
|
implementation |
Definition at line 1 of file OOWeakReference.m.
46{
47 if (
_object !=
nil)
return [_object description];
48 else return [NSString stringWithFormat:@"<Dead %@ %p>", [self class], self];
49}
id< OOWeakReferenceSupport > _object
◆ forwardingTargetForSelector:
- (id) forwardingTargetForSelector: |
|
(SEL) | sel |
|
|
implementation |
◆ forwardInvocation:
- (void) forwardInvocation: |
|
(NSInvocation *) | invocation |
|
|
implementation |
Definition at line 1 of file OOWeakReference.m.
84 :(NSInvocation *)invocation
85{
86
87 [invocation invokeWithTarget:_object];
88}
◆ isProxy
◆ methodSignatureForSelector:
- (NSMethodSignature *) methodSignatureForSelector: |
|
(SEL) | selector |
|
|
implementation |
Definition at line 1 of file OOWeakReference.m.
91 :(SEL)selector
92{
93 NSMethodSignature *result =
nil;
94
95 if (__builtin_expect(
98 {
99
100 if (__builtin_expect(
_object !=
nil, 1)) result = [(id)_object methodSignatureForSelector:selector];
102 }
103 else
104 {
105
107 }
108
109 return result;
110}
id weakRefUnderlyingObject()
◆ OO_RETURNS_RETAINED
- (id) OO_RETURNS_RETAINED |
|
|
|
◆ respondsToSelector:
- (BOOL) respondsToSelector: |
|
(SEL) | selector |
|
|
implementation |
Definition at line 1 of file OOWeakReference.m.
113 :(SEL)selector
114{
118 {
119
120 return [_object respondsToSelector:selector];
121 }
122 else
123 {
124
125 return YES;
126 }
127}
◆ weakRefDrop
◆ weakRefUnderlyingObject
- (id) weakRefUnderlyingObject |
|
|
|
◆ weakRefWithObject:
Definition at line 1 of file OOWeakReference.m.
26 :(id<OOWeakReferenceSupport>)object
27{
28 if (
object ==
nil)
return nil;
29
31
33 return [result autorelease];
34}
◆ weakRetain
◆ _object
The documentation for this class was generated from the following files: