Changeset 2919
- Timestamp:
- 05/28/05 01:48:56 (4 years ago)
- Files:
-
- Footagehead/trunk/English.lproj/ReleaseNotes.rtf (modified) (2 diffs)
- Footagehead/trunk/FHController.m (modified) (2 diffs)
- Footagehead/trunk/FHFile.h (modified) (3 diffs)
- Footagehead/trunk/FHFile.m (modified) (2 diffs)
- Footagehead/trunk/FHFileHandler.m (modified) (1 diff)
- Footagehead/trunk/FHFlickrHandler.h (added)
- Footagehead/trunk/FHFlickrHandler.m (added)
- Footagehead/trunk/FHHTMLHandler.m (modified) (1 diff)
- Footagehead/trunk/FHHandler.h (modified) (1 diff)
- Footagehead/trunk/FHHandler.m (modified) (3 diffs)
- Footagehead/trunk/FHRSSParser.h (added)
- Footagehead/trunk/FHRSSParser.m (added)
- Footagehead/trunk/FHRangeHandler.m (modified) (2 diffs)
- Footagehead/trunk/Flickr.tiff (added)
- Footagehead/trunk/Footagehead.xcode/project.pbxproj (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Footagehead/trunk/English.lproj/ReleaseNotes.rtf
r2910 r2919 3 3 } 4 4 {\colortbl;\red255\green255\blue255;\red0\green127\blue0;\red127\green0\blue127;} 5 \vieww9000\viewh8400\viewkind06 5 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural 7 6 … … 56 55 - Fast thumbnail generation for JPEG files\ 57 56 - Spotlight image search support\ 58 - Add Zoom command\ 57 - Flickr RSS stream support\ 58 - Zoom command\ 59 59 60 60 \f0\b \cf2 \ Footagehead/trunk/FHController.m
r2915 r2919 718 718 719 719 - (void)loadURL:(ZAURL *)url withHint:(FHHandlerHint)hint selectRow:(int)row { 720 BOOL select; 720 FHHandler *handler; 721 BOOL select; 721 722 722 723 [self startSpinning]; 723 724 724 [url retain]; 725 725 handler = [[FHHandler alloc] initWithURL:url hint:hint]; 726 727 if(!handler) { 728 [self stopSpinning]; 729 730 return; 731 } 732 726 733 if(_handler) { 727 734 if(![_handler isSynchronous] && ![_handler isFinished]) … … 731 738 } 732 739 733 _handler = [[FHHandler alloc] initWithURL:url hint:hint];740 _handler = handler; 734 741 [_handler setDelegate:self]; 735 [url release];736 742 737 743 [self updateLeftStatus]; Footagehead/trunk/FHFile.h
r2880 r2919 27 27 */ 28 28 29 #import "FHHandler.h"30 31 29 @interface FHFile : ZAObject { 32 30 NSString *_name; … … 39 37 BOOL _loaded; 40 38 BOOL _directory; 41 int _index; 42 FHHandlerHint _hint; 39 unsigned int _index; 43 40 } 44 41 45 42 46 - (id)initWithURL:(ZAURL *)url isDirectory:(BOOL)isDirectory index:( int)index;47 - (id)initWithURL:(ZAURL *)url isDirectory:(BOOL)isDirectory index:(int)index hint:(FHHandlerHint)hint;43 - (id)initWithURL:(ZAURL *)url isDirectory:(BOOL)isDirectory index:(unsigned int)index; 44 - (id)initWithURL:(ZAURL *)url name:(NSString *)name isDirectory:(BOOL)isDirectory index:(unsigned int)index; 48 45 49 46 - (void)setImage:(NSImage *)image; … … 60 57 - (NSImage *)icon; 61 58 - (BOOL)isDirectory; 62 - (int)index; 63 - (FHHandlerHint)hint; 59 - (unsigned int)index; 64 60 65 61 @end Footagehead/trunk/FHFile.m
r2880 r2919 32 32 @implementation FHFile 33 33 34 - (id)initWithURL:(ZAURL *)url isDirectory:(BOOL) directory index:(int)index {35 return [self initWithURL:url isDirectory:directory index:(int)index hint:FHHandlerHintNone];34 - (id)initWithURL:(ZAURL *)url isDirectory:(BOOL)isDirectory index:(unsigned int)index { 35 return [self initWithURL:url name:NULL isDirectory:isDirectory index:index]; 36 36 } 37 37 38 38 39 39 40 - (id)initWithURL:(ZAURL *)url isDirectory:(BOOL)directory index:(int)index hint:(FHHandlerHint)hint{40 - (id)initWithURL:(ZAURL *)url name:(NSString *)name isDirectory:(BOOL)isDirectory index:(unsigned int)index { 41 41 self = [super init]; 42 42 43 43 _url = [url retain]; 44 44 _path = [[_url path] retain]; 45 _name = [[_path lastPathComponent] retain];45 _name = name ? [name retain] : [[_path lastPathComponent] retain]; 46 46 _extension = [[[self path] pathExtension] retain]; 47 _directory = directory;47 _directory = isDirectory; 48 48 _index = index; 49 _hint = hint;50 49 51 50 if(!_directory) { … … 176 175 177 176 178 - ( int)index {177 - (unsigned int)index { 179 178 return _index; 180 179 } 181 180 182 183 184 - (FHHandlerHint)hint {185 return _hint;186 }187 188 181 @end Footagehead/trunk/FHFileHandler.m
r2859 r2919 60 60 LSItemInfoRecord itemInfoRecord; 61 61 BOOL isDirectory; 62 inti = 0;62 unsigned int i = 0; 63 63 64 64 if(!_loadedFiles) { Footagehead/trunk/FHHTMLHandler.m
r2885 r2919 98 98 ZAURL *url; 99 99 BOOL isDirectory; 100 unsigned int length; 101 int i = 0; 100 unsigned int i = 0, length; 102 101 103 102 if(!_loadedFiles) { Footagehead/trunk/FHHandler.h
r2893 r2919 31 31 FHHandlerHintHTML, 32 32 FHHandlerHintFile, 33 FHHandlerHint Gallery,33 FHHandlerHintFlickr, 34 34 FHHandlerHintImage, 35 35 FHHandlerHintRange, Footagehead/trunk/FHHandler.m
r2893 r2919 30 30 #import "FHFile.h" 31 31 #import "FHHandler.h" 32 #import "FHFileHandler.h" 33 #import "FHFlickrHandler.h" 32 34 #import "FHHTMLHandler.h" 33 #import "FHFileHandler.h"34 35 #import "FHImageHandler.h" 35 36 #import "FHRangeHandler.h" … … 44 45 if([self isEqual:[FHHandler class]]) { 45 46 FHHandlerHints = [[NSDictionary alloc] initWithObjectsAndKeys: 47 [FHFileHandler class], 48 [NSNumber numberWithInt:FHHandlerHintFile], 49 [FHFlickrHandler class], 50 [NSNumber numberWithInt:FHHandlerHintFlickr], 46 51 [FHHTMLHandler class], 47 52 [NSNumber numberWithInt:FHHandlerHintHTML], 48 [FH FileHandler class],49 [NSNumber numberWithInt:FHHandlerHint File],53 [FHImageHandler class], 54 [NSNumber numberWithInt:FHHandlerHintImage], 50 55 [FHRangeHandler class], 51 56 [NSNumber numberWithInt:FHHandlerHintRange], 52 [FHImageHandler class],53 [NSNumber numberWithInt:FHHandlerHintImage],54 57 [FHSpotlightHandler class], 55 58 [NSNumber numberWithInt:FHHandlerHintSpotlight], … … 57 60 58 61 FHHandlerClasses = [[NSArray alloc] initWithObjects: 62 [FHFileHandler class], 63 [FHFlickrHandler class], 59 64 [FHHTMLHandler class], 60 [FH FileHandler class],65 [FHImageHandler class], 61 66 [FHRangeHandler class], 62 [FHImageHandler class],63 67 [FHSpotlightHandler class], 64 68 NULL]; Footagehead/trunk/FHRangeHandler.m
r920 r2919 1 /* $Id : FHRangeHandler.m,v 1.6 2005/01/08 22:55:46 morris Exp$ */1 /* $Id$ */ 2 2 3 3 /* … … 123 123 NSString *link; 124 124 FHFile *file; 125 inti = 0;125 unsigned int i = 0; 126 126 127 127 if(!_loadedFiles) { Footagehead/trunk/Footagehead.xcode/project.pbxproj
r2912 r2919 180 180 A52DF8F50566E76000D2BE94, 181 181 A587DF6F055AA3C4005D2097, 182 A5E7CC3A0847E7C900F1E98C, 182 183 A5DEB66F05CBEFD30074DA63, 183 184 A583338D069E30D100D6A96D, … … 1497 1498 A5DE34860567F307003E7FE9, 1498 1499 77EA9C1608460B9C006C9F69, 1500 A5E7CC3B0847E7C900F1E98C, 1499 1501 ); 1500 1502 isa = PBXResourcesBuildPhase; … … 1524 1526 A599A110075F94F400A03BA5, 1525 1527 A5B1F617067B3B7900111D0A, 1528 A5E7C99E0847C61400F1E98C, 1529 A5B1F611067B3AA100111D0A, 1526 1530 A5B1F9AC067BCF0200111D0A, 1527 1531 A5B1FBC6067D01C200111D0A, 1528 1532 77CDB023083B6B85003BE654, 1529 1533 A54BD5420566834700E3ACBC, 1534 A5E7CA4E0847CBA000F1E98C, 1530 1535 A587DF85055AA418005D2097, 1531 A5B1F611067B3AA100111D0A,1532 1536 A5B1F9C1067BDF2300111D0A, 1533 1537 A5092F57083E7812006646D1, … … 1932 1936 A5B1F616067B3B7900111D0A, 1933 1937 A5B1F614067B3B6F00111D0A, 1938 A5E7C99C0847C61400F1E98C, 1939 A5E7C99B0847C61400F1E98C, 1934 1940 A5B1F9AA067BCF0100111D0A, 1935 1941 A5B1F9A9067BCF0100111D0A, … … 1996 2002 A5B1F7BA067B440E00111D0A, 1997 2003 A5B1F7BB067B440E00111D0A, 2004 A5E7CA4C0847CBA000F1E98C, 2005 A5E7CA4D0847CBA000F1E98C, 1998 2006 A587DF7B055AA418005D2097, 1999 2007 A587DF76055AA418005D2097, … … 2203 2211 }; 2204 2212 }; 2213 A5E7C99B0847C61400F1E98C = { 2214 fileEncoding = 5; 2215 isa = PBXFileReference; 2216 lastKnownFileType = sourcecode.c.h; 2217 path = FHFlickrHandler.h; 2218 refType = 4; 2219 sourceTree = "<group>"; 2220 }; 2221 A5E7C99C0847C61400F1E98C = { 2222 fileEncoding = 5; 2223 isa = PBXFileReference; 2224 lastKnownFileType = sourcecode.c.objc; 2225 path = FHFlickrHandler.m; 2226 refType = 4; 2227 sourceTree = "<group>"; 2228 }; 2229 A5E7C99E0847C61400F1E98C = { 2230 fileRef = A5E7C99C0847C61400F1E98C; 2231 isa = PBXBuildFile; 2232 settings = { 2233 }; 2234 }; 2235 A5E7CA4C0847CBA000F1E98C = { 2236 fileEncoding = 5; 2237 isa = PBXFileReference; 2238 lastKnownFileType = sourcecode.c.objc; 2239 path = FHRSSParser.m; 2240 refType = 4; 2241 sourceTree = "<group>"; 2242 }; 2243 A5E7CA4D0847CBA000F1E98C = { 2244 fileEncoding = 5; 2245 isa = PBXFileReference; 2246 lastKnownFileType = sourcecode.c.h; 2247 path = FHRSSParser.h; 2248 refType = 4; 2249 sourceTree = "<group>"; 2250 }; 2251 A5E7CA4E0847CBA000F1E98C = { 2252 fileRef = A5E7CA4C0847CBA000F1E98C; 2253 isa = PBXBuildFile; 2254 settings = { 2255 }; 2256 }; 2257 A5E7CC3A0847E7C900F1E98C = { 2258 isa = PBXFileReference; 2259 lastKnownFileType = image.tiff; 2260 path = Flickr.tiff; 2261 refType = 4; 2262 sourceTree = "<group>"; 2263 }; 2264 A5E7CC3B0847E7C900F1E98C = { 2265 fileRef = A5E7CC3A0847E7C900F1E98C; 2266 isa = PBXBuildFile; 2267 settings = { 2268 }; 2269 }; 2205 2270 A5EE94DA055AA5EE00CC2AD8 = { 2206 2271 children = (
