Changeset 3597

Show
Ignore:
Timestamp:
01/25/06 19:34:24 (3 years ago)
Author:
morris
Message:

Use WebKit? to display HTML in preview


Better error handling in preview window

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/English.lproj/Preferences.nib/info.nib

    r3565 r3597  
    44<dict> 
    55        <key>IBDocumentLocation</key> 
    6         <string>519 196 356 294 0 0 1280 1002 </string> 
     6        <string>880 41 481 528 0 0 1920 1178 </string> 
    77        <key>IBFramework Version</key> 
    88        <string>443.0</string> 
  • WiredClient/trunk/English.lproj/Preview.nib/classes.nib

    r3406 r3597  
    1111            LANGUAGE = ObjC;  
    1212            OUTLETS = { 
     13                "_htmlView" = WebView;  
     14                "_htmlWindow" = NSWindow;  
    1315                "_imageView" = NSImageView;  
    1416                "_imageWindow" = NSWindow;  
  • WiredClient/trunk/English.lproj/Preview.nib/info.nib

    r3406 r3597  
    1010        <array> 
    1111                <integer>5</integer> 
     12                <integer>9</integer> 
    1213                <integer>24</integer> 
    13                 <integer>9</integer> 
     14                <integer>54</integer> 
    1415        </array> 
    1516        <key>IBSystem Version</key> 
    16         <string>8F46</string> 
     17        <string>8G32</string> 
    1718</dict> 
    1819</plist> 
  • WiredClient/trunk/WCFileInfo.m

    r3574 r3597  
    149149                 
    150150                // --- compare the existing comment with the one in the text field 
    151                 if(![[_file comment] ? [_file comment] : @"" isEqualToString:[_commentTextField stringValue]]) { 
     151                if(![[_file comment] isEqualToString:[_commentTextField stringValue]]) { 
    152152                        if([[self connection] protocol] >= 1.1) { 
    153153                                [[self connection] sendCommand:WCCommentCommand 
     
    215215        if(![[file path] isEqualToString:[_file path]]) 
    216216                return; 
     217         
     218        [_file release]; 
     219        _file = [file retain]; 
    217220 
    218221        // --- set fields 
  • WiredClient/trunk/WCMessages.m

    r3574 r3597  
    129129        [_replyTextView setInsertionPointColor:[WCSettings objectForKey:WCMessagesTextColor]]; 
    130130        [_replyTextView setNeedsDisplay:YES]; 
     131        [_broadcastTextView setFont:[WCSettings objectForKey:WCMessagesFont]]; 
    131132        [_broadcastTextView setTextColor:[WCSettings objectForKey:WCMessagesTextColor]]; 
    132133        [_broadcastTextView setBackgroundColor:[WCSettings objectForKey:WCMessagesBackgroundColor]]; 
  • WiredClient/trunk/WCPreview.h

    r3570 r3597  
    2727 */ 
    2828 
     29@class WCError; 
     30 
    2931@interface WCPreview : WCConnectionController { 
    3032        IBOutlet NSWindow                               *_textWindow; 
     
    3739        IBOutlet WIPDFView                              *_pdfView; 
    3840 
    39         NSString                                                *_path; 
     41        IBOutlet NSWindow                               *_htmlWindow; 
     42        IBOutlet WebView                                *_htmlView; 
    4043} 
    4144 
     
    5053+ (NSArray *)imageFileTypes; 
    5154 
    52 + (id)previewWithConnection:(WCServerConnection *)connection path:(NSString *)path
     55+ (id)previewWithConnection:(WCServerConnection *)connection path:(NSString *)path error:(WCError **)error
    5356 
    5457@end 
  • WiredClient/trunk/WCPreview.m

    r3574 r3597  
    3030#import "WCPreview.h" 
    3131 
    32 #define WCPreviewPlainTextExtensions    @"1 2 3 4 5 6 7 8 9 c cc cgi conf css diff h in java log m patch pem php pl plist rb s sh status strings tcl text txt xml" 
     32#define WCPreviewPlainTextExtensions    @"1 2 3 4 5 6 7 8 9 c cc cgi conf css diff h in java log m patch pem php pl plist pod rb s sh status strings tcl text txt xml" 
    3333#define WCPreviewRTFExtensions                  @"rtf" 
    3434#define WCPreviewHTMLExtensions                 @"htm html shtm shtml" 
     
    3939@interface WCPreview(Private) 
    4040 
    41 - (id)_initPreviewWithConnection:(WCServerConnection *)connection path:(NSString *)path
     41- (id)_initPreviewWithConnection:(WCServerConnection *)connection path:(NSString *)path error:(WCError **)error
    4242 
    4343- (void)_update; 
    4444 
     45- (BOOL)_openFileAtPath:(NSString *)path error:(WCError **)error; 
     46 
    4547@end 
    4648 
     
    4850@implementation WCPreview(Private) 
    4951 
    50 - (id)_initPreviewWithConnection:(WCServerConnection *)connection path:(NSString *)path
     52- (id)_initPreviewWithConnection:(WCServerConnection *)connection path:(NSString *)path error:(WCError **)error
    5153        self = [super initWithWindowNibName:@"Preview" connection:connection]; 
    52  
    53         _path = [path retain]; 
    5454 
    5555        [self window]; 
     
    6060                           name:WCPreferencesDidChange]; 
    6161         
     62        if(![self _openFileAtPath:path error:error]) { 
     63                [self release]; 
     64                 
     65                return NULL; 
     66        } 
     67         
    6268        [self showWindow:self]; 
    6369         
     
    7581        [_textView setTextColor:[WCSettings objectForKey:WCPreviewTextColor]]; 
    7682        [_textView setBackgroundColor:[WCSettings objectForKey:WCPreviewBackgroundColor]]; 
     83} 
     84 
     85 
     86 
     87#pragma mark - 
     88 
     89- (BOOL)_openFileAtPath:(NSString *)path error:(WCError **)error { 
     90        NSString                *extension; 
     91        BOOL                    result = NO; 
     92 
     93        extension = [[path pathExtension] lowercaseString]; 
     94 
     95        if([[WCPreview textFileTypes] containsObject:extension] || [extension isEqualToString:@""]) { 
     96                NSString        *text; 
     97  
     98                text = [NSString stringWithContentsOfFile:path]; 
     99 
     100                if(!text) { 
     101                        *error = [WCError errorWithDomain:WCWiredClientErrorDomain code:WCWiredClientOpenFailed argument:path]; 
     102                         
     103                        goto end; 
     104                } 
     105 
     106                [_textView setString:text]; 
     107                [_textWindow setTitleWithRepresentedFilename:path]; 
     108                [self setWindow:_textWindow]; 
     109        } 
     110        else if([[WCPreview RTFFileTypes] containsObject:extension]) { 
     111                NSAttributedString      *rtf; 
     112                NSData                          *data; 
     113 
     114                data = [NSData dataWithContentsOfFile:path]; 
     115 
     116                if(!data) { 
     117                        *error = [WCError errorWithDomain:WCWiredClientErrorDomain code:WCWiredClientOpenFailed argument:path]; 
     118 
     119                        goto end; 
     120                } 
     121 
     122                rtf = [[NSAttributedString alloc] initWithRTF:data documentAttributes:NULL]; 
     123 
     124                if(!rtf) { 
     125                        *error = [WCError errorWithDomain:WCWiredClientErrorDomain code:WCWiredClientOpenFailed argument:path]; 
     126 
     127                        goto end; 
     128                } 
     129 
     130                [[_textView textStorage] setAttributedString:rtf]; 
     131                [_textWindow setTitleWithRepresentedFilename:path]; 
     132                [self setWindow:_textWindow]; 
     133 
     134                [rtf release]; 
     135        } 
     136        else if([[WCPreview HTMLFileTypes] containsObject:extension]) { 
     137                NSData                          *data; 
     138 
     139                data = [NSData dataWithContentsOfFile:path]; 
     140 
     141                if(!data) { 
     142                        *error = [WCError errorWithDomain:WCWiredClientErrorDomain code:WCWiredClientOpenFailed argument:path]; 
     143 
     144                        goto end; 
     145                } 
     146 
     147                [[_htmlView mainFrame] loadData:data MIMEType:NULL textEncodingName:NULL baseURL:NULL]; 
     148 
     149                [_htmlWindow setTitleWithRepresentedFilename:path]; 
     150                [self setWindow:_htmlWindow]; 
     151        } 
     152        else if([[WCPreview PDFFileTypes] containsObject:extension]) { 
     153                NSPDFImageRep   *pdf; 
     154                NSRect                  rect, frame; 
     155                NSSize                  size; 
     156 
     157                pdf = [NSPDFImageRep imageRepWithContentsOfFile:path]; 
     158 
     159                if(!pdf) { 
     160                        *error = [WCError errorWithDomain:WCWiredClientErrorDomain code:WCWiredClientOpenFailed argument:path]; 
     161 
     162                        goto end; 
     163                } 
     164 
     165                size = [pdf bounds].size; 
     166                rect = NSMakeRect(0, 0, size.width, size.height); 
     167                frame = [NSWindow frameRectForContentRect:rect styleMask:[_pdfWindow styleMask]]; 
     168                size.height += 1.0; 
     169                frame.size.height += 1.0; 
     170 
     171                [_pdfView setPDF:pdf]; 
     172                [_pdfWindow setContentSize:size]; 
     173                [_pdfWindow setMaxSize:NSMakeSize(frame.size.width, frame.size.height * [pdf pageCount])]; 
     174                [_pdfWindow setMinSize:frame.size]; 
     175                [_pdfWindow center]; 
     176                [_pdfWindow setTitleWithRepresentedFilename:path]; 
     177                [self setWindow:_pdfWindow]; 
     178        } 
     179        else if([[WCPreview NFOFileTypes] containsObject:extension]) { 
     180                NSString                        *nfo; 
     181                NSData                          *data; 
     182                NSStringEncoding        encoding; 
     183                 
     184                data = [NSData dataWithContentsOfFile:path]; 
     185                 
     186                if(!data) { 
     187                        *error = [WCError errorWithDomain:WCWiredClientErrorDomain code:WCWiredClientOpenFailed argument:path]; 
     188                         
     189                        goto end; 
     190                } 
     191                 
     192                encoding = CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingDOSLatinUS); 
     193                nfo = [NSString stringWithData:data encoding:encoding]; 
     194                 
     195                if(!nfo) { 
     196                        *error = [WCError errorWithDomain:WCWiredClientErrorDomain code:WCWiredClientOpenFailed argument:path]; 
     197                         
     198                        goto end; 
     199                } 
     200                 
     201                [_textView setString:nfo]; 
     202                [_textView setHorizontallyResizable:NO]; 
     203                [_textView setFrameSize:NSMakeSize(1e7, [_textView frame].size.height)]; 
     204                [_textWindow setContentSize:NSMakeSize(550, 550)]; 
     205                [_textWindow setTitleWithRepresentedFilename:path]; 
     206                [self setWindow:_textWindow]; 
     207        } 
     208        else if([[WCPreview imageFileTypes] containsObject:extension]) { 
     209                NSImage         *image; 
     210                NSRect          rect; 
     211                NSSize          size, minSize, maxSize; 
     212 
     213                image = [[NSImage alloc] initWithContentsOfFile:path]; 
     214 
     215                if(!image) { 
     216                        *error = [WCError errorWithDomain:WCWiredClientErrorDomain code:WCWiredClientOpenFailed argument:path]; 
     217 
     218                        goto end; 
     219                } 
     220 
     221                minSize = [_imageWindow minSize]; 
     222                rect = NSMakeRect(0, 0, minSize.width, minSize.height); 
     223                minSize = [NSWindow contentRectForFrameRect:rect styleMask:[_imageWindow styleMask]].size; 
     224                 
     225                if(size.width < minSize.width) 
     226                        size.width = minSize.width; 
     227                if(size.height < minSize.height) 
     228                        size.height = minSize.height; 
     229                 
     230                size = [image size]; 
     231                rect = NSMakeRect(0, 0, size.width, size.height); 
     232                maxSize = [NSWindow frameRectForContentRect:rect styleMask:[_imageWindow styleMask]].size; 
     233 
     234                [_imageView setImage:image]; 
     235                [_imageWindow setBackgroundColor:[NSColor whiteColor]]; 
     236                [_imageWindow setContentSize:size]; 
     237                [_imageWindow setMaxSize:maxSize]; 
     238                [_imageWindow center]; 
     239                [_imageWindow setTitleWithRepresentedFilename:path]; 
     240                [self setWindow:_imageWindow]; 
     241 
     242                [image release]; 
     243        } 
     244         
     245        result = YES; 
     246 
     247end: 
     248        [[NSFileManager defaultManager] removeFileAtPath:path]; 
     249 
     250        return result; 
    77251} 
    78252 
     
    204378#pragma mark - 
    205379 
    206 + (id)previewWithConnection:(WCServerConnection *)connection path:(NSString *)path
    207         return [[[self alloc] _initPreviewWithConnection:connection path:path] autorelease]; 
     380+ (id)previewWithConnection:(WCServerConnection *)connection path:(NSString *)path error:(WCError **)error
     381        return [[[self alloc] _initPreviewWithConnection:connection path:path error:error] autorelease]; 
    208382} 
    209383 
     
    213387        [[NSNotificationCenter defaultCenter] removeObserver:self]; 
    214388         
    215         [_path release]; 
    216  
    217389        [super dealloc]; 
    218390} 
     
    233405 
    234406- (void)windowWillClose:(NSNotification *)notification { 
    235         [[NSFileManager defaultManager] removeFileAtPath:_path handler:NULL]; 
    236  
    237         [self autorelease]; 
     407        if([[notification object] isVisible]) 
     408                [self autorelease]; 
    238409} 
    239410 
     
    250421} 
    251422 
    252  
    253  
    254 #pragma mark - 
    255  
    256 - (void)showWindow:(id)sender { 
    257         NSString                *extension; 
    258  
    259         extension = [[_path pathExtension] lowercaseString]; 
    260  
    261         if([[WCPreview textFileTypes] containsObject:extension]) { 
    262                 NSString        *text; 
    263   
    264                 text = [NSString stringWithContentsOfFile:_path]; 
    265  
    266                 if(!text) { 
    267 //                      [WCError setWithError:WCApplicationErrorOpenFailed]; 
    268 //                      [WCError setArgument:_path]; 
    269 //                      [WCError show]; 
    270  
    271                         [self release]; 
    272                         return; 
    273                 } 
    274  
    275                 [_textView setString:text]; 
    276                 [_textWindow setTitleWithRepresentedFilename:_path]; 
    277                 [self setWindow:_textWindow]; 
    278         } 
    279         else if([[WCPreview RTFFileTypes] containsObject:extension]) { 
    280                 NSAttributedString      *rtf; 
    281                 NSData                          *data; 
    282  
    283                 data = [NSData dataWithContentsOfFile:_path]; 
    284  
    285                 if(!data) { 
    286 //                      [WCError setWithError:WCApplicationErrorOpenFailed]; 
    287 //                      [WCError setArgument:_path]; 
    288 //                      [WCError show]; 
    289  
    290                         [self release]; 
    291                         return; 
    292                 } 
    293  
    294                 rtf = [[NSAttributedString alloc] initWithRTF:data documentAttributes:NULL]; 
    295  
    296                 if(!rtf) { 
    297 //                      [WCError setWithError:WCApplicationErrorOpenFailed]; 
    298 //                      [WCError setArgument:_path]; 
    299 //                      [WCError show]; 
    300  
    301                         [self release]; 
    302                         return; 
    303                 } 
    304  
    305                 [[_textView textStorage] setAttributedString:rtf]; 
    306                 [_textWindow setTitleWithRepresentedFilename:_path]; 
    307                 [self setWindow:_textWindow]; 
    308  
    309                 [rtf release]; 
    310         } 
    311         else if([[WCPreview HTMLFileTypes] containsObject:extension]) { 
    312                 NSAttributedString      *html; 
    313                 NSData                          *data; 
    314  
    315                 data = [NSData dataWithContentsOfFile:_path]; 
    316  
    317                 if(!data) { 
    318 //                      [WCError setWithError:WCApplicationErrorOpenFailed]; 
    319 //                      [WCError setArgument:_path]; 
    320 //                      [WCError show]; 
    321  
    322                         [self release]; 
    323                         return; 
    324                 } 
    325  
    326                 html = [[NSAttributedString alloc] initWithHTML:data documentAttributes:NULL]; 
    327  
    328                 if(!html) { 
    329 //                      [WCError setWithError:WCApplicationErrorOpenFailed]; 
    330 //                      [WCError setArgument:_path]; 
    331 //                      [WCError show]; 
    332  
    333                         [self release]; 
    334                         return; 
    335                 } 
    336  
    337                 [[_textView textStorage] setAttributedString:html]; 
    338                 [_textWindow setTitleWithRepresentedFilename:_path]; 
    339                 [self setWindow:_textWindow]; 
    340  
    341                 [html release]; 
    342         } 
    343         else if([[WCPreview PDFFileTypes] containsObject:extension]) { 
    344                 NSPDFImageRep   *pdf; 
    345                 NSRect                  rect, frame; 
    346                 NSSize                  size; 
    347  
    348                 pdf = [NSPDFImageRep imageRepWithContentsOfFile:_path]; 
    349  
    350                 if(!pdf) { 
    351 //                      [WCError setWithError:WCApplicationErrorOpenFailed]; 
    352 //                      [WCError setArgument:_path]; 
    353 //                      [WCError show]; 
    354  
    355                         [self release]; 
    356                         return; 
    357                 } 
    358  
    359                 size = [pdf bounds].size; 
    360                 rect = NSMakeRect(0, 0, size.width, size.height); 
    361                 frame = [NSWindow frameRectForContentRect:rect styleMask:[_pdfWindow styleMask]]; 
    362                 size.height += 1.0; 
    363                 frame.size.height += 1.0; 
    364  
    365                 [_pdfView setPDF:pdf]; 
    366                 [_pdfWindow setContentSize:size]; 
    367                 [_pdfWindow setMaxSize:NSMakeSize(frame.size.width, frame.size.height * [pdf pageCount])]; 
    368                 [_pdfWindow setMinSize:frame.size]; 
    369                 [_pdfWindow center]; 
    370                 [_pdfWindow setTitleWithRepresentedFilename:_path]; 
    371                 [self setWindow:_pdfWindow]; 
    372         } 
    373         else if([[WCPreview NFOFileTypes] containsObject:extension]) { 
    374                 NSString                        *nfo; 
    375                 NSData                          *data; 
    376                 NSStringEncoding        encoding; 
    377                  
    378                 data = [NSData dataWithContentsOfFile:_path]; 
    379                  
    380                 if(!data) { 
    381 //                      [WCError setWithError:WCApplicationErrorOpenFailed]; 
    382 //                      [WCError setArgument:_path]; 
    383 //                      [WCError show]; 
    384                          
    385                         [self release]; 
    386                         return; 
    387                 } 
    388                  
    389                 encoding = CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingDOSLatinUS); 
    390                 nfo = [NSString stringWithData:data encoding:encoding]; 
    391                  
    392                 if(!nfo) { 
    393 //                      [WCError setWithError:WCApplicationErrorOpenFailed]; 
    394 //                      [WCError setArgument:_path]; 
    395 //                      [WCError show]; 
    396                          
    397                         [self release]; 
    398                         return; 
    399                 } 
    400                  
    401                 [_textView setString:nfo]; 
    402                 [_textView setHorizontallyResizable:NO]; 
    403                 [_textView setFrameSize:NSMakeSize(1e7, [_textView frame].size.height)]; 
    404                 [_textWindow setContentSize:NSMakeSize(550, 550)]; 
    405                 [_textWindow setTitleWithRepresentedFilename:_path]; 
    406                 [self setWindow:_textWindow]; 
    407         } 
    408         else if([[WCPreview imageFileTypes] containsObject:extension]) { 
    409                 NSImage         *image; 
    410                 NSRect          rect; 
    411                 NSSize          size, minSize, maxSize; 
    412  
    413                 image = [[NSImage alloc] initWithContentsOfFile:_path]; 
    414  
    415                 if(!image) { 
    416 //                      [WCError setWithError:WCApplicationErrorOpenFailed]; 
    417 //                      [WCError setArgument:_path]; 
    418 //                      [WCError show]; 
    419  
    420                         [self release]; 
    421                         return; 
    422                 } 
    423  
    424                 minSize = [_imageWindow minSize]; 
    425                 rect = NSMakeRect(0, 0, minSize.width, minSize.height); 
    426                 minSize = [NSWindow contentRectForFrameRect:rect styleMask:[_imageWindow styleMask]].size; 
    427                  
    428                 if(size.width < minSize.width) 
    429                         size.width = minSize.width; 
    430                 if(size.height < minSize.height) 
    431                         size.height = minSize.height; 
    432                  
    433                 size = [image size]; 
    434                 rect = NSMakeRect(0, 0, size.width, size.height); 
    435                 maxSize = [NSWindow frameRectForContentRect:rect styleMask:[_imageWindow styleMask]].size; 
    436  
    437                 [_imageView setImage:image]; 
    438                 [_imageWindow setBackgroundColor:[NSColor whiteColor]]; 
    439                 [_imageWindow setContentSize:size]; 
    440                 [_imageWindow setMaxSize:maxSize]; 
    441                 [_imageWindow center]; 
    442                 [_imageWindow setTitleWithRepresentedFilename:_path]; 
    443                 [self setWindow:_imageWindow]; 
    444  
    445                 [image release]; 
    446         } 
    447  
    448         [super showWindow:sender]; 
    449 } 
    450  
    451423@end 
  • WiredClient/trunk/WCTrackers.m

    r3596 r3597  
    539539        if([tracker type] == WCTrackerServer && ![tracker netService]) { 
    540540                if(tableColumn == _usersTableColumn) 
    541                         return [NSSWF:@"%u", [item users]]; 
     541                        return [NSSWF:@"%u", [tracker users]]; 
    542542                else if(tableColumn == _speedTableColumn) 
    543                         return [NSString humanReadableStringForBandwidth:[item speed]]; 
     543                        return [NSString humanReadableStringForBandwidth:[tracker speed]]; 
    544544                else if(tableColumn == _guestTableColumn) 
    545                         return [item guest] ? NSLS(@"Yes", @"'Yes'") : NSLS(@"No", @"'No'"); 
     545                        return [tracker guest] ? NSLS(@"Yes", @"'Yes'") : NSLS(@"No", @"'No'"); 
    546546                else if(tableColumn == _downloadTableColumn) 
    547                         return [item download] ? NSLS(@"Yes", @"'Yes'") : NSLS(@"No", @"'No'"); 
     547                        return [tracker download] ? NSLS(@"Yes", @"'Yes'") : NSLS(@"No", @"'No'"); 
    548548                else if(tableColumn == _filesTableColumn) 
    549                         return [NSSWF:@"%u", [item files]]; 
     549                        return [NSSWF:@"%u", [tracker files]]; 
    550550                else if(tableColumn == _sizeTableColumn) 
    551551                        return [NSString humanReadableStringForSize:[tracker size]]; 
    552552                else if(tableColumn == _descriptionTableColumn) 
    553                         return [item serverDescription]; 
     553                        return [tracker serverDescription]; 
    554554        } 
    555555 
  • WiredClient/trunk/WCTransfers.m

    r3596 r3597  
    399399        WCTransfer                      *nextTransfer; 
    400400        WCFile                          *file; 
     401        WCPreview                       *preview; 
     402        WCError                         *error; 
    401403        unsigned int            files; 
    402404        BOOL                            next = YES; 
     
    438440                         
    439441                        if([transfer type] == WCTransferDownload) { 
    440                                 if([transfer isPreview]) 
    441                                         [WCPreview previewWithConnection:[self connection] path:[path stringByDeletingPathExtension]]; 
     442                                if([transfer isPreview]) { 
     443                                        preview = [WCPreview previewWithConnection:[self connection] path:[path stringByDeletingPathExtension] error:&error]; 
     444                                         
     445                                        if(!preview) 
     446                                                [self _presentError:error]; 
     447                                } 
    442448                        } else { 
    443449                                dictionary = [NSDictionary dictionaryWithObjectsAndKeys: 
  • WiredClient/trunk/WiredClient.xcodeproj/project.pbxproj

    r3595 r3597  
    8484                771E6D510755F506000F9195 /* WCConversation.m in Sources */ = {isa = PBXBuildFile; fileRef = 771E6D4F0755F506000F9195 /* WCConversation.m */; }; 
    8585                77724B3F097D39EE0003B608 /* WiredAdditions.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A5E8BAFA08748EFD0010F2A4 /* WiredAdditions.framework */; }; 
     86                777D36C50987E125005B5EC1 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 777D36C40987E125005B5EC1 /* WebKit.framework */; }; 
    8687                777E657B0740F34700A8DE0B /* WCFilesBrowserCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 777E65790740F34700A8DE0B /* WCFilesBrowserCell.m */; }; 
    8788                777E663D07412EF300A8DE0B /* Columns.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 777E663C07412EF300A8DE0B /* Columns.tiff */; }; 
     
    343344                771E6D4E0755F506000F9195 /* WCConversation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WCConversation.h; sourceTree = "<group>"; }; 
    344345                771E6D4F0755F506000F9195 /* WCConversation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WCConversation.m; sourceTree = "<group>"; }; 
     346                777D36C40987E125005B5EC1 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = /System/Library/Frameworks/WebKit.framework; sourceTree = "<absolute>"; }; 
    345347                777E65780740F34700A8DE0B /* WCFilesBrowserCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WCFilesBrowserCell.h; sourceTree = "<group>"; }; 
    346348                777E65790740F34700A8DE0B /* WCFilesBrowserCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WCFilesBrowserCell.m; sourceTree = "<group>"; }; 
     
    555557                                A5D4F28006D75DA4002A33D0 /* ExceptionHandling.framework in Frameworks */, 
    556558                                A5A3400707216D8900A16E9A /* Security.framework in Frameworks */, 
     559                                777D36C50987E125005B5EC1 /* WebKit.framework in Frameworks */, 
    557560                                77724B3F097D39EE0003B608 /* WiredAdditions.framework in Frameworks */, 
    558561                        ); 
     
    569572                                A5D4F27F06D75DA4002A33D0 /* ExceptionHandling.framework */, 
    570573                                A5A3400607216D8900A16E9A /* Security.framework */, 
     574                                777D36C40987E125005B5EC1 /* WebKit.framework */, 
    571575                                A54D35FA0762565B00227EBE /* WiredAdditions.framework */, 
    572576                        ); 
  • WiredClient/trunk/prefix.pch

    r3542 r3597  
    3535#import <Security/SecKeychain.h> 
    3636#import <Security/SecKeychainItem.h> 
     37#import <WebKit/WebKit.h> 
    3738#import <WiredAdditions/WiredAdditions.h> 
    3839