101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
{
/*
* AmigaOS needs the full parsing to determine the last path component.
* This could be optimized by not creating the temporary objects,
* though.
*/
void *pool = objc_autoreleasePoolPush();
OFArray OF_GENERIC(OFString *) *components = [self pathComponents];
OFString *ret = [components lastObject];
[ret retain];
objc_autoreleasePoolPop(pool);
return [ret autorelease];
}
- (OFString *)pathExtension
|
<
|
|
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
{
/*
* AmigaOS needs the full parsing to determine the last path component.
* This could be optimized by not creating the temporary objects,
* though.
*/
void *pool = objc_autoreleasePoolPush();
OFString *ret = [[self pathComponents] lastObject];
[ret retain];
objc_autoreleasePoolPop(pool);
return [ret autorelease];
}
- (OFString *)pathExtension
|