if (show)
[animator performSelector:@selector(startAnimation:) withObject:animation afterDelay:delay];
+#ifndef __OBJC2__
[delegate_ showKeyboard:show];
+#endif
}
- (void) textFieldDidBecomeFirstResponder:(UITextField *)field {
[table_ setShouldHideHeaderInShortLists:NO];
[transition_ transition:0 toView:table_];
- CGRect cnfrect = {{1, 38}, {17, 18}};
+ CGRect cnfrect = {{
+#ifdef __OBJC2__
+ 6 +
+#endif
+ 1, 38}, {17, 18}};
CGRect area;
- area.origin.x = cnfrect.size.width + 15;
+ area.origin.x = cnfrect.origin.x + cnfrect.size.width + 14;
area.origin.y = 30;
- area.size.width = [self bounds].size.width - area.origin.x - 18;
+
+ area.size.width =
+#ifdef __OBJC2__
+ 8 +
+#endif
+ [self bounds].size.width - area.origin.x - 18;
+
area.size.height = [UISearchField defaultHeight];
field_ = [[UISearchField alloc] initWithFrame:area];
CFRelease(font);
[field_ setPlaceholder:@"Package Names & Descriptions"];
- [field_ setPaddingTop:5];
[field_ setDelegate:self];
+#ifdef __OBJC2__
+ [field_ setPaddingTop:3];
+#else
+ [field_ setPaddingTop:5];
+#endif
+
#ifndef __OBJC2__
UITextTraits *traits = [field_ textTraits];
[traits setEditingDelegate:self];
[traits setAutoCorrectionType:1];
#endif
- accessory_ = [[UIView alloc] initWithFrame:CGRectMake(0, 6, 6 + cnfrect.size.width + 6 + area.size.width + 6, area.size.height + 30)];
+ CGRect accrect = {{0, 6}, {6 + cnfrect.size.width + 6 + area.size.width + 6, area.size.height + 30}};
+
+ accessory_ = [[UIView alloc] initWithFrame:accrect];
[accessory_ addSubview:field_];
UIPushButton *configure = [[[UIPushButton alloc] initWithFrame:cnfrect] autorelease];
[navbar_ setBarStyle:1];
CGRect ovrrect = [navbar_ bounds];
- ovrrect.size.height = ([UINavigationBar defaultSizeWithPrompt].height - [UINavigationBar defaultSize].height)
-#ifdef __OBJC2__
- - 4
-#endif
- ;
+ ovrrect.size.height = ([UINavigationBar defaultSizeWithPrompt].height - [UINavigationBar defaultSize].height);
overlay_ = [[UIView alloc] initWithFrame:ovrrect];
[indicator_ setStyle:style];
[overlay_ addSubview:indicator_];
- CGSize prmsize = {200, indsize.width};
+ CGSize prmsize = {200, indsize.width + 4};
CGRect prmrect = {{
indoffset * 2 + indsize.width,
+#ifdef __OBJC2__
+ -1 +
+#endif
(ovrrect.size.height - prmsize.height) / 2
}, prmsize};