forked from gobbledegook/creevey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DYCarbonGoodies.h
26 lines (20 loc) · 861 Bytes
/
DYCarbonGoodies.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
//Copyright 2005 Dominic Yu. Some rights reserved.
//This work is licensed under the Creative Commons
//Attribution-NonCommercial-ShareAlike License. To view a copy of this
//license, visit http://creativecommons.org/licenses/by-nc-sa/2.0/ or send
//a letter to Creative Commons, 559 Nathan Abbott Way, Stanford,
//California 94305, USA.
// DYCarbonGoodies.h
// creevey
//
// Created by d on 2005.04.03.
#import <Cocoa/Cocoa.h>
// returns path if it's not an alias, or if not resolvable
NSString *ResolveAliasToPath(NSString *path);
// check if a files invisible flag is set
BOOL FileIsInvisible(NSString *path);
BOOL FileIsJPEG(NSString *s);
@interface NSImage (DYCarbonGoodies)
+ (instancetype)imageByReferencingFileIgnoringJPEGOrientation:(NSString *)fileName;
- (instancetype)initByReferencingFileIgnoringJPEGOrientation:(NSString *)fileName;
@end