Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: dbe71da0fd
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (30 sloc) 0.744 kB
// FSObjectBrowserNamedObjectWrapper.m Copyright (c) 2005-2009 Philippe Mougin.
// This software is open source. See the license.
#import "FSObjectBrowserNamedObjectWrapper.h"
@implementation FSObjectBrowserNamedObjectWrapper
+ (id)namedObjectWrapperWithObject:(id)theObject name:(NSString *)theName
{
return [[[self alloc] initWithObject:theObject name:theName] autorelease];
}
- (void)dealloc
{
[name release];
[object release];
[super dealloc];
}
- (id)initWithObject:(id)theObject name:(NSString *)theName
{
if ((self = [super init]))
{
object = [theObject retain];
name = [theName retain];
return self;
}
return nil;
}
- (id)object { return object; }
- (NSString *)description
{
return name;
}
@end
Jump to Line
Something went wrong with that request. Please try again.