Permalink
Browse files

replace libraries to cocoapod

  • Loading branch information...
1 parent 9696a6d commit 2fa8d895a3be91dc2367d518100e4bb2845d4272 Jeong YunWon committed Oct 31, 2012
Showing with 54 additions and 174 deletions.
  1. +3 −0 .gitignore
  2. +0 −1 FoundationExtension
  3. +0 −1 JSONKit
  4. +0 −1 ObjectXML
  5. +5 −0 Podfile
  6. +35 −159 VisualJSON.xcodeproj/project.pbxproj
  7. +11 −11 VisualJSON/VJDocument.m
  8. +0 −1 cdebug
View
@@ -12,3 +12,6 @@
*.xcodeproj/*.perspectivev3
*xcuserdata
*.xcworkspace*
+
+Podfile.lock
+Pods
Submodule FoundationExtension deleted from bbd43b
Submodule JSONKit deleted from 821576
Submodule ObjectXML deleted from a9ccef
View
@@ -0,0 +1,5 @@
+platform :osx
+pod 'cdebug'
+pod 'FoundationExtension'
+pod 'JSONKit'
+pod 'ObjectXML'
Oops, something went wrong.
@@ -76,7 +76,7 @@ - (void)setHeader:(NSString *)header {
field = [item substringToIndex:delimeterRange.location];
value = [item substringFromIndex:delimeterRange.location + delimeterRange.length];
}
- [headerItems addObject:[NSATuple tupleWithFirst:field second:value]];
+ [headerItems addObject:[NSAMutableTuple tupleWithFirst:field second:value]];
}
self->_headerItems = headerItems;
@@ -124,7 +124,7 @@ - (void)setQuerydata:(NSString *)data {
field = nil;
value = item;
}
- [items addObject:[NSATuple tupleWithFirst:field second:value]];
+ [items addObject:[NSAMutableTuple tupleWithFirst:field second:value]];
}
self->_querydataItems = items;
@@ -358,7 +358,7 @@ - (void)refreshBackground {
NSURL *URL = [address hasPrefix:@"/"] ? address.fileURL : address.URL;
NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:URL];
- for (NSATuple *item in self.headerItems) {
+ for (NSAMutableTuple *item in self.headerItems) {
if ([item.first length] == 0) continue;
[req addValue:item.second forHTTPHeaderField:item.first];
}
@@ -496,7 +496,7 @@ @implementation VJHeaderTableViewController
- (NSString *)_headerFromHeaderItems {
NSMutableArray *array = [[NSMutableArray alloc] init];
- for (NSATuple *tuple in self->document.headerItems) {
+ for (NSAMutableTuple *tuple in self->document.headerItems) {
NSString *item = tuple.first ? [NSString stringWithFormat:@"%@:%@", tuple.first, tuple.second] : tuple.second;
[array addObject:item];
}
@@ -510,7 +510,7 @@ - (NSString *)_headerFromHeaderItems {
- (void)addRow:(id)sender {
NSInteger index = tableView.selectedRow;
- NSATuple *newItem = [NSATuple tupleWithFirst:@"field" second:@"value"];
+ NSAMutableTuple *newItem = [NSAMutableTuple tupleWithFirst:@"field" second:@"value"];
if (index < 0) {
[self->document.headerItems addObject:newItem];
} else {
@@ -535,7 +535,7 @@ - (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView {
}
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {
- NSATuple *item = [self->document.headerItems objectAtIndex:row];
+ NSAMutableTuple *item = [self->document.headerItems objectAtIndex:row];
switch ([aTableView.tableColumns indexOfObjectIdenticalTo:tableColumn]) {
case 0:
return item.first;
@@ -550,7 +550,7 @@ - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColu
}
- (void)tableView:(NSTableView *)aTableView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {
- NSATuple *tuple = [self->document.headerItems objectAtIndex:row];
+ NSAMutableTuple *tuple = [self->document.headerItems objectAtIndex:row];
switch ([aTableView.tableColumns indexOfObjectIdenticalTo:tableColumn]) {
case 0:
tuple.first = object;
@@ -573,7 +573,7 @@ @implementation VJQuerydataTableViewController
- (NSString *)_querydataFromQuerydataItems {
NSMutableArray *array = [[NSMutableArray alloc] init];
- for (NSATuple *tuple in self->document.querydataItems) {
+ for (NSAMutableTuple *tuple in self->document.querydataItems) {
NSString *item = tuple.first ? [NSString stringWithFormat:@"%@=%@", tuple.first, tuple.second] : tuple.second;
[array addObject:item];
}
@@ -587,7 +587,7 @@ - (NSString *)_querydataFromQuerydataItems {
- (void)addRow:(id)sender {
NSInteger index = tableView.selectedRow;
- NSATuple *newItem = [NSATuple tupleWithFirst:nil second:@""];
+ NSAMutableTuple *newItem = [NSAMutableTuple tupleWithFirst:nil second:@""];
if (index < 0) {
[self->document.querydataItems addObject:newItem];
} else {
@@ -618,7 +618,7 @@ - (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView {
}
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {
- NSATuple *item = [self->document.querydataItems objectAtIndex:row];
+ NSAMutableTuple *item = [self->document.querydataItems objectAtIndex:row];
switch ([aTableView.tableColumns indexOfObjectIdenticalTo:tableColumn]) {
case 0:
return item.first;
@@ -633,7 +633,7 @@ - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColu
}
- (void)tableView:(NSTableView *)aTableView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {
- NSATuple *tuple = [self->document.querydataItems objectAtIndex:row];
+ NSAMutableTuple *tuple = [self->document.querydataItems objectAtIndex:row];
switch ([aTableView.tableColumns indexOfObjectIdenticalTo:tableColumn]) {
case 0:
tuple.first = object;
Submodule cdebug deleted from 0de6d7

0 comments on commit 2fa8d89

Please sign in to comment.