-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImleeModel.h
40 lines (32 loc) · 998 Bytes
/
ImleeModel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// ImleeModel.h
// Imlee
//
// Created by Devarshi Kulshreshtha on 6/21/12.
// Copyright 2012 DaemonConstruction. All rights reserved.
//
/*
This class acts as model layer
*/
#import <Cocoa/Cocoa.h>
#import "ImleeModelDelegate.h"
@interface ImleeModel : NSObject <ImleeModelDelegate>{
// used from ImleeDragAndDropView
NSArray *_imageTypes;
NSImage *_currentImage;
NSString *_currentImagePath;
// used within class, required in bindings
NSString *_currentImageType;
BOOL _isSelectedImageTypeSameAsCurrentImageType;
NSDictionary *_imageTypeSelectedDict;
}
@property (assign) BOOL isSelectedImageTypeSameAsCurrentImageType;
@property (readwrite, retain) NSArray *imageTypes;
@property (readwrite, retain) NSImage *currentImage;
@property (readwrite, retain) NSString *currentImagePath;
@property (readwrite, retain) NSString *currentImageType;
@property (readwrite, retain) NSDictionary *imageTypeSelectedDict;
- (void)save;
- (void)clearAll;
- (void)openImage;
@end