Skip to content

Commit

Permalink
Turning syntax highlighted response view into its own view, removing …
Browse files Browse the repository at this point in the history
…web view, moving everything around in NIB
  • Loading branch information
mmattozzi committed May 13, 2012
1 parent 3b888a5 commit c6df0ad
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 236 deletions.
3 changes: 3 additions & 0 deletions CocoaRestClientAppDelegate.h
Expand Up @@ -160,4 +160,7 @@ extern NSString* const RESPONSE_TIMEOUT;

- (void)setRawRequestInput:(BOOL)value;

- (void) initHighlightedViews;
- (void) setHighlightSyntaxForMIME:(NSString*) mimeType;

@end
4 changes: 1 addition & 3 deletions CocoaRestClientAppDelegate.m
Expand Up @@ -15,7 +15,6 @@
#import "JSON.h"
#import <Sparkle/SUUpdater.h>


#define MAIN_WINDOW_MENU_TAG 150

NSString* const FOLLOW_REDIRECTS = @"followRedirects";
Expand Down Expand Up @@ -414,8 +413,7 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)connection {

BOOL needToPrintPlain = YES;
if (contentType != NULL) {
[[responseWebView mainFrame] loadData:receivedData MIMEType:contentType textEncodingName:charset baseURL:currentRequest.URL];
if ([contentType isEqualToString:@"application/atom+xml"] ||
if ([contentType isEqualToString:@"application/atom+xml"] ||
[contentType isEqualToString:@"application/rss+xml"] ||
[contentType isEqualToString:@"application/xml"]) {
NSLog(@"Formatting XML");
Expand Down

0 comments on commit c6df0ad

Please sign in to comment.