mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-19 15:38:39 +02:00
9ed9a9f105
git-svn-id: http://macvim.googlecode.com/svn/trunk@5 96c4425d-ca35-0410-94e5-3396d5c13a8f
78 lines
1.0 KiB
Objective-C
78 lines
1.0 KiB
Objective-C
//
|
|
// FakeModel.m
|
|
// TabBarControl
|
|
//
|
|
// Created by John Pannell on 12/19/05.
|
|
// Copyright 2005 Positive Spin Media. All rights reserved.
|
|
//
|
|
|
|
#import "FakeModel.h"
|
|
|
|
|
|
@implementation FakeModel
|
|
|
|
- (id)init
|
|
{
|
|
if(self == [super init]){
|
|
_isProcessing = YES;
|
|
_icon = nil;
|
|
_iconName = nil;
|
|
_objectCount = 2;
|
|
controller = [[NSObjectController alloc] initWithContent:self];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
|
|
// accessors
|
|
- (BOOL)isProcessing
|
|
{
|
|
return _isProcessing;
|
|
}
|
|
|
|
- (void)setIsProcessing:(BOOL)value
|
|
{
|
|
_isProcessing = value;
|
|
}
|
|
|
|
- (NSImage *)icon
|
|
{
|
|
return _icon;
|
|
}
|
|
|
|
- (void)setIcon:(NSImage *)icon
|
|
{
|
|
[icon retain];
|
|
[_icon release];
|
|
_icon = icon;
|
|
}
|
|
|
|
- (NSString *)iconName
|
|
{
|
|
return _iconName;
|
|
}
|
|
|
|
- (void)setIconName:(NSString *)iconName
|
|
{
|
|
[iconName retain];
|
|
[_iconName release];
|
|
_iconName = iconName;
|
|
}
|
|
|
|
- (int)objectCount
|
|
{
|
|
return _objectCount;
|
|
}
|
|
|
|
- (void)setObjectCount:(int)value
|
|
{
|
|
_objectCount = value;
|
|
}
|
|
|
|
- (NSObjectController *)controller
|
|
{
|
|
return controller;
|
|
}
|
|
|
|
@end
|