Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 8d230e2fcf9f9da4189d28cb426d337dad55e6dc @itod committed Jan 26, 2010
Showing with 11,184 additions and 0 deletions.
  1. +2 −0 English.lproj/InfoPlist.strings
  2. +28 −0 Info.plist
  3. 0 README
  4. +982 −0 UMEKit.xcodeproj/project.pbxproj
  5. +7 −0 UMEKit_Prefix.pch
  6. +24 −0 demoapp/DemoApp-Info.plist
  7. +18 −0 demoapp/DemoAppDelegate.h
  8. +61 −0 demoapp/DemoAppDelegate.m
  9. +3,050 −0 demoapp/DemoAppMainMenu.xib
  10. +895 −0 demoapp/FirstView.xib
  11. +16 −0 demoapp/MyFirstViewController.h
  12. +87 −0 demoapp/MyFirstViewController.m
  13. +17 −0 demoapp/MyRootViewController.h
  14. +146 −0 demoapp/MyRootViewController.m
  15. +16 −0 demoapp/MySecondViewController.h
  16. +75 −0 demoapp/MySecondViewController.m
  17. +16 −0 demoapp/MyThirdViewController.h
  18. +63 −0 demoapp/MyThirdViewController.m
  19. +674 −0 demoapp/RootView.xib
  20. +637 −0 demoapp/SecondView.xib
  21. +637 −0 demoapp/ThirdView.xib
  22. +13 −0 demoapp/main.m
  23. +15 −0 include/UMEKit/UMEActivityBarButtonItem.h
  24. +63 −0 include/UMEKit/UMEBarButtonItem.h
  25. +25 −0 include/UMEKit/UMEBarItem.h
  26. +33 −0 include/UMEKit/UMEGeometry.h
  27. +14 −0 include/UMEKit/UMEInterface.h
  28. +25 −0 include/UMEKit/UMEKit.h
  29. +51 −0 include/UMEKit/UMENavigationBar.h
  30. +77 −0 include/UMEKit/UMENavigationController.h
  31. +43 −0 include/UMEKit/UMENavigationItem.h
  32. +15 −0 include/UMEKit/UMETabBar.h
  33. +48 −0 include/UMEKit/UMETabBarController.h
  34. +36 −0 include/UMEKit/UMETabBarItem.h
  35. +57 −0 include/UMEKit/UMEViewController.h
  36. BIN res/img/back_button_bg.png
  37. BIN res/img/back_button_bg_01.png
  38. BIN res/img/back_button_bg_02.png
  39. BIN res/img/back_button_bg_03.png
  40. BIN res/img/back_button_bg_hi_01.png
  41. BIN res/img/back_button_bg_hi_02.png
  42. BIN res/img/back_button_bg_hi_03.png
  43. BIN res/img/barbutton_system_item_action.png
  44. BIN res/img/barbutton_system_item_action_hi.png
  45. BIN res/img/barbutton_system_item_bookmarks.png
  46. BIN res/img/barbutton_system_item_bookmarks_hi.png
  47. BIN res/img/barbutton_system_item_camera.png
  48. BIN res/img/barbutton_system_item_camera_hi.png
  49. BIN res/img/barbutton_system_item_compose.png
  50. BIN res/img/barbutton_system_item_compose_hi.png
  51. BIN res/img/barbutton_system_item_everyone.png
  52. BIN res/img/barbutton_system_item_fastforward.png
  53. BIN res/img/barbutton_system_item_fastforward_hi.png
  54. BIN res/img/barbutton_system_item_organize.png
  55. BIN res/img/barbutton_system_item_organize_hi.png
  56. BIN res/img/barbutton_system_item_pause.png
  57. BIN res/img/barbutton_system_item_pause_hi.png
  58. BIN res/img/barbutton_system_item_play.png
  59. BIN res/img/barbutton_system_item_play_hi.png
  60. BIN res/img/barbutton_system_item_refresh.png
  61. BIN res/img/barbutton_system_item_refresh_hi.png
  62. BIN res/img/barbutton_system_item_reply.png
  63. BIN res/img/barbutton_system_item_reply_hi.png
  64. BIN res/img/barbutton_system_item_rewind.png
  65. BIN res/img/barbutton_system_item_rewind_hi.png
  66. BIN res/img/barbutton_system_item_search.png
  67. BIN res/img/barbutton_system_item_search_hi.png
  68. BIN res/img/barbutton_system_item_stop.png
  69. BIN res/img/barbutton_system_item_stop_hi.png
  70. BIN res/img/barbutton_system_item_trash.png
  71. BIN res/img/barbutton_system_item_trash_hi.png
  72. BIN res/img/barbutton_system_item_user.png
  73. BIN res/img/barbuttonitem_done_bg.png
  74. BIN res/img/barbuttonitem_done_bg_01.png
  75. BIN res/img/barbuttonitem_done_bg_02.png
  76. BIN res/img/barbuttonitem_done_bg_03.png
  77. BIN res/img/barbuttonitem_done_bg_hi_01.png
  78. BIN res/img/barbuttonitem_done_bg_hi_02.png
  79. BIN res/img/barbuttonitem_done_bg_hi_03.png
  80. BIN res/img/barbuttonitem_plain_bg.png
  81. BIN res/img/barbuttonitem_plain_bg_01.png
  82. BIN res/img/barbuttonitem_plain_bg_02.jpg
  83. BIN res/img/barbuttonitem_plain_bg_03.jpg
  84. BIN res/img/barbuttonitem_plain_bg_hi_01.png
  85. BIN res/img/barbuttonitem_plain_bg_hi_02.jpg
  86. BIN res/img/barbuttonitem_plain_bg_hi_03.jpg
  87. BIN res/img/navbar_bg.png
  88. BIN res/img/tabbar_bg.png
  89. BIN res/img/tabbar_button_bg_hi_01.png
  90. BIN res/img/tabbar_button_bg_hi_02.png
  91. BIN res/img/tabbar_button_bg_hi_03.png
  92. BIN res/img/tabbar_system_item_bookmarks.png
  93. BIN res/img/tabbar_system_item_bookmarks_hi.png
  94. BIN res/img/tabbar_system_item_contacts.png
  95. BIN res/img/tabbar_system_item_contacts_hi.png
  96. BIN res/img/tabbar_system_item_downloads.png
  97. BIN res/img/tabbar_system_item_downloads_hi.png
  98. BIN res/img/tabbar_system_item_favorites.png
  99. BIN res/img/tabbar_system_item_favorites_hi.png
  100. BIN res/img/tabbar_system_item_featured.png
  101. BIN res/img/tabbar_system_item_featured_hi.png
  102. BIN res/img/tabbar_system_item_more.png
  103. BIN res/img/tabbar_system_item_more_hi.png
  104. BIN res/img/tabbar_system_item_mostrecent.png
  105. BIN res/img/tabbar_system_item_mostrecent_hi.png
  106. BIN res/img/tabbar_system_item_mostviewed.png
  107. BIN res/img/tabbar_system_item_mostviewed_hi.png
  108. BIN res/img/tabbar_system_item_recents.png
  109. BIN res/img/tabbar_system_item_recents_hi.png
  110. BIN res/img/tabbar_system_item_search.png
  111. BIN res/img/tabbar_system_item_search_hi.png
  112. BIN res/psd/back_button_bg.psd
  113. BIN res/psd/barbutton_system_item_action.pxm
  114. BIN res/psd/barbutton_system_item_bookmarks.pxm
  115. BIN res/psd/barbutton_system_item_camera.pxm
  116. BIN res/psd/barbutton_system_item_compose.psd
  117. BIN res/psd/barbutton_system_item_compose.pxm
  118. BIN res/psd/barbutton_system_item_everyone.psd
  119. BIN res/psd/barbutton_system_item_fastforward.pxm
  120. BIN res/psd/barbutton_system_item_organize.pxm
  121. BIN res/psd/barbutton_system_item_pause.pxm
  122. BIN res/psd/barbutton_system_item_play.pxm
  123. BIN res/psd/barbutton_system_item_refresh.pxm
  124. BIN res/psd/barbutton_system_item_reply.pxm
  125. BIN res/psd/barbutton_system_item_rewind.pxm
  126. BIN res/psd/barbutton_system_item_search.pxm
  127. BIN res/psd/barbutton_system_item_stop.pxm
  128. BIN res/psd/barbutton_system_item_trash.pxm
  129. BIN res/psd/barbutton_system_item_user.psd
  130. BIN res/psd/barbuttonitem_done_bg.psd
  131. BIN res/psd/barbuttonitem_plain_bg.psd
  132. BIN res/psd/navbar_bg.psd
  133. BIN res/psd/tabbar_bg.psd
  134. BIN res/psd/tabbar_button_bg_hi.psd
  135. BIN res/psd/tabbar_system_item.psd
  136. +43 −0 src/UMEActivityBarButtonItem.m
  137. +15 −0 src/UMEActivityBarButtonItemButton.h
  138. +47 −0 src/UMEActivityBarButtonItemButton.m
  139. +26 −0 src/UMEActivityBarButtonItemButtonCell.h
  140. +162 −0 src/UMEActivityBarButtonItemButtonCell.m
  141. +292 −0 src/UMEBarButtonItem.m
  142. +18 −0 src/UMEBarButtonItemButton.h
  143. +76 −0 src/UMEBarButtonItemButton.m
  144. +15 −0 src/UMEBarButtonItemButtonCell.h
  145. +260 −0 src/UMEBarButtonItemButtonCell.m
  146. +32 −0 src/UMEBarItem.m
  147. +16 −0 src/UMEDebugView.h
  148. +35 −0 src/UMEDebugView.m
  149. +15 −0 src/UMEFlippedView.h
  150. +28 −0 src/UMEFlippedView.m
  151. +388 −0 src/UMENavigationBar.m
  152. +444 −0 src/UMENavigationController.m
  153. +125 −0 src/UMENavigationItem.m
  154. +15 −0 src/UMERedView.h
  155. +33 −0 src/UMERedView.m
  156. +47 −0 src/UMETabBar.m
  157. +428 −0 src/UMETabBarController.m
  158. +170 −0 src/UMETabBarItem.m
  159. +18 −0 src/UMETabBarItemButton.h
  160. +42 −0 src/UMETabBarItemButton.m
  161. +15 −0 src/UMETabBarItemButtonCell.h
  162. +167 −0 src/UMETabBarItemButtonCell.m
  163. +152 −0 src/UMEViewController.m
  164. +16 −0 version.plist
  165. BIN web/i/umekit.png
  166. +78 −0 web/index.html
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>nu.tod.${PRODUCT_NAME:rfc1034Identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>FMWK</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>NSPrincipalClass</key>
+ <string></string>
+</dict>
+</plist>
No changes.
Oops, something went wrong.
@@ -0,0 +1,7 @@
+//
+// Prefix header for all source files of the 'UMEKit' target in the 'UMEKit' project.
+//
+
+#ifdef __OBJC__
+ #import <Cocoa/Cocoa.h>
+#endif
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.yourcompany.${PRODUCT_NAME:identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>NSMainNibFile</key>
+ <string>DemoAppMainMenu</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+//
+// DemoAppDelegate.h
+// UMEKit
+//
+// Created by Todd Ditchendorf on 9/30/09.
+// Copyright 2009 Yahoo! Inc.. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+#import <UMEKit/UMEKit.h>
+
+@interface DemoAppDelegate : NSObject {
+ IBOutlet NSWindow *window;
+ UMETabBarController *tabBarController;
+}
+
+@property (nonatomic, retain) UMETabBarController *tabBarController;
+@end
@@ -0,0 +1,61 @@
+//
+// DemoAppDelegate.m
+// UMEKit
+//
+// Created by Todd Ditchendorf on 9/30/09.
+// Copyright 2009 Yahoo! Inc.. All rights reserved.
+//
+
+#import "DemoAppDelegate.h"
+#import "MyRootViewController.h"
+#import "MyFirstViewController.h"
+#import "MySecondViewController.h"
+#import <UMEKit/UMEKit.h>
+
+@implementation DemoAppDelegate
+
+- (void)dealloc {
+ self.tabBarController = nil;
+ [super dealloc];
+}
+
+
+- (void)awakeFromNib {
+ UMEViewController *vc1 = [[[MyRootViewController alloc] init] autorelease];
+ UMENavigationController *nc1 = [[[UMENavigationController alloc] initWithRootViewController:vc1] autorelease];
+ nc1.title = @"One";
+ nc1.tabBarItem = [[[UMETabBarItem alloc] initWithTabBarSystemItem:UMETabBarSystemItemMostRecent tag:1] autorelease];
+
+ UMEViewController *vc2 = [[[MyRootViewController alloc] init] autorelease];
+ UMENavigationController *nc2 = [[[UMENavigationController alloc] initWithRootViewController:vc2] autorelease];
+ nc2.title = @"Two";
+ nc2.tabBarItem = [[[UMETabBarItem alloc] initWithTabBarSystemItem:UMETabBarSystemItemFavorites tag:2] autorelease];
+
+ UMEViewController *vc3 = [[[MyRootViewController alloc] init] autorelease];
+ UMENavigationController *nc3 = [[[UMENavigationController alloc] initWithRootViewController:vc3] autorelease];
+ nc3.title = @"Three";
+ nc3.tabBarItem = [[[UMETabBarItem alloc] initWithTabBarSystemItem:UMETabBarSystemItemMostViewed tag:3] autorelease];
+
+ UMEViewController *vc4 = [[[MyRootViewController alloc] init] autorelease];
+ UMENavigationController *nc4 = [[[UMENavigationController alloc] initWithRootViewController:vc4] autorelease];
+ nc4.title = @"Four";
+ nc4.tabBarItem = [[[UMETabBarItem alloc] initWithTabBarSystemItem:UMETabBarSystemItemRecents tag:4] autorelease];
+
+ UMEViewController *vc5 = [[[MyRootViewController alloc] init] autorelease];
+ UMENavigationController *nc5 = [[[UMENavigationController alloc] initWithRootViewController:vc5] autorelease];
+ nc5.title = @"Three";
+ nc5.tabBarItem = [[[UMETabBarItem alloc] initWithTabBarSystemItem:UMETabBarSystemItemContacts tag:5] autorelease];
+
+ self.tabBarController= [[[UMETabBarController alloc] init] autorelease];
+ tabBarController.viewControllers = [NSArray arrayWithObjects:nc1, nc2, nc3, nc4, nc5, nil];
+
+ NSView *view = tabBarController.view;
+ [view setFrame:[[window contentView] bounds]];
+
+ [tabBarController viewWillAppear:NO];
+ [[window contentView] addSubview:view];
+ [tabBarController viewDidAppear:NO];
+}
+
+@synthesize tabBarController;
+@end
Oops, something went wrong.

0 comments on commit 8d230e2

Please sign in to comment.