Permalink
Browse files

Pesquisa por prefixo na UISearchBar

  • Loading branch information...
1 parent d219f72 commit 416be737ce3d73608ea8e09c110573559233606a @goblindegook goblindegook committed Dec 24, 2010
View
5 Classes/DADelegate.h
@@ -13,13 +13,14 @@
UIWindow *window;
RootController *viewController;
UINavigationController *navController;
- NSMutableArray *searchResults;
+
+ NSArray *searchResults;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet RootController *viewController;
@property (nonatomic, retain) IBOutlet UINavigationController *navController;
-@property (nonatomic, retain) NSMutableArray *searchResults;
+@property (nonatomic, retain) NSArray *searchResults;
@end
View
4 Classes/DADelegate.m
@@ -8,6 +8,8 @@
#import "DADelegate.h"
#import "RootController.h"
+#import "DARemote.h"
+
#import "Entry.h"
#import "Form.h"
#import "Sense.h"
@@ -28,8 +30,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
// Override point for customization after application launch.
- self.searchResults = [[NSMutableArray alloc] initWithObjects:@"palavra", @"teste", @"olá", @"mundo", @"sim", @"não", @"carneiro", @"carneiro:1", @"carneiro:2", @"api", nil];
-
// Add the navigation controller's view to the window and display.
navController.viewControllers = [NSArray arrayWithObject:viewController];
[window addSubview:navController.view];
View
8 Classes/DAMarkup.m
@@ -15,11 +15,13 @@ +(NSString *)markupToHTML:(NSString *)string {
NSString *html = string;
if (html && html.length) {
- html = (NSMutableString *)[[NSRegularExpression regularExpressionWithPattern:@"\\[{2}(([^\\]:]*):\\d+)\\]{2}" options:0 error:nil] stringByReplacingMatchesInString:html options:0 range:NSMakeRange(0, [html length]) withTemplate:@"<a href=\"da:$1\">$2</a>"];
+ html = (NSMutableString *)[[NSRegularExpression regularExpressionWithPattern:@"\\[{2}(([^\\]:]*):(\\d+))\\]{2}" options:0 error:nil] stringByReplacingMatchesInString:html options:0 range:NSMakeRange(0, [html length]) withTemplate:@"<a href=\"define:$2#$3\">$2</a>"];
- html = (NSMutableString *)[[NSRegularExpression regularExpressionWithPattern:@"\\[{2}([^\\]:]*)\\]{2}" options:0 error:nil] stringByReplacingMatchesInString:html options:0 range:NSMakeRange(0, [html length]) withTemplate:@"<a href=\"da:$1\">$1</a>"];
+ html = (NSMutableString *)[[NSRegularExpression regularExpressionWithPattern:@"\\[{2}([^\\]]*)\\]{2}" options:0 error:nil] stringByReplacingMatchesInString:html options:0 range:NSMakeRange(0, [html length]) withTemplate:@"<a href=\"define:$1\">$1</a>"];
- html = (NSMutableString *)[[NSRegularExpression regularExpressionWithPattern:@"O mesmo que _([^_]*)_" options:0 error:nil] stringByReplacingMatchesInString:html options:0 range:NSMakeRange(0, [html length]) withTemplate:@"O mesmo que <a href=\"da:$1\">$1</a>"];
+ html = (NSMutableString *)[[NSRegularExpression regularExpressionWithPattern:@"O mesmo que _([^_]*)_" options:0 error:nil] stringByReplacingMatchesInString:html options:0 range:NSMakeRange(0, [html length]) withTemplate:@"O mesmo que <a href=\"define:$1\">$1</a>"];
+
+ html = (NSMutableString *)[[NSRegularExpression regularExpressionWithPattern:@"\\(De _([^_]*)_\\)" options:0 error:nil] stringByReplacingMatchesInString:html options:0 range:NSMakeRange(0, [html length]) withTemplate:@"(De <a href=\"define:$1\">$1</a>)"];
html = (NSMutableString *)[[NSRegularExpression regularExpressionWithPattern:@"_([^_]*)_" options:0 error:nil] stringByReplacingMatchesInString:html options:0 range:NSMakeRange(0, [html length]) withTemplate:@"<em>$1</em>"];
View
6 Classes/DARemote.h
@@ -14,8 +14,8 @@
}
+ (NSArray *)searchEntries:(NSString *)word error:(NSError **)error;
-+ (NSArray *)searchWithPrefix:(NSString *)prefix;
-+ (NSArray *)searchWithSuffix:(NSString *)suffix;
-+ (NSArray *)searchSimilar:(NSString *)word;
++ (NSArray *)searchWithPrefix:(NSString *)prefix error:(NSError **)error;
++ (NSArray *)searchWithSuffix:(NSString *)suffix error:(NSError **)error;
++ (NSArray *)searchSimilar:(NSString *)word error:(NSError **)error;
@end
View
33 Classes/DARemote.m
@@ -13,17 +13,17 @@
@implementation DARemote
+ (NSArray *)searchEntries:(NSString *)word error:(NSError **)error {
+ // TODO: Connection error checking
+ // TODO: Cache results
+ // TODO: Check for potential memory leaks here
NSMutableArray *entries = [[NSMutableArray alloc] init];
// Obtain definition from DicionarioAberto API
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://dicionario-aberto.net/search-xml/%@",
[word stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
NSString *result = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:error];
- // TODO: Error checking
- // TODO: Cache results
-
CXMLDocument *doc = [[CXMLDocument alloc] initWithData:[result dataUsingEncoding:NSUTF8StringEncoding] options:0 error:error];
for (CXMLElement *ee in [doc nodesForXPath:@"//entry" error:nil]) {
@@ -40,15 +40,34 @@ + (NSArray *)searchEntries:(NSString *)word error:(NSError **)error {
return entries;
}
-+ (NSArray *)searchWithPrefix:(NSString *)prefix {
- return nil;
++ (NSArray *)searchWithPrefix:(NSString *)prefix error:(NSError **)error {
+ // TODO: Connection error checking
+ // TODO: Cache results
+
+ // TODO: Check for potential memory leaks here
+ NSMutableArray *entries = [[NSMutableArray alloc] init];
+
+ // Obtain definition from DicionarioAberto API
+ NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://dicionario-aberto.net/search-xml?prefix=%@",
+ [prefix stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
+ NSString *result = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:error];
+
+ CXMLDocument *doc = [[CXMLDocument alloc] initWithData:[result dataUsingEncoding:NSUTF8StringEncoding] options:0 error:error];
+
+ for (CXMLElement *ee in [doc nodesForXPath:@"//list/entry" error:nil]) {
+ [entries addObject:[ee stringValue]];
+ }
+
+ [doc release];
+
+ return entries;
}
-+ (NSArray *)searchWithSuffix:(NSString *)suffix {
++ (NSArray *)searchWithSuffix:(NSString *)suffix error:(NSError **)error {
return nil;
}
-+ (NSArray *)searchSimilar:(NSString *)word {
++ (NSArray *)searchSimilar:(NSString *)word error:(NSError **)error {
return nil;
}
View
1 Classes/DefinitionController.h
@@ -11,7 +11,6 @@
@interface DefinitionController : UIViewController {
NSIndexPath *index;
-
IBOutlet UIWebView *definitionView;
}
View
29 Classes/DefinitionController.m
@@ -68,7 +68,7 @@ - (void)loadHTMLEntries:(NSArray *)entries n:(NSInteger)n {
// Loop over definition entries
for (Entry *entry in entries) {
// Skip entry:
- if (n && entry.n != n) {
+ if (n && entry.n && entry.n != n) {
continue;
}
@@ -146,16 +146,22 @@ - (void)loadHTMLEntries:(NSArray *)entries n:(NSInteger)n {
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
DADelegate *delegate = (DADelegate *)[[UIApplication sharedApplication] delegate];
- NSString *thisResult = [delegate.searchResults objectAtIndex:index.row];
- self.title = thisResult;
+ NSString *result = [delegate.searchResults objectAtIndex:index.row];
+ NSInteger lr = [delegate.searchResults indexOfObject:result];
+ NSInteger n = 0;
+
+ if (lr <= index.row)
+ n = 1 + index.row - lr;
// Obtain definition from DicionarioAberto API
- NSArray *entries = [DARemote searchEntries:thisResult error:nil];
+ NSArray *entries = [DARemote searchEntries:result error:nil];
- [self loadHTMLEntries:entries n:0];
+ self.title = result;
- //[entries release];
+ [self loadHTMLEntries:entries n:n];
+
+ [entries release];
}
- (void)webViewDidStartLoad:(UIWebView *)webView {
@@ -170,21 +176,20 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
if (navigationType == UIWebViewNavigationTypeLinkClicked) {
NSURL *url = [request URL];
- if ([[url scheme] isEqualToString:@"definition"]) {
- // TODO: Internal link, don't load URL in Web View
+ if ([[url scheme] isEqualToString:@"define"]) {
+ // TODO: Internal link, don't load URL in Web View
return NO;
}
}
return YES;
}
-/*
-// Override to allow orientations other than the default portrait orientation.
+
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationPortrait);
+ return YES;
}
-*/
+
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
View
6 Classes/RootController.h
@@ -7,8 +7,12 @@
#import <UIKit/UIKit.h>
-@interface RootController : UIViewController <UITableViewDataSource, UITableViewDelegate> {
+@interface RootController : UIViewController <UITableViewDataSource, UITableViewDelegate, UISearchBarDelegate> {
UITableView *searchResultsView;
+ IBOutlet UISearchBar *searchBar;
+
+ BOOL searching;
+ BOOL letUserSelectRow;
}
@property (nonatomic, retain) IBOutlet UITableView *searchResultsView;
View
65 Classes/RootController.m
@@ -8,6 +8,7 @@
#import "RootController.h"
#import "DefinitionController.h"
#import "DADelegate.h"
+#import "DARemote.h"
#import "Entry.h"
#import "Form.h"
#import "Sense.h"
@@ -41,17 +42,18 @@ - (void)loadView {
- (void)viewDidLoad {
self.title = @"Dicionário Aberto";
+ searching = NO;
+ letUserSelectRow = YES;
+
//[super viewDidLoad];
}
-/*
-// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationPortrait);
+ return YES;
}
-*/
+
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
@@ -71,6 +73,7 @@ - (void)dealloc {
[super dealloc];
}
+
#pragma mark UITableViewDataSource Methods
- (UITableViewCell *)tableView:(UITableView *)srv
@@ -101,6 +104,13 @@ - (NSInteger)tableView:(UITableView *)srv
#pragma mark UITableViewDelegate Methods
+- (NSIndexPath *)tableView:(UITableView *)theTableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
+ if (letUserSelectRow)
+ return indexPath;
+ else
+ return nil;
+}
+
- (void)tableView:(UITableView *)tv didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
DADelegate *delegate = (DADelegate *)[[UIApplication sharedApplication] delegate];
DefinitionController *definition = [[DefinitionController alloc] initWithIndexPath:indexPath];
@@ -117,4 +127,51 @@ - (void)tableView:(UITableView *)tv didSelectRowAtIndexPath:(NSIndexPath *)index
[tv deselectRowAtIndexPath:indexPath animated:YES];
}
+
+#pragma mark UISearchBarDelegate Methods
+
+- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)theSearchBar {
+ searchBar.showsCancelButton = NO;
+ return YES;
+}
+
+
+- (BOOL)searchBarShouldEndEditing:(UISearchBar *)theSearchBar {
+ searchBar.showsCancelButton = NO;
+ [searchBar sizeToFit];
+ return YES;
+}
+
+
+- (void)searchBarTextDidBeginEditing:(UISearchBar *)theSearchBar {
+ searching = YES;
+ letUserSelectRow = YES;
+ searchBar.showsCancelButton = NO;
+
+ self.searchResultsView.scrollEnabled = NO;
+}
+
+
+- (void)searchBar:(UISearchBar *)theSearchBar textDidChange:(NSString *)searchText {
+ DADelegate *delegate = (DADelegate *)[[UIApplication sharedApplication] delegate];
+
+ if ([searchText length] > 0) {
+ searching = YES;
+ letUserSelectRow = YES;
+ self.searchResultsView.scrollEnabled = YES;
+
+ // TODO: Prevent API call when searchResults < 10, search only within previously obtained list
+
+ delegate.searchResults = [DARemote searchWithPrefix:searchText error:nil];
+ } else {
+ searching = NO;
+ letUserSelectRow = NO;
+ self.searchResultsView.scrollEnabled = NO;
+ delegate.searchResults = nil;
+ }
+
+ [self.searchResultsView reloadData];
+}
+
+
@end
View
10 DicionarioAberto.css
@@ -1,10 +1,12 @@
body {
- font-family: Palatino, Georgia;
+ font-family: Palatino;
background-color: #ffe;
+ padding: .2em;
}
a {
color: #c00;
+ text-decoration: none;
}
.senses a {
@@ -45,8 +47,8 @@ a {
}
.sense .definitions li span.singledef {
- font-family: Palatino, Georgia;
- font-size: 1.3em;
+ font-family: Palatino;
+ font-size: 1.4em;
line-height: 1.6em;
color: #000;
}
@@ -61,7 +63,7 @@ a {
footer {
border-top: 1px solid #ccb;
- margin-top: 1.5em;
+ margin-top: 1.8em;
padding-top: .5em;
font-size: .8em;
}
View
102 DicionarioAberto.xcodeproj/goblin.mode1v3
@@ -276,13 +276,13 @@
<key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key>
<array>
<array>
- <integer>24</integer>
- <integer>1</integer>
+ <integer>32</integer>
+ <integer>26</integer>
<integer>0</integer>
</array>
</array>
<key>PBXSmartGroupTreeModuleOutlineStateVisibleRectKey</key>
- <string>{{0, 110}, {186, 568}}</string>
+ <string>{{0, 128}, {186, 568}}</string>
</dict>
<key>PBXTopSmartGroupGIDs</key>
<array/>
@@ -319,46 +319,46 @@
<key>PBXProjectModuleGUID</key>
<string>1CE0B20306471E060097A5F4</string>
<key>PBXProjectModuleLabel</key>
- <string>DARemote.m</string>
+ <string>RootController.m</string>
<key>PBXSplitModuleInNavigatorKey</key>
<dict>
<key>Split0</key>
<dict>
<key>PBXProjectModuleGUID</key>
<string>1CE0B20406471E060097A5F4</string>
<key>PBXProjectModuleLabel</key>
- <string>DARemote.m</string>
+ <string>RootController.m</string>
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
- <string>DCD148D012C3FA2E00E26123</string>
+ <string>DCFE8DB512C4470F002082D8</string>
<key>history</key>
<array>
<string>DCE972EF12C2C8DF00BC3FB3</string>
<string>DCD1454712C37AE800E26123</string>
<string>DCD1454812C37AE800E26123</string>
- <string>DCD1477C12C3B9FA00E26123</string>
<string>DCD1478712C3BAA500E26123</string>
<string>DCD1479712C3BB5300E26123</string>
- <string>DCD147D112C3DF1800E26123</string>
- <string>DCD147D212C3DF1800E26123</string>
- <string>DCD147DA12C3DF1800E26123</string>
<string>DCD147DE12C3E0D500E26123</string>
- <string>DCD147E112C3E0D500E26123</string>
- <string>DCD147EC12C3E29C00E26123</string>
- <string>DCD147EE12C3E29C00E26123</string>
- <string>DCD147EF12C3E29C00E26123</string>
- <string>DCD147F012C3E29C00E26123</string>
- <string>DCD1480912C3E55D00E26123</string>
- <string>DCD1483912C3E7C900E26123</string>
- <string>DCD1484E12C3EB8200E26123</string>
- <string>DCD1485D12C3ECF200E26123</string>
- <string>DCD1487512C3EFDB00E26123</string>
- <string>DCD1488212C3F02E00E26123</string>
- <string>DCD148C612C3F99E00E26123</string>
- <string>DCD148CD12C3F9C000E26123</string>
- <string>DCD148CF12C3FA2E00E26123</string>
- <string>DCD148AF12C3F75B00E26123</string>
+ <string>DCFE8CA912C4298E002082D8</string>
+ <string>DCFE8CAA12C4298E002082D8</string>
+ <string>DCFE8CAB12C4298E002082D8</string>
+ <string>DCFE8CAC12C4298E002082D8</string>
+ <string>DCFE8CC912C42AEC002082D8</string>
+ <string>DCFE8CE912C42DF9002082D8</string>
+ <string>DCFE8CEA12C42DF9002082D8</string>
+ <string>DCFE8CEB12C42DF9002082D8</string>
+ <string>DCFE8D3012C43829002082D8</string>
+ <string>DCFE8D3112C43829002082D8</string>
+ <string>DCFE8D3312C43829002082D8</string>
+ <string>DCFE8D5F12C43CEB002082D8</string>
+ <string>DCFE8D6012C43CEB002082D8</string>
+ <string>DCFE8D6112C43CEB002082D8</string>
+ <string>DCFE8D6212C43CEB002082D8</string>
+ <string>DCFE8D7312C43DB9002082D8</string>
+ <string>DCFE8D8912C44222002082D8</string>
+ <string>DCFE8D8A12C44222002082D8</string>
+ <string>DCFE8D8612C4415A002082D8</string>
</array>
</dict>
<key>SplitCount</key>
@@ -370,14 +370,14 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{0, 0}, {1003, 490}}</string>
+ <string>{{0, 0}, {1003, 487}}</string>
<key>RubberWindowFrame</key>
<string>47 137 1211 627 0 0 1280 778 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
<key>Proportion</key>
- <string>490pt</string>
+ <string>487pt</string>
</dict>
<dict>
<key>ContentConfiguration</key>
@@ -390,14 +390,14 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{0, 495}, {1003, 91}}</string>
+ <string>{{0, 492}, {1003, 94}}</string>
<key>RubberWindowFrame</key>
<string>47 137 1211 627 0 0 1280 778 </string>
</dict>
<key>Module</key>
<string>XCDetailModule</string>
<key>Proportion</key>
- <string>91pt</string>
+ <string>94pt</string>
</dict>
</array>
<key>Proportion</key>
@@ -416,9 +416,9 @@
</array>
<key>TableOfContents</key>
<array>
- <string>DCD1444712C35A4A00E26123</string>
+ <string>DCFE8C8312C4231A002082D8</string>
<string>1CE0B1FE06471DED0097A5F4</string>
- <string>DCD1444812C35A4A00E26123</string>
+ <string>DCFE8C8412C4231A002082D8</string>
<string>1CE0B20306471E060097A5F4</string>
<string>1CE0B20506471E060097A5F4</string>
</array>
@@ -568,13 +568,11 @@
<integer>5</integer>
<key>WindowOrderList</key>
<array>
- <string>DCD145A912C3832400E26123</string>
- <string>DCB759D412C0204300CB6A05</string>
- <string>DCD1449A12C363E500E26123</string>
- <string>DCD1447812C3604A00E26123</string>
- <string>DCB759CA12C0204300CB6A05</string>
+ <string>DCFE8CFC12C43028002082D8</string>
+ <string>DCFE8D0212C4302D002082D8</string>
+ <string>DCFE8D0312C4302D002082D8</string>
<string>1C78EAAD065D492600B07095</string>
- <string>1CD10A99069EF8BA00B06720</string>
+ <string>DCB759CA12C0204300CB6A05</string>
<string>/Users/Goblin/Documents/Projects/DicionarioAberto/DicionarioAberto.xcodeproj</string>
</array>
<key>WindowString</key>
@@ -594,6 +592,8 @@
<key>Dock</key>
<array>
<dict>
+ <key>BecomeActive</key>
+ <true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
@@ -616,8 +616,6 @@
<string>267pt</string>
</dict>
<dict>
- <key>BecomeActive</key>
- <true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
@@ -657,7 +655,7 @@
<key>TableOfContents</key>
<array>
<string>DCB759CA12C0204300CB6A05</string>
- <string>DCD1444912C35A4A00E26123</string>
+ <string>DCFE8C8512C4231A002082D8</string>
<string>1CD0528F0623707200166675</string>
<string>XCMainBuildResultsModuleGUID</string>
</array>
@@ -779,13 +777,13 @@
<key>TableOfContents</key>
<array>
<string>1CD10A99069EF8BA00B06720</string>
- <string>DCD1445D12C35F3E00E26123</string>
+ <string>DCFE8C8612C4231A002082D8</string>
<string>1C162984064C10D400B95A72</string>
- <string>DCD1445E12C35F3E00E26123</string>
- <string>DCD1445F12C35F3E00E26123</string>
- <string>DCD1446012C35F3E00E26123</string>
- <string>DCD1446112C35F3E00E26123</string>
- <string>DCD1446212C35F3E00E26123</string>
+ <string>DCFE8C8712C4231A002082D8</string>
+ <string>DCFE8C8812C4231A002082D8</string>
+ <string>DCFE8C8912C4231A002082D8</string>
+ <string>DCFE8C8A12C4231A002082D8</string>
+ <string>DCFE8C8B12C4231A002082D8</string>
</array>
<key>ToolbarConfiguration</key>
<string>xcode.toolbar.config.debugV3</string>
@@ -912,8 +910,6 @@
<key>Dock</key>
<array>
<dict>
- <key>BecomeActive</key>
- <true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
@@ -949,7 +945,7 @@
<key>TableOfContents</key>
<array>
<string>1C78EAAD065D492600B07095</string>
- <string>DCD1447612C3604A00E26123</string>
+ <string>DCFE8CB412C4298E002082D8</string>
<string>1C78EAAC065D492600B07095</string>
</array>
<key>ToolbarConfiguration</key>
@@ -959,7 +955,7 @@
<key>WindowToolGUID</key>
<string>1C78EAAD065D492600B07095</string>
<key>WindowToolIsVisible</key>
- <true/>
+ <false/>
</dict>
<dict>
<key>Identifier</key>
@@ -1210,8 +1206,8 @@
<true/>
<key>TableOfContents</key>
<array>
- <string>DCD145A912C3832400E26123</string>
- <string>DCD145AA12C3832400E26123</string>
+ <string>DCFE8CFC12C43028002082D8</string>
+ <string>DCFE8CFD12C43028002082D8</string>
<string>1CE0B1FE06471DED0097A5F4</string>
<string>1CA1AED706398EBD00589147</string>
</array>
@@ -1220,7 +1216,7 @@
<key>WindowString</key>
<string>43 332 744 409 0 0 1280 778 </string>
<key>WindowToolGUID</key>
- <string>DCD145A912C3832400E26123</string>
+ <string>DCFE8CFC12C43028002082D8</string>
<key>WindowToolIsVisible</key>
<false/>
</dict>
View
5,809 DicionarioAberto.xcodeproj/goblin.pbxuser
1,247 additions, 4,562 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
58 RootController.xib
@@ -54,9 +54,16 @@
<reference key="NSSuperview" ref="723877142"/>
<int key="IBUIContentMode">3</int>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <string key="IBText"/>
+ <string key="IBPrompt"/>
+ <string key="IBPlaceholder">Pesquisa</string>
<object class="IBUITextInputTraits" key="IBTextInputTraits">
+ <int key="IBUIAutocorrectionType">1</int>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
+ <object class="NSArray" key="IBScopeButtonTitles">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
</object>
</object>
<string key="NSFrameSize">{320, 460}</string>
@@ -107,14 +114,6 @@
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">searchBar</string>
- <reference key="source" ref="351541326"/>
- <reference key="destination" ref="434102447"/>
- </object>
- <int key="connectionID">22</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">searchDisplayController</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="351541326"/>
@@ -185,6 +184,14 @@
</object>
<int key="connectionID">33</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">searchBar</string>
+ <reference key="source" ref="351541326"/>
+ <reference key="destination" ref="434102447"/>
+ </object>
+ <int key="connectionID">34</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -273,7 +280,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">33</int>
+ <int key="maxID">34</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -293,14 +300,35 @@
<string key="className">RootController</string>
<string key="superclassName">UIViewController</string>
<object class="NSMutableDictionary" key="outlets">
- <string key="NS.key.0">searchResultsView</string>
- <string key="NS.object.0">UITableView</string>
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>searchBar</string>
+ <string>searchResultsView</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>UISearchBar</string>
+ <string>UITableView</string>
+ </object>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
- <string key="NS.key.0">searchResultsView</string>
- <object class="IBToOneOutletInfo" key="NS.object.0">
- <string key="name">searchResultsView</string>
- <string key="candidateClassName">UITableView</string>
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>searchBar</string>
+ <string>searchResultsView</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBToOneOutletInfo">
+ <string key="name">searchBar</string>
+ <string key="candidateClassName">UISearchBar</string>
+ </object>
+ <object class="IBToOneOutletInfo">
+ <string key="name">searchResultsView</string>
+ <string key="candidateClassName">UITableView</string>
+ </object>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">

0 comments on commit 416be73

Please sign in to comment.