Changeset 2919

Show
Ignore:
Timestamp:
05/28/05 01:48:56 (4 years ago)
Author:
morris
Message:

Flickr support (totally emerging)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Footagehead/trunk/English.lproj/ReleaseNotes.rtf

    r2910 r2919  
    33} 
    44{\colortbl;\red255\green255\blue255;\red0\green127\blue0;\red127\green0\blue127;} 
    5 \vieww9000\viewh8400\viewkind0 
    65\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural 
    76 
     
    5655- Fast thumbnail generation for JPEG files\ 
    5756- Spotlight image search support\ 
    58 - Add Zoom command\ 
     57- Flickr RSS stream support\ 
     58- Zoom command\ 
    5959 
    6060\f0\b \cf2 \ 
  • Footagehead/trunk/FHController.m

    r2915 r2919  
    718718 
    719719- (void)loadURL:(ZAURL *)url withHint:(FHHandlerHint)hint selectRow:(int)row { 
    720         BOOL    select; 
     720        FHHandler       *handler; 
     721        BOOL            select; 
    721722         
    722723        [self startSpinning]; 
    723724 
    724         [url retain]; 
    725          
     725        handler = [[FHHandler alloc] initWithURL:url hint:hint]; 
     726         
     727        if(!handler) { 
     728                [self stopSpinning]; 
     729                 
     730                return; 
     731        } 
     732 
    726733        if(_handler) { 
    727734                if(![_handler isSynchronous] && ![_handler isFinished]) 
     
    731738        } 
    732739         
    733         _handler = [[FHHandler alloc] initWithURL:url hint:hint]
     740        _handler = handler
    734741        [_handler setDelegate:self]; 
    735         [url release]; 
    736742         
    737743        [self updateLeftStatus]; 
  • Footagehead/trunk/FHFile.h

    r2880 r2919  
    2727 */ 
    2828 
    29 #import "FHHandler.h" 
    30  
    3129@interface FHFile : ZAObject { 
    3230        NSString                                *_name; 
     
    3937        BOOL                                    _loaded; 
    4038        BOOL                                    _directory; 
    41         int                                             _index; 
    42         FHHandlerHint                   _hint; 
     39        unsigned int                    _index; 
    4340} 
    4441 
    4542 
    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
    4845 
    4946- (void)setImage:(NSImage *)image; 
     
    6057- (NSImage *)icon; 
    6158- (BOOL)isDirectory; 
    62 - (int)index; 
    63 - (FHHandlerHint)hint; 
     59- (unsigned int)index; 
    6460 
    6561@end 
  • Footagehead/trunk/FHFile.m

    r2880 r2919  
    3232@implementation FHFile 
    3333 
    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]; 
    3636} 
    3737 
    3838 
    3939 
    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
    4141        self = [super init]; 
    4242         
    4343        _url = [url retain]; 
    4444        _path = [[_url path] retain]; 
    45         _name = [[_path lastPathComponent] retain]; 
     45        _name = name ? [name retain] : [[_path lastPathComponent] retain]; 
    4646        _extension = [[[self path] pathExtension] retain]; 
    47         _directory = directory; 
     47        _directory = isDirectory; 
    4848        _index = index; 
    49         _hint = hint; 
    5049         
    5150        if(!_directory) { 
     
    176175 
    177176 
    178 - (int)index { 
     177- (unsigned int)index { 
    179178        return _index; 
    180179} 
    181180 
    182  
    183  
    184 - (FHHandlerHint)hint { 
    185         return _hint; 
    186 } 
    187  
    188181@end 
  • Footagehead/trunk/FHFileHandler.m

    r2859 r2919  
    6060        LSItemInfoRecord        itemInfoRecord; 
    6161        BOOL                            isDirectory; 
    62         int                                   i = 0; 
     62        unsigned int          i = 0; 
    6363 
    6464        if(!_loadedFiles) { 
  • Footagehead/trunk/FHHTMLHandler.m

    r2885 r2919  
    9898        ZAURL                   *url; 
    9999        BOOL                    isDirectory; 
    100         unsigned int    length; 
    101         int                             i = 0; 
     100        unsigned int    i = 0, length; 
    102101         
    103102        if(!_loadedFiles) { 
  • Footagehead/trunk/FHHandler.h

    r2893 r2919  
    3131        FHHandlerHintHTML, 
    3232        FHHandlerHintFile, 
    33         FHHandlerHintGallery
     33        FHHandlerHintFlickr
    3434        FHHandlerHintImage, 
    3535        FHHandlerHintRange, 
  • Footagehead/trunk/FHHandler.m

    r2893 r2919  
    3030#import "FHFile.h" 
    3131#import "FHHandler.h" 
     32#import "FHFileHandler.h" 
     33#import "FHFlickrHandler.h" 
    3234#import "FHHTMLHandler.h" 
    33 #import "FHFileHandler.h" 
    3435#import "FHImageHandler.h" 
    3536#import "FHRangeHandler.h" 
     
    4445        if([self isEqual:[FHHandler class]]) { 
    4546                FHHandlerHints = [[NSDictionary alloc] initWithObjectsAndKeys: 
     47                        [FHFileHandler class], 
     48                                [NSNumber numberWithInt:FHHandlerHintFile], 
     49                        [FHFlickrHandler class], 
     50                                [NSNumber numberWithInt:FHHandlerHintFlickr], 
    4651                        [FHHTMLHandler class], 
    4752                                [NSNumber numberWithInt:FHHandlerHintHTML], 
    48                         [FHFileHandler class], 
    49                                 [NSNumber numberWithInt:FHHandlerHintFile], 
     53                        [FHImageHandler class], 
     54                                [NSNumber numberWithInt:FHHandlerHintImage], 
    5055                        [FHRangeHandler class], 
    5156                                [NSNumber numberWithInt:FHHandlerHintRange], 
    52                         [FHImageHandler class], 
    53                                 [NSNumber numberWithInt:FHHandlerHintImage], 
    5457                        [FHSpotlightHandler class], 
    5558                                [NSNumber numberWithInt:FHHandlerHintSpotlight], 
     
    5760 
    5861                FHHandlerClasses = [[NSArray alloc] initWithObjects: 
     62                        [FHFileHandler class], 
     63                        [FHFlickrHandler class], 
    5964                        [FHHTMLHandler class], 
    60                         [FHFileHandler class], 
     65                        [FHImageHandler class], 
    6166                        [FHRangeHandler class], 
    62                         [FHImageHandler class], 
    6367                        [FHSpotlightHandler class], 
    6468                        NULL]; 
  • Footagehead/trunk/FHRangeHandler.m

    r920 r2919  
    1 /* $Id: FHRangeHandler.m,v 1.6 2005/01/08 22:55:46 morris Exp $ */ 
     1/* $Id$ */ 
    22 
    33/* 
     
    123123        NSString                *link; 
    124124        FHFile                  *file; 
    125         int                           i = 0; 
     125        unsigned int  i = 0; 
    126126         
    127127        if(!_loadedFiles) { 
  • Footagehead/trunk/Footagehead.xcode/project.pbxproj

    r2912 r2919  
    180180                                A52DF8F50566E76000D2BE94, 
    181181                                A587DF6F055AA3C4005D2097, 
     182                                A5E7CC3A0847E7C900F1E98C, 
    182183                                A5DEB66F05CBEFD30074DA63, 
    183184                                A583338D069E30D100D6A96D, 
     
    14971498                                A5DE34860567F307003E7FE9, 
    14981499                                77EA9C1608460B9C006C9F69, 
     1500                                A5E7CC3B0847E7C900F1E98C, 
    14991501                        ); 
    15001502                        isa = PBXResourcesBuildPhase; 
     
    15241526                                A599A110075F94F400A03BA5, 
    15251527                                A5B1F617067B3B7900111D0A, 
     1528                                A5E7C99E0847C61400F1E98C, 
     1529                                A5B1F611067B3AA100111D0A, 
    15261530                                A5B1F9AC067BCF0200111D0A, 
    15271531                                A5B1FBC6067D01C200111D0A, 
    15281532                                77CDB023083B6B85003BE654, 
    15291533                                A54BD5420566834700E3ACBC, 
     1534                                A5E7CA4E0847CBA000F1E98C, 
    15301535                                A587DF85055AA418005D2097, 
    1531                                 A5B1F611067B3AA100111D0A, 
    15321536                                A5B1F9C1067BDF2300111D0A, 
    15331537                                A5092F57083E7812006646D1, 
     
    19321936                                A5B1F616067B3B7900111D0A, 
    19331937                                A5B1F614067B3B6F00111D0A, 
     1938                                A5E7C99C0847C61400F1E98C, 
     1939                                A5E7C99B0847C61400F1E98C, 
    19341940                                A5B1F9AA067BCF0100111D0A, 
    19351941                                A5B1F9A9067BCF0100111D0A, 
     
    19962002                                A5B1F7BA067B440E00111D0A, 
    19972003                                A5B1F7BB067B440E00111D0A, 
     2004                                A5E7CA4C0847CBA000F1E98C, 
     2005                                A5E7CA4D0847CBA000F1E98C, 
    19982006                                A587DF7B055AA418005D2097, 
    19992007                                A587DF76055AA418005D2097, 
     
    22032211                        }; 
    22042212                }; 
     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                }; 
    22052270                A5EE94DA055AA5EE00CC2AD8 = { 
    22062271                        children = (