diff options
Diffstat (limited to 'Frameworks/BWToolkitFramework.framework/BWToolbarItem.m')
-rw-r--r-- | Frameworks/BWToolkitFramework.framework/BWToolbarItem.m | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/Frameworks/BWToolkitFramework.framework/BWToolbarItem.m b/Frameworks/BWToolkitFramework.framework/BWToolbarItem.m deleted file mode 100644 index 3c196d1d..00000000 --- a/Frameworks/BWToolkitFramework.framework/BWToolbarItem.m +++ /dev/null @@ -1,62 +0,0 @@ -// -// BWToolbarItem.m -// BWToolkit -// -// Created by Brandon Walkin (www.brandonwalkin.com) -// All code is provided under the New BSD license. -// - -#import "BWToolbarItem.h" -#import "NSString+BWAdditions.h" - -@interface BWToolbarItem () -@property (copy) NSString *identifierString; -@end - -@interface NSToolbarItem (BWTIPrivate) -- (void)_setItemIdentifier:(id)fp8; -- (id)initWithCoder:(NSCoder *)coder; -- (void)encodeWithCoder:(NSCoder*)coder; -@end - -@implementation BWToolbarItem - -@synthesize identifierString; - -- (id)initWithCoder:(NSCoder *)coder -{ - if ((self = [super initWithCoder:coder]) != nil) - { - [self setIdentifierString:[coder decodeObjectForKey:@"BWTIIdentifierString"]]; - } - return self; -} - -- (void)encodeWithCoder:(NSCoder*)coder -{ - [super encodeWithCoder:coder]; - - [coder encodeObject:[self identifierString] forKey:@"BWTIIdentifierString"]; -} - -- (void)setIdentifierString:(NSString *)aString -{ - if (identifierString != aString) - { - [identifierString release]; - identifierString = [aString copy]; - } - - if (identifierString == nil || [identifierString isEqualToString:@""]) - [self _setItemIdentifier:[[NSString randomUUID] retain]]; - else - [self _setItemIdentifier:identifierString]; -} - -- (void)dealloc -{ - [identifierString release]; - [super dealloc]; -} - -@end |