├── .gitignore ├── BeeFancy.xcodeproj └── project.pbxproj ├── BeeFancy ├── AppBoard_iPad.h ├── AppBoard_iPad.m ├── AppBoard_iPhone.h ├── AppBoard_iPhone.m ├── AppDelegate.h ├── AppDelegate.m ├── BeeFancy-Info.plist ├── BeeFancy-Prefix.pch ├── BeeFramework │ ├── BeeDebugger │ │ ├── ASIHTTPRequest+Bee.h │ │ ├── ASIHTTPRequest+Bee.m │ │ ├── Bee_Debug.h │ │ ├── Bee_Debug.m │ │ ├── Bee_DebugCrashReporter.h │ │ ├── Bee_DebugCrashReporter.mm │ │ ├── Bee_DebugDashBoard.h │ │ ├── Bee_DebugDashBoard.m │ │ ├── Bee_DebugDetailView.h │ │ ├── Bee_DebugDetailView.m │ │ ├── Bee_DebugHeatmapModel.h │ │ ├── Bee_DebugHeatmapModel.m │ │ ├── Bee_DebugMemoryModel.h │ │ ├── Bee_DebugMemoryModel.m │ │ ├── Bee_DebugMessageBoard.h │ │ ├── Bee_DebugMessageBoard.m │ │ ├── Bee_DebugMessageModel.h │ │ ├── Bee_DebugMessageModel.m │ │ ├── Bee_DebugNetworkBoard.h │ │ ├── Bee_DebugNetworkBoard.m │ │ ├── Bee_DebugNetworkModel.h │ │ ├── Bee_DebugNetworkModel.m │ │ ├── Bee_DebugPieView.h │ │ ├── Bee_DebugPieView.m │ │ ├── Bee_DebugPlotsView.h │ │ ├── Bee_DebugPlotsView.m │ │ ├── Bee_DebugSampleView.h │ │ ├── Bee_DebugSampleView.m │ │ ├── Bee_DebugSandboxBoard.h │ │ ├── Bee_DebugSandboxBoard.m │ │ ├── Bee_DebugUtility.h │ │ ├── Bee_DebugUtility.m │ │ ├── Bee_DebugViewBoard.h │ │ ├── Bee_DebugViewBoard.m │ │ ├── Bee_DebugViewModel.h │ │ ├── Bee_DebugViewModel.m │ │ ├── Bee_DebugWindow.h │ │ ├── Bee_DebugWindow.m │ │ ├── bug@2x.png │ │ ├── close@2x.png │ │ ├── file@2x.png │ │ ├── folder@2x.png │ │ ├── heat@2x.png │ │ └── tap@2x.png │ ├── BeeFramework │ │ ├── Bee.h │ │ ├── Bee_Precompile.h │ │ ├── Core │ │ │ ├── Bee_Core.h │ │ │ ├── Foundation │ │ │ │ ├── Bee_Foundation.h │ │ │ │ ├── Bee_Foundation.mm │ │ │ │ ├── Bee_Log.h │ │ │ │ ├── Bee_Log.mm │ │ │ │ ├── Bee_Performance.h │ │ │ │ ├── Bee_Performance.mm │ │ │ │ ├── Bee_Runtime.h │ │ │ │ ├── Bee_Runtime.mm │ │ │ │ ├── Bee_Sandbox.h │ │ │ │ ├── Bee_Sandbox.mm │ │ │ │ ├── Bee_Singleton.h │ │ │ │ ├── Bee_Singleton.mm │ │ │ │ ├── Bee_SystemInfo.h │ │ │ │ ├── Bee_SystemInfo.m │ │ │ │ ├── Bee_Thread.h │ │ │ │ ├── Bee_Thread.mm │ │ │ │ └── Extension │ │ │ │ │ ├── NSArray+BeeExtension.h │ │ │ │ │ ├── NSArray+BeeExtension.m │ │ │ │ │ ├── NSData+BeeExtension.h │ │ │ │ │ ├── NSData+BeeExtension.m │ │ │ │ │ ├── NSDate+BeeExtension.h │ │ │ │ │ ├── NSDate+BeeExtension.m │ │ │ │ │ ├── NSDictionary+BeeExtension.h │ │ │ │ │ ├── NSDictionary+BeeExtension.m │ │ │ │ │ ├── NSNumber+BeeExtension.h │ │ │ │ │ ├── NSNumber+BeeExtension.m │ │ │ │ │ ├── NSObject+BeeJSON.h │ │ │ │ │ ├── NSObject+BeeJSON.m │ │ │ │ │ ├── NSObject+BeeNotification.h │ │ │ │ │ ├── NSObject+BeeNotification.m │ │ │ │ │ ├── NSObject+BeeProperty.h │ │ │ │ │ ├── NSObject+BeeProperty.m │ │ │ │ │ ├── NSObject+BeeTicker.h │ │ │ │ │ ├── NSObject+BeeTicker.m │ │ │ │ │ ├── NSObject+BeeTypeConversion.h │ │ │ │ │ ├── NSObject+BeeTypeConversion.m │ │ │ │ │ ├── NSString+BeeExtension.h │ │ │ │ │ └── NSString+BeeExtension.m │ │ │ ├── Network │ │ │ │ ├── Bee_Network.h │ │ │ │ ├── Bee_Network.m │ │ │ │ ├── Bee_Request.h │ │ │ │ ├── Bee_Request.m │ │ │ │ ├── Bee_RequestQueue.h │ │ │ │ ├── Bee_RequestQueue.m │ │ │ │ └── Extension │ │ │ │ │ ├── NSObject+BeeRequest.h │ │ │ │ │ └── NSObject+BeeRequest.m │ │ │ └── Storage │ │ │ │ ├── Bee_ActiveBase.h │ │ │ │ ├── Bee_ActiveBase.m │ │ │ │ ├── Bee_ActiveRecord.h │ │ │ │ ├── Bee_ActiveRecord.m │ │ │ │ ├── Bee_Cache.h │ │ │ │ ├── Bee_Cache.m │ │ │ │ ├── Bee_Database.h │ │ │ │ ├── Bee_Database.m │ │ │ │ ├── Bee_Keychain.h │ │ │ │ ├── Bee_Keychain.m │ │ │ │ ├── Bee_Storage.h │ │ │ │ ├── Bee_Storage.m │ │ │ │ └── Extension │ │ │ │ ├── NSObject+BeeDatabase.h │ │ │ │ ├── NSObject+BeeDatabase.m │ │ │ │ ├── NSObject+BeeKeychain.h │ │ │ │ └── NSObject+BeeKeychain.m │ │ └── MVC │ │ │ ├── Bee_MVC.h │ │ │ ├── Controller │ │ │ ├── Bee_Controller.h │ │ │ ├── Bee_Controller.mm │ │ │ ├── Bee_Message.h │ │ │ ├── Bee_Message.mm │ │ │ ├── Bee_MessageQueue.h │ │ │ ├── Bee_MessageQueue.mm │ │ │ └── Extension │ │ │ │ ├── BeeMessage+ActiveRecord.h │ │ │ │ ├── BeeMessage+ActiveRecord.m │ │ │ │ ├── BeeMessage+HTTP.h │ │ │ │ ├── BeeMessage+HTTP.mm │ │ │ │ ├── BeeMessage+JSON.h │ │ │ │ ├── BeeMessage+JSON.mm │ │ │ │ ├── BeeMessage+XML.h │ │ │ │ ├── BeeMessage+XML.mm │ │ │ │ ├── NSObject+BeeMessage.h │ │ │ │ └── NSObject+BeeMessage.mm │ │ │ ├── Model │ │ │ ├── Bee_Model.h │ │ │ └── Bee_Model.m │ │ │ ├── View │ │ │ ├── Bee_UIActionSheet.h │ │ │ ├── Bee_UIActionSheet.m │ │ │ ├── Bee_UIActivityIndicatorView.h │ │ │ ├── Bee_UIActivityIndicatorView.m │ │ │ ├── Bee_UIAlertView.h │ │ │ ├── Bee_UIAlertView.m │ │ │ ├── Bee_UIButton.h │ │ │ ├── Bee_UIButton.m │ │ │ ├── Bee_UIDatePicker.h │ │ │ ├── Bee_UIDatePicker.m │ │ │ ├── Bee_UIGridCell.h │ │ │ ├── Bee_UIGridCell.m │ │ │ ├── Bee_UIImageView.h │ │ │ ├── Bee_UIImageView.m │ │ │ ├── Bee_UIKeyboard.h │ │ │ ├── Bee_UIKeyboard.m │ │ │ ├── Bee_UILabel.h │ │ │ ├── Bee_UILabel.m │ │ │ ├── Bee_UIMatrixView.h │ │ │ ├── Bee_UIMatrixView.m │ │ │ ├── Bee_UINavigationBar.h │ │ │ ├── Bee_UINavigationBar.m │ │ │ ├── Bee_UIOrientation.h │ │ │ ├── Bee_UIOrientation.m │ │ │ ├── Bee_UIPageControl.h │ │ │ ├── Bee_UIPageControl.m │ │ │ ├── Bee_UIProgressView.h │ │ │ ├── Bee_UIProgressView.m │ │ │ ├── Bee_UIPullLoader.h │ │ │ ├── Bee_UIPullLoader.m │ │ │ ├── Bee_UIScrollView.h │ │ │ ├── Bee_UIScrollView.m │ │ │ ├── Bee_UISegmentedControl.h │ │ │ ├── Bee_UISegmentedControl.m │ │ │ ├── Bee_UISignal.h │ │ │ ├── Bee_UISignal.m │ │ │ ├── Bee_UITabBar.h │ │ │ ├── Bee_UITabBar.m │ │ │ ├── Bee_UITextField.h │ │ │ ├── Bee_UITextField.m │ │ │ ├── Bee_UITextView.h │ │ │ ├── Bee_UITextView.m │ │ │ ├── Bee_UITipsView.h │ │ │ ├── Bee_UITipsView.m │ │ │ ├── Bee_UIWebView.h │ │ │ ├── Bee_UIWebView.m │ │ │ ├── Bee_UIZoomView.h │ │ │ ├── Bee_UIZoomView.m │ │ │ ├── Bee_View.h │ │ │ ├── Bee_View.m │ │ │ └── Extension │ │ │ │ ├── CGRect+BeeExtension.h │ │ │ │ ├── CGRect+BeeExtension.m │ │ │ │ ├── UIColor+BeeExtension.h │ │ │ │ ├── UIColor+BeeExtension.m │ │ │ │ ├── UIFont+BeeExtension.h │ │ │ │ ├── UIFont+BeeExtension.m │ │ │ │ ├── UIImage+BeeExtension.h │ │ │ │ ├── UIImage+BeeExtension.m │ │ │ │ ├── UIView+BeeExtension.h │ │ │ │ ├── UIView+BeeExtension.m │ │ │ │ ├── UIView+BeeUISignal.h │ │ │ │ ├── UIView+BeeUISignal.m │ │ │ │ ├── UIView+HoldGesture.h │ │ │ │ ├── UIView+HoldGesture.m │ │ │ │ ├── UIView+PanGesture.h │ │ │ │ ├── UIView+PanGesture.m │ │ │ │ ├── UIView+SwipeGesture.h │ │ │ │ ├── UIView+SwipeGesture.m │ │ │ │ ├── UIView+TapGesture.h │ │ │ │ └── UIView+TapGesture.m │ │ │ ├── ViewController │ │ │ ├── Bee_UIBoard.h │ │ │ ├── Bee_UIBoard.m │ │ │ ├── Bee_UIStack.h │ │ │ ├── Bee_UIStack.m │ │ │ ├── Bee_UIStackGroup.h │ │ │ ├── Bee_UIStackGroup.m │ │ │ ├── Bee_ViewController.h │ │ │ ├── Bee_ViewController.m │ │ │ └── Extension │ │ │ │ ├── UIViewController+BeeExtension.h │ │ │ │ ├── UIViewController+BeeExtension.m │ │ │ │ ├── UIViewController+BeeUISignal.h │ │ │ │ ├── UIViewController+BeeUISignal.m │ │ │ │ ├── UIViewController+UINavigationBar.h │ │ │ │ └── UIViewController+UINavigationBar.m │ │ │ └── ViewLayout │ │ │ ├── Bee_UICollection.h │ │ │ ├── Bee_UICollection.m │ │ │ ├── Bee_UILayout.h │ │ │ ├── Bee_UILayout.m │ │ │ ├── Bee_UILayoutCell.h │ │ │ ├── Bee_UILayoutCell.m │ │ │ ├── Bee_UIQuery.h │ │ │ ├── Bee_UIQuery.m │ │ │ ├── Bee_UIStyle.h │ │ │ ├── Bee_UIStyle.m │ │ │ ├── Bee_UITemplate.h │ │ │ ├── Bee_UITemplate.m │ │ │ ├── Bee_UITemplateAndroid.h │ │ │ ├── Bee_UITemplateAndroid.m │ │ │ ├── Bee_UITemplateHTML.h │ │ │ ├── Bee_UITemplateHTML.m │ │ │ ├── Bee_UITemplateJSON.h │ │ │ ├── Bee_UITemplateJSON.m │ │ │ ├── Bee_UITemplateOmniGraffle.h │ │ │ ├── Bee_UITemplateOmniGraffle.m │ │ │ ├── Bee_UITemplateXML.h │ │ │ ├── Bee_UITemplateXML.m │ │ │ ├── Bee_ViewLayout.h │ │ │ ├── Bee_ViewLayout.m │ │ │ └── Extension │ │ │ ├── BeeUIQuery+BeeUIStyle.h │ │ │ ├── BeeUIQuery+BeeUIStyle.m │ │ │ ├── BeeUIStyle+BeeUIQuery.h │ │ │ ├── BeeUIStyle+BeeUIQuery.m │ │ │ ├── UIButton+BeeUIStyle.h │ │ │ ├── UIButton+BeeUIStyle.m │ │ │ ├── UIImageView+BeeUIStyle.h │ │ │ ├── UIImageView+BeeUIStyle.m │ │ │ ├── UILabel+BeeUIStyle.h │ │ │ ├── UILabel+BeeUIStyle.m │ │ │ ├── UITextField+BeeUIStyle.h │ │ │ ├── UITextField+BeeUIStyle.m │ │ │ ├── UITextView+BeeUIStyle.h │ │ │ ├── UITextView+BeeUIStyle.m │ │ │ ├── UIView+BeeUILayout.h │ │ │ ├── UIView+BeeUILayout.m │ │ │ ├── UIView+BeeUIQuery.h │ │ │ ├── UIView+BeeUIQuery.m │ │ │ ├── UIView+BeeUIStyle.h │ │ │ ├── UIView+BeeUIStyle.m │ │ │ ├── UIViewController+BeeUILayout.h │ │ │ ├── UIViewController+BeeUILayout.m │ │ │ ├── UIViewController+BeeUIQuery.h │ │ │ ├── UIViewController+BeeUIQuery.m │ │ │ ├── UIViewController+BeeUIStyle.h │ │ │ └── UIViewController+BeeUIStyle.m │ ├── BeeTemplates │ │ └── CustomBoard │ │ │ ├── Bee_UICameraBoard.h │ │ │ ├── Bee_UICameraBoard.m │ │ │ ├── Bee_UIFlowBoard.h │ │ │ ├── Bee_UIFlowBoard.m │ │ │ ├── Bee_UITableBoard.h │ │ │ ├── Bee_UITableBoard.m │ │ │ ├── Bee_UIWebBoard.h │ │ │ └── Bee_UIWebBoard.m │ └── External │ │ ├── ASI │ │ ├── ASIAuthenticationDialog.h │ │ ├── ASIAuthenticationDialog.m │ │ ├── ASICacheDelegate.h │ │ ├── ASIDataCompressor.h │ │ ├── ASIDataCompressor.m │ │ ├── ASIDataDecompressor.h │ │ ├── ASIDataDecompressor.m │ │ ├── ASIDownloadCache.h │ │ ├── ASIDownloadCache.m │ │ ├── ASIFormDataRequest.h │ │ ├── ASIFormDataRequest.m │ │ ├── ASIHTTPRequest.h │ │ ├── ASIHTTPRequest.m │ │ ├── ASIHTTPRequestConfig.h │ │ ├── ASIHTTPRequestDelegate.h │ │ ├── ASIInputStream.h │ │ ├── ASIInputStream.m │ │ ├── ASINetworkQueue.h │ │ ├── ASINetworkQueue.m │ │ └── ASIProgressDelegate.h │ │ ├── FMDB │ │ ├── FMDatabase.h │ │ ├── FMDatabase.m │ │ ├── FMDatabaseAdditions.h │ │ ├── FMDatabaseAdditions.m │ │ ├── FMDatabasePool.h │ │ ├── FMDatabasePool.m │ │ ├── FMDatabaseQueue.h │ │ ├── FMDatabaseQueue.m │ │ ├── FMResultSet.h │ │ └── FMResultSet.m │ │ ├── JSONKit │ │ ├── JSONKit.h │ │ └── JSONKit.m │ │ ├── Reachability │ │ ├── Reachability.h │ │ └── Reachability.m │ │ └── TouchXML │ │ ├── CXHTMLDocument.h │ │ ├── CXHTMLDocument.m │ │ ├── CXMLDocument.h │ │ ├── CXMLDocument.m │ │ ├── CXMLDocument_PrivateExtensions.h │ │ ├── CXMLDocument_PrivateExtensions.m │ │ ├── CXMLElement.h │ │ ├── CXMLElement.m │ │ ├── CXMLElement_CreationExtensions.h │ │ ├── CXMLElement_CreationExtensions.m │ │ ├── CXMLElement_ElementTreeExtensions.h │ │ ├── CXMLElement_ElementTreeExtensions.m │ │ ├── CXMLNamespaceNode.h │ │ ├── CXMLNamespaceNode.m │ │ ├── CXMLNode.h │ │ ├── CXMLNode.m │ │ ├── CXMLNode_PrivateExtensions.h │ │ ├── CXMLNode_PrivateExtensions.m │ │ ├── CXMLNode_XPathExtensions.h │ │ ├── CXMLNode_XPathExtensions.m │ │ ├── Creation │ │ ├── CXMLDocument_CreationExtensions.h │ │ ├── CXMLDocument_CreationExtensions.m │ │ ├── CXMLNode_CreationExtensions.h │ │ └── CXMLNode_CreationExtensions.m │ │ ├── Tidy │ │ ├── CTidy.h │ │ └── CTidy.m │ │ └── TouchXML.h ├── Controller │ └── placeholder.txt ├── Default-568h@2x.png ├── Default.png ├── Default@2x.png ├── Model │ └── placeholder.txt ├── en.lproj │ └── InfoPlist.strings ├── iPad │ ├── Resource │ │ └── placeholder.txt │ └── View │ │ └── placeholder.txt ├── iPhone │ ├── Resource │ │ ├── alertBox@2x.png │ │ └── skeleton.json │ └── View │ │ ├── AccountBoard_iPhone.h │ │ ├── AccountBoard_iPhone.m │ │ ├── AddBoard_iPhone.h │ │ ├── AddBoard_iPhone.m │ │ ├── BaseBoard_iPhone.h │ │ ├── BaseBoard_iPhone.m │ │ ├── BrowseBoard_iPhone.h │ │ ├── BrowseBoard_iPhone.m │ │ ├── CartBoard_iPhone.h │ │ ├── CartBoard_iPhone.m │ │ ├── CategoryBoard_iPhone.h │ │ ├── CategoryBoard_iPhone.m │ │ ├── CommentBoard_iPhone.h │ │ ├── CommentBoard_iPhone.m │ │ ├── FancyBoard_iPhone.h │ │ ├── FancyBoard_iPhone.m │ │ ├── FriendBoard_iPhone.h │ │ ├── FriendBoard_iPhone.m │ │ ├── GiftBoard_iPhone.h │ │ ├── GiftBoard_iPhone.m │ │ ├── IndexBoard_iPhone.h │ │ ├── IndexBoard_iPhone.m │ │ ├── ListBoard_iPhone.h │ │ ├── ListBoard_iPhone.m │ │ ├── LoginBoard_iPhone.h │ │ ├── LoginBoard_iPhone.m │ │ ├── MenuBoard_iPhone.h │ │ ├── MenuBoard_iPhone.m │ │ ├── SettingBoard_iPhone.h │ │ └── SettingBoard_iPhone.m └── main.m └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | .DS_Store 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | *.xcworkspace 13 | !default.xcworkspace 14 | xcuserdata 15 | profile 16 | *.moved-aside 17 | DerivedData 18 | .idea/ 19 | .svn -------------------------------------------------------------------------------- /BeeFancy/AppBoard_iPad.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppBoard_iPad.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/22/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | @interface AppBoard_iPad : BeeUIBoard 10 | 11 | AS_SINGLETON( AppBoard_iPad ) 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /BeeFancy/AppBoard_iPad.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppBoard_iPad.m 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/22/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "AppBoard_iPad.h" 10 | 11 | @implementation AppBoard_iPad 12 | 13 | DEF_SINGLETON( AppBoard_iPad ) 14 | 15 | // BeeUIBoard signal goes here 16 | - (void)handleUISignal_BeeUIBoard:(BeeUISignal *)signal 17 | { 18 | [super handleUISignal:signal]; 19 | 20 | if ( [signal is:BeeUIBoard.CREATE_VIEWS] ) 21 | { 22 | // 界面创建 23 | self.view.hintString = @"Hello Bee, iPad!"; 24 | } 25 | else if ( [signal is:BeeUIBoard.DELETE_VIEWS] ) 26 | { 27 | // 界面删除 28 | // SAFE_RELEASE_SUBVIEW( ); 29 | } 30 | else if ( [signal is:BeeUIBoard.LAYOUT_VIEWS] ) 31 | { 32 | // 界面重新布局 33 | } 34 | else if ( [signal is:BeeUIBoard.LOAD_DATAS] ) 35 | { 36 | // 数据加载 37 | } 38 | else if ( [signal is:BeeUIBoard.FREE_DATAS] ) 39 | { 40 | // 数据释放 41 | } 42 | else if ( [signal is:BeeUIBoard.WILL_APPEAR] ) 43 | { 44 | // 将要显示 45 | } 46 | else if ( [signal is:BeeUIBoard.DID_APPEAR] ) 47 | { 48 | // 已经显示 49 | } 50 | else if ( [signal is:BeeUIBoard.WILL_DISAPPEAR] ) 51 | { 52 | // 将要隐藏 53 | } 54 | else if ( [signal is:BeeUIBoard.DID_DISAPPEAR] ) 55 | { 56 | // 已经隐藏 57 | } 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /BeeFancy/AppBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/22/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #define kMenuWidth 240.0f 10 | 11 | @interface AppBoard_iPhone : BeeUIBoard 12 | { 13 | CGRect _mainStackGroupFrame; 14 | BeeUIStack * _menuStack; 15 | BeeUIStackGroup * _mainStackGroup; 16 | BeeUIButton * _mask; 17 | } 18 | 19 | AS_SINGLETON( AppBoard_iPhone ) 20 | 21 | AS_NOTIFICATION( SWITCH_INDEX ) 22 | AS_NOTIFICATION( SWITCH_ACCOUNT ) 23 | AS_NOTIFICATION( SWITCH_BROWSE ) 24 | AS_NOTIFICATION( SWITCH_GIFT ) 25 | AS_NOTIFICATION( SWITCH_ADD ) 26 | AS_NOTIFICATION( SWITCH_NOTIFY ) 27 | AS_NOTIFICATION( SWITCH_CART ) 28 | 29 | AS_NOTIFICATION( SWITCH_FRIEND ) 30 | AS_NOTIFICATION( SWITCH_SETTING ) 31 | AS_NOTIFICATION( SWITCH_LOGOUT ) 32 | 33 | @property (nonatomic, assign) BOOL isMenuShown; 34 | 35 | - (void)showMenu; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /BeeFancy/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/22/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /BeeFancy/BeeFancy-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | pw.github.beefancy 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | id 45 | ${PRODUCT_NAME:rfc1034identifier} 46 | 47 | 48 | -------------------------------------------------------------------------------- /BeeFancy/BeeFancy-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'BeeFancy' target in the 'BeeFancy' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_3_0 8 | #warning "This project uses features only available in iOS SDK 3.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #import "JSONKit.h" 15 | #import "Bee.h" 16 | 17 | #import "AppBoard_iPhone.h" 18 | #import "BaseBoard_iPhone.h" 19 | #endif 20 | 21 | 22 | 23 | #define RANDCOLOR [UIColor colorWithRed:(rand()%255)/255.0f \ 24 | green:(rand()%255)/255.0f \ 25 | blue:(rand()%255)/255.0f \ 26 | alpha:1] 27 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/ASIHTTPRequest+Bee.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIHTTPRequest+Bee.h 3 | // WhatsBug 4 | // 5 | // Created by cui on 13-1-25. 6 | // Copyright (c) 2013年 tencent. All rights reserved. 7 | // 8 | 9 | // add ForceThrottleBandwidth method to latest ASIHTTPRequest 10 | 11 | #import "ASIHTTPRequest.h" 12 | 13 | @interface ASIHTTPRequest (Bee) 14 | // Set to YES to force turn on throttling 15 | + (void)setForceThrottleBandwidth:(BOOL)throttle; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/ASIHTTPRequest+Bee.m: -------------------------------------------------------------------------------- 1 | // 2 | // ASIHTTPRequest+Bee.m 3 | // WhatsBug 4 | // 5 | // Created by cui on 13-1-25. 6 | // Copyright (c) 2013年 tencent. All rights reserved. 7 | // 8 | 9 | #import "ASIHTTPRequest+Bee.h" 10 | #import 11 | 12 | static BOOL forceThrottleBandwith = NO; 13 | static IMP originalIsBandwidthThrottled; 14 | 15 | @implementation ASIHTTPRequest (BeeExt) 16 | + (void)load 17 | { 18 | Class clazz = objc_getMetaClass(class_getName([self class])); 19 | SEL selector = @selector(setForceThrottleBandwidth:); 20 | if ( ! [clazz resolveClassMethod:selector]) { 21 | IMP imp = class_getMethodImplementation(clazz, @selector(_setForceThrottleBandwidth:)); 22 | class_addMethod(clazz, selector, imp, "v:C"); 23 | 24 | SEL bandwidthSelector = @selector(isBandwidthThrottled); 25 | originalIsBandwidthThrottled = class_getMethodImplementation(clazz, bandwidthSelector); 26 | Method method = class_getClassMethod(clazz, bandwidthSelector); 27 | IMP myImp = class_getMethodImplementation(clazz, @selector(_isBandwidthThrottled)); 28 | method_setImplementation( method, myImp ); 29 | } 30 | class_getClassMethod(clazz, @selector(setForceThrottleBandwidth:)); 31 | } 32 | 33 | // Set to YES to force turn on throttling 34 | + (void)_setForceThrottleBandwidth:(BOOL)throttle 35 | { 36 | forceThrottleBandwith = throttle; 37 | } 38 | 39 | + (BOOL)_isBandwidthThrottled 40 | { 41 | if ( forceThrottleBandwith ) 42 | return YES; 43 | if (originalIsBandwidthThrottled) { 44 | return (BOOL)originalIsBandwidthThrottled(self, _cmd); 45 | } 46 | return NO; 47 | } 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/Bee_Debug.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_Debug.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee.h" 35 | 36 | @interface BeeDebugger : NSObject 37 | + (void)show; 38 | @end 39 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/Bee_DebugCrashReporter.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_DebugCrashReporter.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee.h" 35 | 36 | #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 37 | #if defined(__BEE_CRASHLOG__) && __BEE_CRASHLOG__ 38 | 39 | #pragma mark - 40 | 41 | @interface BeeDebugCrashReporter : NSObject 42 | { 43 | BOOL _installed; 44 | NSString * _logPath; 45 | } 46 | 47 | AS_SINGLETON( BeeDebugCrashReporter ); 48 | 49 | @property (nonatomic, assign) BOOL installed; 50 | @property (nonatomic, retain) NSString * logPath; 51 | 52 | - (void)install; 53 | 54 | @end 55 | 56 | #endif // #if defined(__BEE_CRASHLOG__) && __BEE_CRASHLOG__ 57 | #endif // #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 58 | 59 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/Bee_DebugDetailView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_DebugDetailView.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee.h" 35 | 36 | #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 37 | 38 | @interface BeeDebugTextView : UIView 39 | { 40 | BeeUITextView * _content; 41 | BeeUIButton * _close; 42 | } 43 | - (void)setFilePath:(NSString *)path; 44 | @end 45 | 46 | #pragma mark - 47 | 48 | @interface BeeDebugImageView : UIView 49 | { 50 | BeeUIImageView * _imageView; 51 | BeeUIZoomView * _zoomView; 52 | BeeUIButton * _close; 53 | } 54 | - (void)setFilePath:(NSString *)path; 55 | - (void)setURL:(NSString *)url; 56 | @end 57 | 58 | #endif // #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 59 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/Bee_DebugMessageBoard.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_DebugMessageBoard.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee.h" 35 | 36 | #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 37 | 38 | #import "Bee_DebugDetailView.h" 39 | #import "Bee_UITableBoard.h" 40 | 41 | #pragma mark - 42 | 43 | @interface BeeDebugMessageDetailView : BeeDebugTextView 44 | - (void)setMessage:(BeeMessage *)message; 45 | @end 46 | 47 | #pragma mark - 48 | 49 | @interface BeeDebugMessageCell : BeeUIGridCell 50 | { 51 | BeeUILabel * _timeLabel; 52 | BeeUILabel * _nameLabel; 53 | BeeUILabel * _statusLabel; 54 | } 55 | @end 56 | 57 | #pragma mark - 58 | 59 | @interface BeeDebugMessageBoard : BeeUITableBoard 60 | AS_SINGLETON( BeeDebugMessageBoard ) 61 | @end 62 | 63 | #endif // #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 64 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/Bee_DebugPieView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_DebugPieView.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee.h" 35 | 36 | #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 37 | 38 | #pragma mark - 39 | 40 | @interface BeeDebugPieView : UIView 41 | { 42 | NSArray * _datas; 43 | NSArray * _colors; 44 | } 45 | 46 | @property (nonatomic, retain) NSArray * datas; 47 | @property (nonatomic, retain) NSArray * colors; 48 | 49 | @end 50 | 51 | #endif // #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 52 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/Bee_DebugSampleView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_DebugSampleView.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee.h" 35 | 36 | #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 37 | 38 | #pragma mark - 39 | 40 | @interface BeeDebugSampleView : UIView 41 | { 42 | UIView * _blockView; 43 | BeeUILabel * _textLabel; 44 | } 45 | 46 | - (void)setColor:(UIColor *)color text:(NSString *)text; 47 | 48 | @end 49 | 50 | #endif // #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 51 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/Bee_DebugUtility.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_DebugMessageBoard.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee.h" 35 | 36 | #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 37 | 38 | #pragma mark - 39 | 40 | #define K (1024) 41 | #define M (K * 1024) 42 | #define G (M * 1024) 43 | 44 | @interface BeeDebugUtility : NSObject 45 | 46 | + (NSString *)number2String:(int64_t)n; 47 | 48 | @end 49 | 50 | #endif // #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 51 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/Bee_DebugWindow.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_DebugWindow.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee.h" 35 | 36 | #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 37 | 38 | #pragma mark - 39 | 40 | @interface BeeDebugShortcut : UIWindow 41 | AS_SINGLETON( BeeDebugShortcut ) 42 | AS_SIGNAL( TOGGLE_HEATMAP ) 43 | AS_SIGNAL( TOGGLE_DEBUGGER ) 44 | @end 45 | 46 | #pragma mark - 47 | 48 | @interface BeeDebugWindow : UIWindow 49 | AS_SINGLETON( BeeDebugWindow ) 50 | @end 51 | 52 | #pragma mark - 53 | 54 | @interface BeeDebugHeatmap : UIWindow 55 | AS_SINGLETON( BeeDebugHeatmap ) 56 | @end 57 | 58 | #endif // #if defined(__BEE_DEBUGGER__) && __BEE_DEBUGGER__ 59 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/bug@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/BeeFramework/BeeDebugger/bug@2x.png -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/close@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/BeeFramework/BeeDebugger/close@2x.png -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/file@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/BeeFramework/BeeDebugger/file@2x.png -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/folder@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/BeeFramework/BeeDebugger/folder@2x.png -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/heat@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/BeeFramework/BeeDebugger/heat@2x.png -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeDebugger/tap@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/BeeFramework/BeeDebugger/tap@2x.png -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Bee.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2013 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee_Core.h" 35 | #import "Bee_MVC.h" 36 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Bee_Core.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_Core.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee_Foundation.h" 35 | #import "Bee_Network.h" 36 | #import "Bee_Storage.h" 37 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Bee_Foundation.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_Foundation.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | 35 | // Foundation 36 | #import "Bee_Log.h" 37 | #import "Bee_Performance.h" 38 | #import "Bee_Runtime.h" 39 | #import "Bee_Sandbox.h" 40 | #import "Bee_Singleton.h" 41 | #import "Bee_SystemInfo.h" 42 | #import "Bee_Thread.h" 43 | 44 | // Foundation-Extension 45 | #import "NSArray+BeeExtension.h" 46 | #import "NSData+BeeExtension.h" 47 | #import "NSDate+BeeExtension.h" 48 | #import "NSDictionary+BeeExtension.h" 49 | #import "NSNumber+BeeExtension.h" 50 | #import "NSObject+BeeNotification.h" 51 | #import "NSObject+BeeProperty.h" 52 | #import "NSObject+BeeTicker.h" 53 | #import "NSObject+BeeTypeConversion.h" 54 | #import "NSString+BeeExtension.h" 55 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Bee_Foundation.mm: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_Foundation.h 31 | // 32 | 33 | #import "Bee_Foundation.h" 34 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Bee_Log.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_Log.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | 35 | #pragma mark - 36 | 37 | #undef CC 38 | #define CC BeeLog 39 | 40 | #undef VAR_DUMP 41 | #define VAR_DUMP BeeLog 42 | 43 | #undef NSLog 44 | #define NSLog BeeLog 45 | 46 | #undef TODO 47 | #define TODO( desc, ... ) 48 | 49 | #if __cplusplus 50 | extern "C" { 51 | #endif 52 | 53 | void BeeLogToogle( void ); 54 | void BeeLogEnable( BOOL flag ); 55 | BOOL BeeLogIsEnabled( void ); 56 | 57 | void BeeLogIndent( NSUInteger tabs ); 58 | void BeeLogUnindent( NSUInteger tabs ); 59 | 60 | void BeeLog( NSObject * format, ... ); 61 | 62 | #if __cplusplus 63 | }; 64 | #endif 65 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Bee_Sandbox.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UtilitySandbox.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | 35 | @interface BeeSandbox : NSObject 36 | 37 | + (NSString *)appPath; // 程序目录,不能存任何东西 38 | + (NSString *)docPath; // 文档目录,需要ITUNES同步备份的数据存这里 39 | + (NSString *)libPrefPath; // 配置目录,配置文件存这里 40 | + (NSString *)libCachePath; // 缓存目录,系统永远不会删除这里的文件,ITUNES会删除 41 | + (NSString *)tmpPath; // 缓存目录,APP退出后,系统可能会删除这里的内容 42 | 43 | + (BOOL)touch:(NSString *)path; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Bee_Singleton.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_Singleton.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | 35 | #undef AS_SINGLETON 36 | #define AS_SINGLETON( __class ) \ 37 | + (__class *)sharedInstance; 38 | 39 | #undef DEF_SINGLETON 40 | #define DEF_SINGLETON( __class ) \ 41 | + (__class *)sharedInstance \ 42 | { \ 43 | static dispatch_once_t once; \ 44 | static __class * __singleton__; \ 45 | dispatch_once( &once, ^{ __singleton__ = [[__class alloc] init]; } ); \ 46 | return __singleton__; \ 47 | } 48 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Bee_Singleton.mm: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_Singleton.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee_Singleton.h" 35 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Extension/NSData+BeeExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // NSObject+BeeProperty.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | 35 | #pragma mark - 36 | 37 | @interface NSData(BeeExtension) 38 | 39 | @property (nonatomic, readonly) NSString * string; 40 | 41 | @property (nonatomic, readonly) NSData * MD5; 42 | @property (nonatomic, readonly) NSString * MD5String; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Extension/NSDate+BeeExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // NSObject+BeeProperty.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | 35 | @interface NSDate(BeeExtension) 36 | 37 | @property (nonatomic, readonly) NSString * string; 38 | @property (nonatomic, readonly) NSNumber * number; 39 | 40 | - (NSString *)stringWithDateFormat:(NSString *)format; 41 | + (NSUInteger)timeStamp; 42 | + (NSDate *)dateWithString:(NSString *)string; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Extension/NSNumber+BeeExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // NSNumber+BeeExtension.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | 35 | #pragma mark - 36 | 37 | #define __INT( __x ) [NSNumber numberWithInt:(NSInteger)__x] 38 | #define __UINT( __x ) [NSNumber numberWithUnsignedInt:(NSUInteger)__x] 39 | #define __FLOAT( __x ) [NSNumber numberWithFloat:(float)__x] 40 | #define __DOUBLE( __x ) [NSNumber numberWithDouble:(double)__x] 41 | 42 | #pragma mark - 43 | 44 | @interface NSNumber(BeeExtension) 45 | 46 | @property (nonatomic, readonly) NSDate * date; 47 | 48 | - (NSString *)stringWithDateFormat:(NSString *)format; 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Extension/NSObject+BeeJSON.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // NSObject+BeeJSON.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | 35 | #pragma mark - 36 | 37 | @interface NSObject(BeeJSON) 38 | 39 | - (NSData *)JSONData; 40 | - (NSString *)JSONString; 41 | - (NSDictionary *)JSONDictionary; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Extension/NSObject+BeeProperty.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // NSObject+BeeProperty.m 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "NSObject+BeeProperty.h" 35 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Extension/NSObject+BeeTicker.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // NSObject+BeeTicker.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | 35 | #pragma mark - 36 | 37 | @interface NSObject(BeeTicker) 38 | - (void)observeTick; 39 | - (void)unobserveTick; 40 | - (void)handleTick:(NSTimeInterval)elapsed; 41 | @end 42 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Foundation/Extension/NSObject+BeeTypeConversion.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // NSObject+BeeTicker.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | 35 | #pragma mark - 36 | 37 | @interface NSObject(BeeTypeConversion) 38 | 39 | - (BOOL)isNotKindOfClass:(Class)aClass; 40 | 41 | - (NSNumber *)asNSNumber; 42 | - (NSString *)asNSString; 43 | - (NSDate *)asNSDate; 44 | 45 | //- (NSData *)asNSData; 46 | //- (NSArray *)asNSArray; 47 | //- (NSDictionary *)asNSDictionary; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Network/Bee_Network.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_Network.h 31 | // 32 | 33 | #import "Bee_Request.h" 34 | #import "Bee_Request.h" 35 | #import "Bee_RequestQueue.h" 36 | #import "NSObject+BeeRequest.h" 37 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Network/Bee_Network.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_Network.m 31 | // 32 | 33 | #import "Bee_Network.h" 34 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Storage/Bee_Storage.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_Storage.h 31 | // 32 | 33 | #import "Bee_ActiveBase.h" 34 | #import "Bee_ActiveRecord.h" 35 | #import "Bee_Cache.h" 36 | #import "Bee_Database.h" 37 | #import "Bee_Keychain.h" 38 | #import "NSObject+BeeDatabase.h" 39 | #import "NSObject+BeeKeychain.h" 40 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Storage/Bee_Storage.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_Storage.h 31 | // 32 | 33 | #import "Bee_Storage.h" 34 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Storage/Extension/NSObject+BeeDatabase.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // NSObject+BeeDatabase.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee_Database.h" 35 | 36 | #pragma mark - 37 | 38 | @interface NSObject(BeeDatabase) 39 | 40 | @property (nonatomic, readonly) BeeDatabase * DB; 41 | 42 | + (BeeDatabase *)DB; 43 | 44 | - (NSString *)tableName; 45 | + (NSString *)tableName; 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Storage/Extension/NSObject+BeeKeychain.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // NSObject+BeeKeychain.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee_Keychain.h" 35 | 36 | #pragma mark - 37 | 38 | @interface NSObject(BeeKeychain) 39 | 40 | - (NSString *)keychainRead:(NSString *)key; 41 | - (void)keychainWrite:(NSString *)value forKey:(NSString *)key; 42 | - (void)keychainDelete:(NSString *)key; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/Core/Storage/Extension/NSObject+BeeKeychain.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // NSObject+BeeKeychain.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee_Keychain.h" 35 | #import "NSObject+BeeKeychain.h" 36 | 37 | #pragma mark - 38 | 39 | @implementation NSObject(BeeKeychain) 40 | 41 | - (NSString *)keychainRead:(NSString *)key 42 | { 43 | return [BeeKeychain readValueForKey:key andDomain:[[self class] description]]; 44 | } 45 | 46 | - (void)keychainWrite:(NSString *)value forKey:(NSString *)key 47 | { 48 | [BeeKeychain writeValue:value forKey:key andDomain:[[self class] description]]; 49 | } 50 | 51 | - (void)keychainDelete:(NSString *)key 52 | { 53 | [BeeKeychain deleteValueForKey:key andDomain:[[self class] description]]; 54 | } 55 | 56 | @end 57 | 58 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/Bee_MVC.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_MVC.h 31 | // 32 | 33 | #import "Bee_Controller.h" 34 | #import "Bee_Message.h" 35 | #import "Bee_MessageQueue.h" 36 | #import "BeeMessage+HTTP.h" 37 | #import "BeeMessage+JSON.h" 38 | #import "BeeMessage+XML.h" 39 | #import "NSObject+BeeMessage.h" 40 | 41 | #import "Bee_Model.h" 42 | 43 | #import "Bee_View.h" 44 | #import "Bee_ViewController.h" 45 | #import "Bee_ViewLayout.h" 46 | 47 | #import "Bee_UIQuery.h" 48 | #import "Bee_UITemplate.h" 49 | #import "Bee_UILayout.h" 50 | #import "Bee_UILayoutCell.h" 51 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/Controller/Extension/BeeMessage+HTTP.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // BeeMessage+HTTP.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee_Message.h" 35 | #import "Bee_Network.h" 36 | 37 | #pragma mark - 38 | 39 | @interface BeeMessage(HTTP) 40 | 41 | @property (nonatomic, readonly) float uploadProgress; 42 | @property (nonatomic, readonly) float downloadProgress; 43 | 44 | @property (nonatomic, readonly) BOOL requesting; 45 | @property (nonatomic, readonly) BeeRequest * request; 46 | @property (nonatomic, readonly) NSData * response; 47 | @property (nonatomic, readonly) NSString * responseString; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/Controller/Extension/BeeMessage+JSON.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // BeeMessage+JSON.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee_Message.h" 35 | #import "Bee_Network.h" 36 | 37 | #pragma mark - 38 | 39 | typedef BeeRequest * (^BeeMessageJSONRequestBlock)( NSString * url, id json ); 40 | 41 | #pragma mark - 42 | 43 | @interface BeeMessage(JSON) 44 | 45 | @property (nonatomic, readonly) BeeMessageJSONRequestBlock JSON_GET; 46 | @property (nonatomic, readonly) BeeMessageJSONRequestBlock JSON_POST; 47 | 48 | @property (nonatomic, readonly) id responseJSON; 49 | @property (nonatomic, readonly) NSDictionary * responseJSONDictionary; 50 | @property (nonatomic, readonly) NSArray * responseJSONArray; 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/Controller/Extension/BeeMessage+XML.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // BeeMessage+XML.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee_Message.h" 35 | #import "Bee_Network.h" 36 | 37 | #pragma mark - 38 | 39 | typedef BeeRequest * (^BeeMessageXMLRequestBlock)( NSString * url, id xml ); 40 | 41 | #pragma mark - 42 | 43 | @interface BeeMessage(XML) 44 | 45 | @property (nonatomic, readonly) BeeMessageXMLRequestBlock XML_GET; 46 | @property (nonatomic, readonly) BeeMessageXMLRequestBlock XML_POST; 47 | @property (nonatomic, readonly) id responseXML; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/View/Bee_UIActivityIndicatorView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UIActivityIndicatorView.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UISignal.h" 37 | 38 | #pragma mark - 39 | 40 | @interface BeeUIActivityIndicatorView : UIActivityIndicatorView 41 | 42 | AS_SIGNAL( WILL_START ) // 动画将要开始 43 | AS_SIGNAL( DID_START ) // 动画已经开始 44 | AS_SIGNAL( WILL_STOP ) // 动画将要停止 45 | AS_SIGNAL( DID_STOP ) // 动画已经停止 46 | 47 | + (BeeUIActivityIndicatorView *)spawn; 48 | + (BeeUIActivityIndicatorView *)spawn:(NSString *)tagString; 49 | 50 | @end 51 | 52 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 53 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/View/Bee_UILabel.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UILabel.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | 37 | #pragma mark - 38 | 39 | @interface BeeUILabel : UILabel 40 | 41 | + (BeeUILabel *)spawn; 42 | + (BeeUILabel *)spawn:(NSString *)tagString; 43 | 44 | @end 45 | 46 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 47 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/View/Bee_UINavigationBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UINavigationBar.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UISignal.h" 37 | #import "Bee_UIImageView.h" 38 | #import "NSObject+BeeNotification.h" 39 | 40 | #pragma mark - 41 | 42 | @interface BeeUINavigationBar : UINavigationBar 43 | { 44 | UINavigationController * _navigationController; 45 | UIImage * _backgroundImage; 46 | } 47 | 48 | AS_NOTIFICATION( BACKGROUND_CHANGED ) 49 | 50 | @property (nonatomic, assign) UINavigationController * navigationController; 51 | @property (nonatomic, retain) UIImage * backgroundImage; 52 | 53 | + (void)setBackgroundImage:(UIImage *)image; 54 | 55 | @end 56 | 57 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 58 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/View/Bee_UIOrientation.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_Orientation.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UISignal.h" 37 | #import "Bee_Singleton.h" 38 | #import "NSObject+BeeNotification.h" 39 | 40 | #pragma mark - 41 | 42 | @interface BeeUIOrientation : NSObject 43 | { 44 | UIInterfaceOrientation _orientation; 45 | // TODO: 显示方向指示器 46 | } 47 | 48 | AS_SINGLETON( BeeUIOrientation ); 49 | 50 | AS_NOTIFICATION( ANGLE_CHANGED ); // 设备角度改变 51 | AS_NOTIFICATION( DIRECTION_CHANGED ); // 设备方向改变 52 | 53 | @property (nonatomic, assign) UIInterfaceOrientation orientation; 54 | 55 | - (void)startTrack; 56 | - (void)stopTrack; 57 | 58 | @end 59 | 60 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 61 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/View/Bee_UIProgressView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UIProgressView.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UISignal.h" 37 | 38 | #pragma mark - 39 | 40 | @interface BeeUIProgressView : UIProgressView 41 | 42 | + (BeeUIProgressView *)spawn; 43 | + (BeeUIProgressView *)spawn:(NSString *)tagString; 44 | 45 | @end 46 | 47 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 48 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/View/Bee_View.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_View.h 31 | // 32 | 33 | #import "Bee_Precompile.h" 34 | #import "Bee_View.h" 35 | 36 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 37 | 38 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/View/Extension/UIFont+BeeExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIFont+BeeExtension.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | 37 | #pragma mark - 38 | 39 | @interface UIFont(BeeExtension) 40 | + (void)setFontName:(NSString *)name; 41 | + (void)setBoldFontName:(NSString *)name; 42 | + (void)setItalicFontName:(NSString *)name; 43 | @end 44 | 45 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 46 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/View/Extension/UIImage+BeeExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIImage+BeeExtension.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | 37 | #pragma mark - 38 | 39 | #undef __IMAGE 40 | #define __IMAGE( __name ) [UIImage imageNamed:__name] 41 | 42 | #pragma mark - 43 | 44 | @interface UIImage(BeeExtension) 45 | 46 | - (UIImage *)rounded; 47 | - (UIImage *)rounded:(CGRect)rect; 48 | 49 | - (UIImage *)stretched; 50 | - (UIImage *)grayscale; 51 | 52 | - (UIColor *)patternColor; 53 | 54 | @end 55 | 56 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 57 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/View/Extension/UIView+BeeUISignal.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIView+BeeUISignal.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UISignal.h" 37 | 38 | #pragma mark - 39 | 40 | @interface UIView(BeeUISignal) 41 | 42 | + (NSString *)SIGNAL; 43 | + (NSString *)SIGNAL_TYPE; 44 | 45 | - (void)handleUISignal:(BeeUISignal *)signal; 46 | 47 | - (BeeUISignal *)sendUISignal:(NSString *)name; 48 | - (BeeUISignal *)sendUISignal:(NSString *)name withObject:(NSObject *)object; 49 | - (BeeUISignal *)sendUISignal:(NSString *)name withObject:(NSObject *)object from:(id)source; 50 | 51 | @end 52 | 53 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 54 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/View/Extension/UIView+HoldGesture.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIView+HoldGesture.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UISignal.h" 37 | 38 | #pragma mark - 39 | 40 | @interface UIView(HoldGesture) 41 | 42 | @property (nonatomic, assign) BOOL holdable; // same as holdEnabled 43 | @property (nonatomic, assign) BOOL holdEnabled; 44 | @property (nonatomic, readonly) UILongPressGestureRecognizer * holdGesture; 45 | 46 | AS_SIGNAL( HOLD_START ) // 长按开始 47 | AS_SIGNAL( HOLD_STOP ) // 长按结束 48 | AS_SIGNAL( HOLD_CANCELLED ) // 长按取消 49 | 50 | @end 51 | 52 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 53 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/View/Extension/UIView+PanGesture.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIView+PanGesture.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UISignal.h" 37 | 38 | #pragma mark - 39 | 40 | @interface UIView(PanGesture) 41 | 42 | AS_SIGNAL( PAN_START ) // 左右滑动开始 43 | AS_SIGNAL( PAN_STOP ) // 左右滑动结束 44 | AS_SIGNAL( PAN_CHANGED ) // 左右滑动位置变化 45 | AS_SIGNAL( PAN_CANCELLED ) // 左右滑动取消 46 | 47 | @property (nonatomic, assign) BOOL pannable; // same as panEnabled 48 | @property (nonatomic, assign) BOOL panEnabled; 49 | @property (nonatomic, readonly) CGPoint panOffset; 50 | @property (nonatomic, readonly) UIPanGestureRecognizer * panGesture; 51 | 52 | @end 53 | 54 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 55 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewController/Bee_ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_ViewController.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "UIViewController+BeeExtension.h" 36 | 37 | #import "Bee_UIBoard.h" 38 | #import "Bee_UIStack.h" 39 | #import "Bee_UIStackGroup.h" 40 | 41 | #import "UIViewController+BeeExtension.h" 42 | #import "UIViewController+BeeUISignal.h" 43 | #import "UIViewController+UINavigationBar.h" 44 | 45 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 46 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewController/Bee_ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_ViewController.h 31 | // 32 | 33 | #import "Bee_ViewController.h" 34 | 35 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 36 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIView+BeeExtension.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | 37 | #pragma mark - 38 | 39 | @interface UIViewController(BeeExtension) 40 | 41 | @property (nonatomic, retain) NSString * titleString; 42 | @property (nonatomic, retain) UIView * titleView; 43 | 44 | - (UIView *)viewIfLoaded; 45 | - (UIView *)viewWithTagString:(NSString *)value; 46 | - (UIView *)viewAtPath:(NSString *)name; 47 | - (UIView *)subview:(NSString *)name; 48 | 49 | - (CGRect)viewFrame; 50 | - (CGRect)viewBound; 51 | - (CGSize)viewSize; 52 | - (CGFloat)viewWidth; 53 | - (CGFloat)viewHeight; 54 | 55 | @end 56 | 57 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 58 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeUISignal.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIViewController+BeeUISignal.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "NSObject+BeeProperty.h" 37 | 38 | #pragma mark - 39 | 40 | @interface UIViewController(BeeUISignal) 41 | 42 | + (NSString *)SIGNAL; 43 | + (NSString *)SIGNAL_TYPE; 44 | 45 | - (void)handleUISignal:(BeeUISignal *)signal; 46 | 47 | - (BeeUISignal *)sendUISignal:(NSString *)name; 48 | - (BeeUISignal *)sendUISignal:(NSString *)name withObject:(NSObject *)object; 49 | - (BeeUISignal *)sendUISignal:(NSString *)name withObject:(NSObject *)object from:(id)source; 50 | 51 | @end 52 | 53 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 54 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Bee_UILayoutCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UIStyle.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UIGridCell.h" 37 | #import "Bee_UICollection.h" 38 | #import "NSObject+BeeProperty.h" 39 | 40 | #pragma mark - 41 | 42 | @interface BeeUILayoutCell : BeeUIGridCell 43 | + (NSString *)resourceName; 44 | @end 45 | 46 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 47 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Bee_UITemplateAndroid.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UITemplateAndroid.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_Singleton.h" 37 | #import "Bee_UITemplate.h" 38 | #import "NSObject+BeeProperty.h" 39 | 40 | #pragma mark - 41 | 42 | @interface BeeUITemplateAndroid : BeeUITemplate 43 | @end 44 | 45 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 46 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Bee_UITemplateAndroid.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UITemplateAndroid.m 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_Log.h" 37 | #import "Bee_UITemplateAndroid.h" 38 | #import "UIView+BeeExtension.h" 39 | #import "NSArray+BeeExtension.h" 40 | #import "NSString+BeeExtension.h" 41 | 42 | #import "Bee_UITemplate.h" 43 | 44 | #import "TouchXML.h" 45 | 46 | #pragma mark - 47 | 48 | @implementation BeeUITemplateAndroid 49 | 50 | - (BOOL)parse:(NSData *)data 51 | { 52 | // TODO: 53 | 54 | return NO; 55 | } 56 | 57 | @end 58 | 59 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 60 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Bee_UITemplateHTML.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UITemplateHTML.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_Singleton.h" 37 | #import "Bee_UITemplate.h" 38 | #import "NSObject+BeeProperty.h" 39 | 40 | #pragma mark - 41 | 42 | @interface BeeUITemplateHTML : BeeUITemplate 43 | @end 44 | 45 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 46 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Bee_UITemplateHTML.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UITemplateHTML.m 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_Log.h" 37 | #import "Bee_UITemplateHTML.h" 38 | #import "UIView+BeeExtension.h" 39 | #import "NSString+BeeExtension.h" 40 | #import "TouchXML.h" 41 | 42 | #pragma mark - 43 | 44 | @implementation BeeUITemplateHTML 45 | 46 | - (BOOL)parse:(NSData *)data 47 | { 48 | // TODO: 49 | 50 | return NO; 51 | } 52 | 53 | @end 54 | 55 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 56 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Bee_UITemplateJSON.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UITemplateJSON.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_Singleton.h" 37 | #import "Bee_UITemplate.h" 38 | #import "NSObject+BeeProperty.h" 39 | 40 | #pragma mark - 41 | 42 | @interface BeeUITemplateJSON : BeeUITemplate 43 | @end 44 | 45 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 46 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Bee_UITemplateJSON.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UITemplateJSON.m 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_Log.h" 37 | #import "Bee_UITemplateJSON.h" 38 | #import "UIView+BeeExtension.h" 39 | #import "TouchXML.h" 40 | 41 | #pragma mark - 42 | 43 | @implementation BeeUITemplateJSON 44 | 45 | - (BOOL)parse:(NSData *)data 46 | { 47 | // TODO: 48 | 49 | return NO; 50 | } 51 | 52 | @end 53 | 54 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 55 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Bee_UITemplateOmniGraffle.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UITemplateOmniGraffle.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_Singleton.h" 37 | #import "Bee_UITemplate.h" 38 | #import "NSObject+BeeProperty.h" 39 | 40 | #pragma mark - 41 | 42 | @interface BeeUITemplateOmniGraffle : BeeUITemplate 43 | @end 44 | 45 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 46 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Bee_UITemplateOmniGraffle.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UITemplateOmniGraffle.m 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_Log.h" 37 | #import "Bee_UITemplateOmniGraffle.h" 38 | #import "UIView+BeeExtension.h" 39 | #import "TouchXML.h" 40 | 41 | #pragma mark - 42 | 43 | @implementation BeeUITemplateOmniGraffle 44 | 45 | - (BOOL)parse:(NSData *)data 46 | { 47 | // TODO: 48 | 49 | return NO; 50 | } 51 | 52 | @end 53 | 54 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 55 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Bee_UITemplateXML.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UITemplateXML.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_Singleton.h" 37 | #import "Bee_UITemplate.h" 38 | #import "NSObject+BeeProperty.h" 39 | 40 | #pragma mark - 41 | 42 | @interface BeeUITemplateXML : BeeUITemplate 43 | @end 44 | 45 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 46 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Bee_ViewLayout.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_ViewLayout.m 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_ViewLayout.h" 36 | 37 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 38 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/BeeUIQuery+BeeUIStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // BeeUIQuery+BeeUIStyle.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UIQuery.h" 37 | #import "Bee_UIStyle.h" 38 | 39 | #pragma mark - 40 | 41 | @interface BeeUIQuery(BeeUIStyle) 42 | @property (nonatomic, readonly) BeeUIStyle * style; 43 | @end 44 | 45 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 46 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/BeeUIQuery+BeeUIStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // BeeUIQuery+BeeUIStyle.m 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "BeeUIQuery+BeeUIStyle.h" 37 | #include 38 | #include 39 | 40 | #pragma mark - 41 | 42 | @implementation BeeUIQuery(BeeUIStyle) 43 | 44 | @dynamic style; 45 | 46 | - (BeeUIStyle *)style 47 | { 48 | BeeUIStyle * s = [[[BeeUIStyle alloc] init] autorelease]; 49 | [s copyFrom:self]; 50 | return s; 51 | } 52 | 53 | @end 54 | 55 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 56 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/BeeUIStyle+BeeUIQuery.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // BeeUIStyle+BeeUIQuery.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UIQuery.h" 37 | #import "Bee_UIStyle.h" 38 | 39 | #pragma mark - 40 | 41 | @interface BeeUIStyle(BeeUIQuery) 42 | @property (nonatomic, readonly) BeeUIQuery * query; 43 | @end 44 | 45 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 46 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/BeeUIStyle+BeeUIQuery.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // BeeUIStyle+BeeUIQuery.m 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "BeeUIStyle+BeeUIQuery.h" 37 | #include 38 | #include 39 | 40 | #pragma mark - 41 | 42 | @implementation BeeUIStyle(BeeUIQuery) 43 | 44 | @dynamic query; 45 | 46 | - (BeeUIQuery *)query 47 | { 48 | BeeUIQuery * q = [[[BeeUIQuery alloc] init] autorelease]; 49 | [q copyFrom:self]; 50 | return q; 51 | } 52 | 53 | @end 54 | 55 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 56 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UIButton+BeeUIStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIButton+BeeUIStyle.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | 37 | @interface UIButton(BeeUIStyle) 38 | - (void)applyStyleProperties:(NSDictionary *)properties; 39 | @end 40 | 41 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 42 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UIImageView+BeeUIStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIImageView+BeeUIStyle.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | 37 | @interface UIImageView(BeeUIStyle) 38 | - (void)applyStyleProperties:(NSDictionary *)properties; 39 | @end 40 | 41 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 42 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UILabel+BeeUIStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UILabel+BeeUIStyle.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | 37 | @interface UILabel(BeeUIStyle) 38 | - (void)applyStyleProperties:(NSDictionary *)properties; 39 | @end 40 | 41 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 42 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UILabel+BeeUIStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UILabel+BeeUIStyle.m 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "UILabel+BeeUIStyle.h" 37 | #import "UIView+BeeUIStyle.h" 38 | 39 | @implementation UILabel (BeeUIStyle) 40 | 41 | - (void)applyStyleProperties:(NSDictionary *)properties 42 | { 43 | [super applyStyleProperties:properties]; 44 | } 45 | 46 | @end 47 | 48 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 49 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UITextField+BeeUIStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UITextField+BeeUIStyle.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | 37 | @interface UITextField(BeeUIStyle) 38 | - (void)applyStyleProperties:(NSDictionary *)properties; 39 | @end 40 | 41 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 42 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UITextView+BeeUIStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UITextView+BeeUIStyle.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | 37 | @interface UITextView(BeeUIStyle) 38 | - (void)applyStyleProperties:(NSDictionary *)properties; 39 | @end 40 | 41 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 42 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UITextView+BeeUIStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UITextView+BeeUIStyle.m 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "UITextView+BeeUIStyle.h" 36 | #import "UIView+BeeUIStyle.h" 37 | 38 | @implementation UITextView (BeeUIStyle) 39 | 40 | - (void)applyStyleProperties:(NSDictionary *)properties 41 | { 42 | [super applyStyleProperties:properties]; 43 | } 44 | 45 | @end 46 | 47 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 48 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIQuery.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIView+BeeUIQuery.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UIQuery.h" 37 | 38 | #pragma mark - 39 | 40 | @interface UIView(BeeUIQuery) 41 | @property (nonatomic, readonly) BeeUIQuery * query; 42 | @end 43 | 44 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 45 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIQuery.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIView+BeeUIQuery.m 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UIQuery.h" 37 | #import "UIView+BeeUIQuery.h" 38 | #import "UIView+BeeExtension.h" 39 | #include 40 | #include 41 | 42 | #pragma mark - 43 | 44 | @implementation UIView(BeeUIQuery) 45 | 46 | @dynamic query; 47 | 48 | - (BeeUIQuery *)query 49 | { 50 | BeeUIQuery * q = [[[BeeUIQuery alloc] init] autorelease]; 51 | q.object = self; 52 | return q; 53 | } 54 | 55 | @end 56 | 57 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 58 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIView+BeeUIStyle.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UIStyle.h" 37 | #import "UIColor+BeeExtension.h" 38 | #import "UIFont+BeeExtension.h" 39 | 40 | #pragma mark - 41 | 42 | @interface UIView(BeeUIStyle) 43 | 44 | @property (nonatomic, readonly) BeeUIStyle * style; 45 | 46 | - (void)applyStyleProperties:(NSDictionary *)properties; 47 | 48 | @end 49 | 50 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 51 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIQuery.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIViewController+BeeUIQuery.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UIQuery.h" 37 | 38 | #pragma mark - 39 | 40 | @interface UIViewController(BeeUIQuery) 41 | @property (nonatomic, readonly) BeeUIQuery * query; 42 | @end 43 | 44 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 45 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIQuery.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIViewController+BeeUIQuery.m 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UIQuery.h" 37 | #import "UIView+BeeUIQuery.h" 38 | #import "UIViewController+BeeUIQuery.h" 39 | #import "UIView+BeeExtension.h" 40 | #include 41 | #include 42 | 43 | #pragma mark - 44 | 45 | @implementation UIViewController(BeeUIQuery) 46 | 47 | @dynamic query; 48 | 49 | - (BeeUIQuery *)query 50 | { 51 | BeeUIQuery * q = [[[BeeUIQuery alloc] init] autorelease]; 52 | q.object = self; 53 | return q; 54 | } 55 | 56 | @end 57 | 58 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 59 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIViewController+BeeUIStyle.h 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UIQuery.h" 37 | 38 | #pragma mark - 39 | 40 | @interface UIViewController(BeeUIStyle) 41 | @property (nonatomic, readonly) BeeUIStyle * style; 42 | @end 43 | 44 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 45 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // UIViewController+BeeUIStyle.m 31 | // 32 | 33 | #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 34 | 35 | #import "Bee_Precompile.h" 36 | #import "Bee_UIStyle.h" 37 | #import "UIViewController+BeeUIStyle.h" 38 | #import "UIView+BeeExtension.h" 39 | #include 40 | #include 41 | 42 | #pragma mark - 43 | 44 | @implementation UIViewController(BeeUIStyle) 45 | 46 | @dynamic style; 47 | 48 | - (BeeUIStyle *)style 49 | { 50 | BeeUIStyle * s = [[[BeeUIStyle alloc] init] autorelease]; 51 | s.object = self; 52 | return s; 53 | } 54 | 55 | @end 56 | 57 | #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) 58 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/BeeTemplates/CustomBoard/Bee_UIWebBoard.h: -------------------------------------------------------------------------------- 1 | // 2 | // ______ ______ ______ 3 | // /\ __ \ /\ ___\ /\ ___\ 4 | // \ \ __< \ \ __\_ \ \ __\_ 5 | // \ \_____\ \ \_____\ \ \_____\ 6 | // \/_____/ \/_____/ \/_____/ 7 | // 8 | // Copyright (c) 2012 BEE creators 9 | // http://www.whatsbug.com 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included in 19 | // all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 27 | // IN THE SOFTWARE. 28 | // 29 | // 30 | // Bee_UIWebBoard.h 31 | // 32 | 33 | #import "Bee.h" 34 | 35 | #pragma mark - 36 | 37 | @interface BeeUIWebBoard : BeeUIBoard 38 | { 39 | BeeUIWebView * _webView; 40 | } 41 | 42 | @property (nonatomic, retain) BeeUIWebView * webView; 43 | @property (nonatomic, assign) BOOL * useHtmlDocumentTitle; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/ASI/ASIAuthenticationDialog.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIAuthenticationDialog.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 21/08/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #if TARGET_OS_IPHONE 10 | 11 | #import 12 | #import 13 | @class ASIHTTPRequest; 14 | 15 | typedef enum _ASIAuthenticationType { 16 | ASIStandardAuthenticationType = 0, 17 | ASIProxyAuthenticationType = 1 18 | } ASIAuthenticationType; 19 | 20 | @interface ASIAutorotatingViewController : UIViewController 21 | @end 22 | 23 | @interface ASIAuthenticationDialog : ASIAutorotatingViewController { 24 | ASIHTTPRequest *request; 25 | ASIAuthenticationType type; 26 | UITableView *tableView; 27 | UIViewController *presentingController; 28 | BOOL didEnableRotationNotifications; 29 | } 30 | + (void)presentAuthenticationDialogForRequest:(ASIHTTPRequest *)request; 31 | + (void)dismiss; 32 | 33 | @property (retain) ASIHTTPRequest *request; 34 | @property (assign) ASIAuthenticationType type; 35 | @property (assign) BOOL didEnableRotationNotifications; 36 | @property (retain, nonatomic) UIViewController *presentingController; 37 | @end 38 | 39 | #endif // #if TARGET_OS_IPHONE 40 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/ASI/ASIDataCompressor.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIDataCompressor.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 17/08/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | // This is a helper class used by ASIHTTPRequest to handle deflating (compressing) data in memory and on disk 10 | // You may also find it helpful if you need to deflate data and files yourself - see the class methods below 11 | // Most of the zlib stuff is based on the sample code by Mark Adler available at http://zlib.net 12 | 13 | #import 14 | #import 15 | 16 | @interface ASIDataCompressor : NSObject { 17 | BOOL streamReady; 18 | z_stream zStream; 19 | } 20 | 21 | // Convenience constructor will call setupStream for you 22 | + (id)compressor; 23 | 24 | // Compress the passed chunk of data 25 | // Passing YES for shouldFinish will finalize the deflated data - you must pass YES when you are on the last chunk of data 26 | - (NSData *)compressBytes:(Bytef *)bytes length:(NSUInteger)length error:(NSError **)err shouldFinish:(BOOL)shouldFinish; 27 | 28 | // Convenience method - pass it some data, and you'll get deflated data back 29 | + (NSData *)compressData:(NSData*)uncompressedData error:(NSError **)err; 30 | 31 | // Convenience method - pass it a file containing the data to compress in sourcePath, and it will write deflated data to destinationPath 32 | + (BOOL)compressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destinationPath error:(NSError **)err; 33 | 34 | // Sets up zlib to handle the inflating. You only need to call this yourself if you aren't using the convenience constructor 'compressor' 35 | - (NSError *)setupStream; 36 | 37 | // Tells zlib to clean up. You need to call this if you need to cancel deflating part way through 38 | // If deflating finishes or fails, this method will be called automatically 39 | - (NSError *)closeStream; 40 | 41 | @property (assign, readonly) BOOL streamReady; 42 | @end 43 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/ASI/ASIDataDecompressor.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIDataDecompressor.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 17/08/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | // This is a helper class used by ASIHTTPRequest to handle inflating (decompressing) data in memory and on disk 10 | // You may also find it helpful if you need to inflate data and files yourself - see the class methods below 11 | // Most of the zlib stuff is based on the sample code by Mark Adler available at http://zlib.net 12 | 13 | #import 14 | #import 15 | 16 | @interface ASIDataDecompressor : NSObject { 17 | BOOL streamReady; 18 | z_stream zStream; 19 | } 20 | 21 | // Convenience constructor will call setupStream for you 22 | + (id)decompressor; 23 | 24 | // Uncompress the passed chunk of data 25 | - (NSData *)uncompressBytes:(Bytef *)bytes length:(NSUInteger)length error:(NSError **)err; 26 | 27 | // Convenience method - pass it some deflated data, and you'll get inflated data back 28 | + (NSData *)uncompressData:(NSData*)compressedData error:(NSError **)err; 29 | 30 | // Convenience method - pass it a file containing deflated data in sourcePath, and it will write inflated data to destinationPath 31 | + (BOOL)uncompressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destinationPath error:(NSError **)err; 32 | 33 | // Sets up zlib to handle the inflating. You only need to call this yourself if you aren't using the convenience constructor 'decompressor' 34 | - (NSError *)setupStream; 35 | 36 | // Tells zlib to clean up. You need to call this if you need to cancel inflating part way through 37 | // If inflating finishes or fails, this method will be called automatically 38 | - (NSError *)closeStream; 39 | 40 | @property (assign, readonly) BOOL streamReady; 41 | @end 42 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/ASI/ASIDownloadCache.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIDownloadCache.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 01/05/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ASICacheDelegate.h" 11 | 12 | @interface ASIDownloadCache : NSObject { 13 | 14 | // The default cache policy for this cache 15 | // Requests that store data in the cache will use this cache policy if their cache policy is set to ASIUseDefaultCachePolicy 16 | // Defaults to ASIAskServerIfModifiedWhenStaleCachePolicy 17 | ASICachePolicy defaultCachePolicy; 18 | 19 | // The directory in which cached data will be stored 20 | // Defaults to a directory called 'ASIHTTPRequestCache' in the temporary directory 21 | NSString *storagePath; 22 | 23 | // Mediates access to the cache 24 | NSRecursiveLock *accessLock; 25 | 26 | // When YES, the cache will look for cache-control / pragma: no-cache headers, and won't reuse store responses if it finds them 27 | BOOL shouldRespectCacheControlHeaders; 28 | } 29 | 30 | // Returns a static instance of an ASIDownloadCache 31 | // In most circumstances, it will make sense to use this as a global cache, rather than creating your own cache 32 | // To make ASIHTTPRequests use it automatically, use [ASIHTTPRequest setDefaultCache:[ASIDownloadCache sharedCache]]; 33 | + (id)sharedCache; 34 | 35 | // A helper function that determines if the server has requested data should not be cached by looking at the request's response headers 36 | + (BOOL)serverAllowsResponseCachingForRequest:(ASIHTTPRequest *)request; 37 | 38 | @property (assign, nonatomic) ASICachePolicy defaultCachePolicy; 39 | @property (retain, nonatomic) NSString *storagePath; 40 | @property (retain) NSRecursiveLock *accessLock; 41 | @property (assign) BOOL shouldRespectCacheControlHeaders; 42 | @end 43 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/ASI/ASIHTTPRequestConfig.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIHTTPRequestConfig.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 14/12/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | 10 | // ====== 11 | // Debug output configuration options 12 | // ====== 13 | 14 | // When set to 1 ASIHTTPRequests will print information about what a request is doing 15 | #ifndef DEBUG_REQUEST_STATUS 16 | #define DEBUG_REQUEST_STATUS 0 17 | #endif 18 | 19 | // When set to 1, ASIFormDataRequests will print information about the request body to the console 20 | #ifndef DEBUG_FORM_DATA_REQUEST 21 | #define DEBUG_FORM_DATA_REQUEST 0 22 | #endif 23 | 24 | // When set to 1, ASIHTTPRequests will print information about bandwidth throttling to the console 25 | #ifndef DEBUG_THROTTLING 26 | #define DEBUG_THROTTLING 0 27 | #endif 28 | 29 | // When set to 1, ASIHTTPRequests will print information about persistent connections to the console 30 | #ifndef DEBUG_PERSISTENT_CONNECTIONS 31 | #define DEBUG_PERSISTENT_CONNECTIONS 0 32 | #endif 33 | 34 | // When set to 1, ASIHTTPRequests will print information about HTTP authentication (Basic, Digest or NTLM) to the console 35 | #ifndef DEBUG_HTTP_AUTHENTICATION 36 | #define DEBUG_HTTP_AUTHENTICATION 0 37 | #endif 38 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/ASI/ASIHTTPRequestDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIHTTPRequestDelegate.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 13/04/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | @class ASIHTTPRequest; 10 | 11 | @protocol ASIHTTPRequestDelegate 12 | 13 | @optional 14 | 15 | // These are the default delegate methods for request status 16 | // You can use different ones by setting didStartSelector / didFinishSelector / didFailSelector 17 | - (void)requestStarted:(ASIHTTPRequest *)request; 18 | - (void)request:(ASIHTTPRequest *)request didReceiveResponseHeaders:(NSDictionary *)responseHeaders; 19 | - (void)request:(ASIHTTPRequest *)request willRedirectToURL:(NSURL *)newURL; 20 | - (void)requestFinished:(ASIHTTPRequest *)request; 21 | - (void)requestFailed:(ASIHTTPRequest *)request; 22 | - (void)requestRedirected:(ASIHTTPRequest *)request; 23 | 24 | // When a delegate implements this method, it is expected to process all incoming data itself 25 | // This means that responseData / responseString / downloadDestinationPath etc are ignored 26 | // You can have the request call a different method by setting didReceiveDataSelector 27 | - (void)request:(ASIHTTPRequest *)request didReceiveData:(NSData *)data; 28 | 29 | // If a delegate implements one of these, it will be asked to supply credentials when none are available 30 | // The delegate can then either restart the request ([request retryUsingSuppliedCredentials]) once credentials have been set 31 | // or cancel it ([request cancelAuthentication]) 32 | - (void)authenticationNeededForRequest:(ASIHTTPRequest *)request; 33 | - (void)proxyAuthenticationNeededForRequest:(ASIHTTPRequest *)request; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/ASI/ASIInputStream.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIInputStream.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 10/08/2009. 6 | // Copyright 2009 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class ASIHTTPRequest; 12 | 13 | // This is a wrapper for NSInputStream that pretends to be an NSInputStream itself 14 | // Subclassing NSInputStream seems to be tricky, and may involve overriding undocumented methods, so we'll cheat instead. 15 | // It is used by ASIHTTPRequest whenever we have a request body, and handles measuring and throttling the bandwidth used for uploading 16 | 17 | @interface ASIInputStream : NSObject { 18 | NSInputStream *stream; 19 | ASIHTTPRequest *request; 20 | } 21 | + (id)inputStreamWithFileAtPath:(NSString *)path request:(ASIHTTPRequest *)request; 22 | + (id)inputStreamWithData:(NSData *)data request:(ASIHTTPRequest *)request; 23 | 24 | @property (retain, nonatomic) NSInputStream *stream; 25 | @property (assign, nonatomic) ASIHTTPRequest *request; 26 | @end 27 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/ASI/ASIProgressDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASIProgressDelegate.h 3 | // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest 4 | // 5 | // Created by Ben Copsey on 13/04/2010. 6 | // Copyright 2010 All-Seeing Interactive. All rights reserved. 7 | // 8 | 9 | @class ASIHTTPRequest; 10 | 11 | @protocol ASIProgressDelegate 12 | 13 | @optional 14 | 15 | // These methods are used to update UIProgressViews (iPhone OS) or NSProgressIndicators (Mac OS X) 16 | // If you are using a custom progress delegate, you may find it easier to implement didReceiveBytes / didSendBytes instead 17 | #if TARGET_OS_IPHONE 18 | - (void)setProgress:(float)newProgress; 19 | #else 20 | - (void)setDoubleValue:(double)newProgress; 21 | - (void)setMaxValue:(double)newMax; 22 | #endif 23 | 24 | // Called when the request receives some data - bytes is the length of that data 25 | - (void)request:(ASIHTTPRequest *)request didReceiveBytes:(long long)bytes; 26 | 27 | // Called when the request sends some data 28 | // The first 32KB (128KB on older platforms) of data sent is not included in this amount because of limitations with the CFNetwork API 29 | // bytes may be less than zero if a request needs to remove upload progress (probably because the request needs to run again) 30 | - (void)request:(ASIHTTPRequest *)request didSendBytes:(long long)bytes; 31 | 32 | // Called when a request needs to change the length of the content to download 33 | - (void)request:(ASIHTTPRequest *)request incrementDownloadSizeBy:(long long)newLength; 34 | 35 | // Called when a request needs to change the length of the content to upload 36 | // newLength may be less than zero when a request needs to remove the size of the internal buffer from progress tracking 37 | - (void)request:(ASIHTTPRequest *)request incrementUploadSizeBy:(long long)newLength; 38 | @end 39 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/FMDB/FMDatabaseAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // FMDatabaseAdditions.h 3 | // fmkit 4 | // 5 | // Created by August Mueller on 10/30/05. 6 | // Copyright 2005 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | @interface FMDatabase (FMDatabaseAdditions) 11 | 12 | 13 | - (int)intForQuery:(NSString*)objs, ...; 14 | - (long)longForQuery:(NSString*)objs, ...; 15 | - (BOOL)boolForQuery:(NSString*)objs, ...; 16 | - (double)doubleForQuery:(NSString*)objs, ...; 17 | - (NSString*)stringForQuery:(NSString*)objs, ...; 18 | - (NSData*)dataForQuery:(NSString*)objs, ...; 19 | - (NSDate*)dateForQuery:(NSString*)objs, ...; 20 | 21 | // Notice that there's no dataNoCopyForQuery:. 22 | // That would be a bad idea, because we close out the result set, and then what 23 | // happens to the data that we just didn't copy? Who knows, not I. 24 | 25 | 26 | - (BOOL)tableExists:(NSString*)tableName; 27 | - (FMResultSet*)getSchema; 28 | - (FMResultSet*)getTableSchema:(NSString*)tableName; 29 | 30 | - (BOOL)columnExists:(NSString*)columnName inTableWithName:(NSString*)tableName; 31 | 32 | - (BOOL)validateSQL:(NSString*)sql error:(NSError**)error; 33 | 34 | // deprecated - use columnExists:inTableWithName: instead. 35 | - (BOOL)columnExists:(NSString*)tableName columnName:(NSString*)columnName __attribute__ ((deprecated)); 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/FMDB/FMDatabaseQueue.h: -------------------------------------------------------------------------------- 1 | // 2 | // FMDatabasePool.h 3 | // fmdb 4 | // 5 | // Created by August Mueller on 6/22/11. 6 | // Copyright 2011 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "sqlite3.h" 11 | 12 | @class FMDatabase; 13 | 14 | @interface FMDatabaseQueue : NSObject { 15 | NSString *_path; 16 | dispatch_queue_t _queue; 17 | FMDatabase *_db; 18 | } 19 | 20 | @property (atomic, retain) NSString *path; 21 | 22 | + (id)databaseQueueWithPath:(NSString*)aPath; 23 | - (id)initWithPath:(NSString*)aPath; 24 | - (void)close; 25 | 26 | - (void)inDatabase:(void (^)(FMDatabase *db))block; 27 | 28 | - (void)inTransaction:(void (^)(FMDatabase *db, BOOL *rollback))block; 29 | - (void)inDeferredTransaction:(void (^)(FMDatabase *db, BOOL *rollback))block; 30 | 31 | #if SQLITE_VERSION_NUMBER >= 3007000 32 | // NOTE: you can not nest these, since calling it will pull another database out of the pool and you'll get a deadlock. 33 | // If you need to nest, use FMDatabase's startSavePointWithName:error: instead. 34 | - (NSError*)inSavePoint:(void (^)(FMDatabase *db, BOOL *rollback))block; 35 | #endif 36 | 37 | @end 38 | 39 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/TouchXML/CXHTMLDocument.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXHTMLDocument.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLDocument.h" 33 | 34 | 35 | @interface CXHTMLDocument : CXMLDocument { 36 | 37 | } 38 | 39 | - (id)initWithXHTMLData:(NSData *)inData encoding:(NSStringEncoding)encoding options:(NSUInteger)inOptions error:(NSError **)outError; 40 | - (id)initWithXHTMLString:(NSString *)inString options:(NSUInteger)inOptions error:(NSError **)outError; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/TouchXML/CXMLDocument_PrivateExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLDocument_PrivateExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLDocument.h" 33 | 34 | #include 35 | 36 | @interface CXMLDocument (CXMLDocument_PrivateExtensions) 37 | 38 | //- (id)initWithLibXmlParserContext:(xmlParserCtxtPtr)inContext options:(NSUInteger)inOptions error:(NSError **)outError; 39 | 40 | - (NSMutableSet *)nodePool; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/TouchXML/CXMLElement_CreationExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLElement_CreationExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 04/01/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLElement.h" 33 | 34 | @interface CXMLElement (CXMLElement_CreationExtensions) 35 | 36 | - (void)addChild:(CXMLNode *)inNode; 37 | 38 | - (void)addNamespace:(CXMLNode *)inNamespace; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/TouchXML/CXMLElement_ElementTreeExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLElement_ElementTreeExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 11/14/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLElement.h" 33 | 34 | 35 | @interface CXMLElement (CXMLElement_ElementTreeExtensions) 36 | 37 | - (CXMLElement *)subelement:(NSString *)inName; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/TouchXML/CXMLNamespaceNode.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNamespaceNode.h 3 | // TouchXML 4 | // 5 | // Created by Jonathan Wight on 1/1/2000. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import 33 | #import "CXMLNode.h" 34 | #import "CXMLElement.h" 35 | 36 | @interface CXMLNamespaceNode : CXMLNode { 37 | 38 | NSString *_prefix; 39 | NSString *_uri; 40 | CXMLElement *_parent; 41 | } 42 | 43 | - (id) initWithPrefix:(NSString *)prefix URI:(NSString *)uri parentElement:(CXMLElement *)parent; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/TouchXML/CXMLNode_PrivateExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_PrivateExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 03/07/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLNode.h" 33 | 34 | @interface CXMLNode (CXMLNode_PrivateExtensions) 35 | 36 | @property (readonly, nonatomic, assign) xmlNodePtr node; 37 | 38 | - (id)initWithLibXMLNode:(xmlNodePtr)inLibXMLNode freeOnDealloc:(BOOL)infreeOnDealloc; 39 | 40 | + (id)nodeWithLibXMLNode:(xmlNodePtr)inLibXMLNode freeOnDealloc:(BOOL)infreeOnDealloc; 41 | 42 | - (void)invalidate; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/TouchXML/CXMLNode_XPathExtensions.h: -------------------------------------------------------------------------------- 1 | // 2 | // CXMLNode_XPathExtensions.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 04/01/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLNode.h" 33 | 34 | @interface CXMLNode (CXMLNode_XPathExtensions) 35 | 36 | - (NSArray *)nodesForXPath:(NSString *)xpath namespaceMappings:(NSDictionary *)inNamespaceMappings error:(NSError **)error; 37 | - (CXMLNode *)nodeForXPath:(NSString *)xpath error:(NSError **)outError; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /BeeFancy/BeeFramework/External/TouchXML/TouchXML.h: -------------------------------------------------------------------------------- 1 | // 2 | // TouchXML.h 3 | // TouchCode 4 | // 5 | // Created by Jonathan Wight on 07/11/08. 6 | // Copyright 2011 toxicsoftware.com. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, are 9 | // permitted provided that the following conditions are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright notice, this list of 12 | // conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list 15 | // of conditions and the following disclaimer in the documentation and/or other materials 16 | // provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY TOXICSOFTWARE.COM ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 | // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TOXICSOFTWARE.COM OR 21 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 24 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 | // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | // 28 | // The views and conclusions contained in the software and documentation are those of the 29 | // authors and should not be interpreted as representing official policies, either expressed 30 | // or implied, of toxicsoftware.com. 31 | 32 | #import "CXMLDocument.h" 33 | #import "CXMLDocument_CreationExtensions.h" 34 | #import "CXMLElement.h" 35 | #import "CXMLElement_CreationExtensions.h" 36 | #import "CXMLElement_ElementTreeExtensions.h" 37 | #import "CXMLNode.h" 38 | #import "CXMLNode_CreationExtensions.h" 39 | #import "CXMLNode_XPathExtensions.h" 40 | -------------------------------------------------------------------------------- /BeeFancy/Controller/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/Controller/placeholder.txt -------------------------------------------------------------------------------- /BeeFancy/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/Default-568h@2x.png -------------------------------------------------------------------------------- /BeeFancy/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/Default.png -------------------------------------------------------------------------------- /BeeFancy/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/Default@2x.png -------------------------------------------------------------------------------- /BeeFancy/Model/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/Model/placeholder.txt -------------------------------------------------------------------------------- /BeeFancy/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /BeeFancy/iPad/Resource/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/iPad/Resource/placeholder.txt -------------------------------------------------------------------------------- /BeeFancy/iPad/View/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/iPad/View/placeholder.txt -------------------------------------------------------------------------------- /BeeFancy/iPhone/Resource/alertBox@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BeeFramework/BeeFancy/5bce6c144885d39225f4c3f1883b46c6128571dd/BeeFancy/iPhone/Resource/alertBox@2x.png -------------------------------------------------------------------------------- /BeeFancy/iPhone/Resource/skeleton.json: -------------------------------------------------------------------------------- 1 | { 2 | "modules": [login, signin, index, ] 3 | } -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/AccountBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // AccountBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/23/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "Bee_UIBoard.h" 10 | 11 | @interface Tabs_iPhone : BeeUIGridCell 12 | { 13 | BeeUIButton * _tab1; 14 | BeeUIButton * _tab2; 15 | BeeUIButton * _tab3; 16 | BeeUIButton * _tab4; 17 | } 18 | 19 | AS_SIGNAL( TAB ) 20 | 21 | @end 22 | 23 | @interface TabViewsCellOne_iPhone : BeeUIGridCell 24 | { 25 | BeeUIImageView * _photo; 26 | BeeUILabel * _label1; 27 | BeeUILabel * _label2; 28 | } 29 | 30 | @end 31 | 32 | @interface TabViewsCellTwo_iPhone : BeeUIGridCell 33 | { 34 | BeeUIScrollView * _horiScroll; 35 | BeeUILabel * _label1; 36 | BeeUILabel * _label2; 37 | NSMutableArray * _data; 38 | } 39 | 40 | @end 41 | 42 | @interface TabViewsCellThree_iPhone : BeeUIGridCell 43 | { 44 | BeeUIImageView * _photo; 45 | BeeUILabel * _label1; 46 | BeeUILabel * _label2; 47 | BeeUIButton * _button; 48 | } 49 | 50 | @end 51 | 52 | @interface TabViewsCellFour_iPhone : TabViewsCellThree_iPhone 53 | { 54 | } 55 | 56 | @end 57 | 58 | typedef NS_ENUM(NSInteger, TabViewStyle) { 59 | TabViewStyleOne = 0, 60 | TabViewStyleTwo = 1, 61 | TabViewStyleThree = 2, 62 | TabViewStyleFour = 3 63 | }; 64 | 65 | @interface TabViews_iPhone : BeeUIGridCell 66 | { 67 | BeeUIScrollView * _scrollView; 68 | NSMutableArray * _data; 69 | } 70 | 71 | @property (nonatomic, assign) TabViewStyle tabViewStyle; 72 | 73 | - (void)reload; 74 | 75 | @end 76 | 77 | @interface AccountBoard_iPhone : BeeUIBoard 78 | { 79 | BeeUIImageView * _photo; 80 | BeeUILabel * _label1; 81 | BeeUILabel * _label2; 82 | Tabs_iPhone * _tabs; 83 | TabViews_iPhone * _tabViews; 84 | } 85 | 86 | @end 87 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/AddBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // AddBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | @interface AddBoard_iPhone : BeeUIBoard 10 | { 11 | BeeUILabel * _label; 12 | BeeUIButton * _button1; 13 | BeeUIButton * _button2; 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/AddBoard_iPhone.m: -------------------------------------------------------------------------------- 1 | // 2 | // AddBoard_iPhone.m 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "AddBoard_iPhone.h" 10 | 11 | #pragma mark - 12 | 13 | @implementation AddBoard_iPhone 14 | 15 | - (void)load 16 | { 17 | [super load]; 18 | } 19 | 20 | - (void)unload 21 | { 22 | [super unload]; 23 | } 24 | 25 | #pragma mark [B] UISignal 26 | 27 | - (void)handleUISignal_BeeUIBoard:(BeeUISignal *)signal 28 | { 29 | [super handleUISignal:signal]; 30 | 31 | if ( [signal is:BeeUIBoard.CREATE_VIEWS] ) 32 | { 33 | self.view.backgroundColor = [UIColor whiteColor]; 34 | 35 | [self showNavigationBarAnimated:NO]; 36 | [self showBarButton:UINavigationBar.BARBUTTON_LEFT title:@"菜单"]; 37 | 38 | _label = [[BeeUILabel alloc] init]; 39 | _label.hintString = @"添加新物品到Fancy"; 40 | [self.view addSubview:_label]; 41 | 42 | _button1 = [[BeeUIButton alloc] init]; 43 | _button1.hintString = @"拍照"; 44 | [self.view addSubview:_button1]; 45 | 46 | _button2 = [[BeeUIButton alloc] init]; 47 | _button2.hintString = @"选择现有照片"; 48 | [self.view addSubview:_button2]; 49 | } 50 | else if ( [signal is:BeeUIBoard.DELETE_VIEWS] ) 51 | { 52 | SAFE_RELEASE_SUBVIEW( _label ); 53 | SAFE_RELEASE_SUBVIEW( _button1 ); 54 | SAFE_RELEASE_SUBVIEW( _button2 ); 55 | } 56 | else if ( [signal is:BeeUIBoard.LAYOUT_VIEWS] ) 57 | { 58 | int padding = 10; 59 | 60 | _label.frame = CGRectMake( padding, padding, self.view.width - padding * 2, 50 ); 61 | _button1.frame = CGRectMake( _label.left, _label.bottom + padding, _label.width, 50 ); 62 | _button2.frame = CGRectMake( _label.left, _button1.bottom + padding, _label.width, 50 ); 63 | } 64 | } 65 | 66 | - (void)handleUISignal_UINavigationBar:(BeeUISignal *)signal 67 | { 68 | if ( [signal is:UINavigationBar.BARBUTTON_LEFT_TOUCHED] ) 69 | { 70 | [[AppBoard_iPhone sharedInstance] showMenu]; 71 | } 72 | } 73 | 74 | @end 75 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/BaseBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // BaseBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "Bee_UIBoard.h" 10 | 11 | @interface BaseBoard_iPhone : BeeUIBoard 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/BaseBoard_iPhone.m: -------------------------------------------------------------------------------- 1 | // 2 | // BaseBoard_iPhone.m 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "BaseBoard_iPhone.h" 10 | 11 | #pragma mark - 12 | 13 | @implementation BaseBoard_iPhone 14 | 15 | #pragma mark [B] UISignal 16 | 17 | - (void)handleUISignal:(BeeUISignal *)signal 18 | { 19 | [super handleUISignal:signal]; 20 | } 21 | 22 | - (void)handleUISignal_BeeUIBoard:(BeeUISignal *)signal 23 | { 24 | [super handleUISignal:signal]; 25 | 26 | if ( [signal is:BeeUIBoard.CREATE_VIEWS] ) 27 | { 28 | self.view.backgroundColor = [UIColor whiteColor]; 29 | [self showNavigationBarAnimated:NO]; 30 | [self showBarButton:UINavigationBar.BARBUTTON_LEFT title:@"菜单"]; 31 | self.view.hintString = @"购物车是空的哦~"; 32 | // 界面创建 33 | } 34 | else if ( [signal is:BeeUIBoard.DELETE_VIEWS] ) 35 | { 36 | // 界面删除 37 | // SAFE_RELEASE_SUBVIEW( ); 38 | } 39 | } 40 | 41 | - (void)handleUISignal_UINavigationBar:(BeeUISignal *)signal 42 | { 43 | if ( [signal is:UINavigationBar.BARBUTTON_LEFT_TOUCHED] ) 44 | { 45 | [[AppBoard_iPhone sharedInstance] showMenu]; 46 | } 47 | } 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/BrowseBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // BrowseBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "CategoryBoard_iPhone.h" 10 | 11 | @interface BrowseBoard_iPhone : CategoryBoard_iPhone 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/BrowseBoard_iPhone.m: -------------------------------------------------------------------------------- 1 | // 2 | // BrowseBoard_iPhone.m 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "BrowseBoard_iPhone.h" 10 | 11 | #pragma mark - 12 | 13 | @implementation BrowseBoard_iPhone 14 | 15 | - (void)load 16 | { 17 | [super load]; 18 | 19 | [self.menuTitles addObjectsFromArray:@[@"分类"]]; 20 | [self.menus addObject:@[ @"全部", @"男士", @"女士", @"孩童", @"宠物", @"主页", @"其他" ]]; 21 | } 22 | 23 | - (void)unload 24 | { 25 | [super unload]; 26 | } 27 | 28 | #pragma mark [B] UISignal 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/CartBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // CartBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/25/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "Bee_UITableBoard.h" 10 | 11 | @interface CartDetail_Part1_iPhone : BeeUIGridCell 12 | { 13 | BeeUILabel * _title; 14 | BeeUIImageView * _photo; 15 | BeeUILabel * _label1; 16 | BeeUILabel * _label2; 17 | BeeUILabel * _label3; 18 | BeeUILabel * _label4; 19 | BeeUILabel * _label5; 20 | BeeUIButton * _button; 21 | } 22 | 23 | @end 24 | 25 | @interface CartDetail_Part2_Cell_iPhone : BeeUIGridCell 26 | { 27 | BeeUILabel * _label; 28 | BeeUIButton * _button; 29 | } 30 | 31 | @end 32 | 33 | @interface CartDetail_Part2_iPhone : BeeUIGridCell 34 | { 35 | BeeUILabel * _title; 36 | BeeUILabel * _subTitle; 37 | CartDetail_Part2_Cell_iPhone * _cell1; 38 | CartDetail_Part2_Cell_iPhone * _cell2; 39 | } 40 | 41 | @end 42 | 43 | @interface CartDetail_Part3_Cell_iPhone : BeeUIGridCell 44 | { 45 | BeeUILabel * _title; 46 | BeeUILabel * _content; 47 | } 48 | 49 | @end 50 | 51 | @interface CartDetail_Part3_iPhone : BeeUIGridCell 52 | { 53 | BeeUILabel * _title; 54 | BeeUILabel * _subTitle; 55 | CartDetail_Part3_Cell_iPhone * cell1; 56 | CartDetail_Part3_Cell_iPhone * cell2; 57 | CartDetail_Part3_Cell_iPhone * cell3; 58 | BeeUILabel * _label1; 59 | BeeUILabel * _label2; 60 | BeeUIButton * _button; 61 | } 62 | 63 | @end 64 | 65 | @interface CartBoard_iPhone : BeeUITableBoard 66 | { 67 | 68 | } 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/CartBoard_iPhone.m: -------------------------------------------------------------------------------- 1 | // 2 | // CartBoard_iPhone.m 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/25/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "CartBoard_iPhone.h" 10 | 11 | #pragma mark - 12 | 13 | @implementation CartBoard_iPhone 14 | 15 | - (void)load 16 | { 17 | [super load]; 18 | 19 | // TODO 20 | } 21 | 22 | - (void)unload 23 | { 24 | // TODO 25 | 26 | [super unload]; 27 | } 28 | 29 | #pragma mark [B] UISignal 30 | 31 | // Other signal goes here 32 | - (void)handleUISignal:(BeeUISignal *)signal 33 | { 34 | [super handleUISignal:signal]; 35 | } 36 | 37 | // BeeUIBoard signal goes here 38 | - (void)handleUISignal_BeeUIBoard:(BeeUISignal *)signal 39 | { 40 | [super handleUISignal:signal]; 41 | 42 | if ( [signal is:BeeUIBoard.CREATE_VIEWS] ) 43 | { 44 | self.view.backgroundColor = [UIColor whiteColor]; 45 | 46 | self.view.hintString = @"购物车是空的哦~"; 47 | 48 | [self showNavigationBarAnimated:NO]; 49 | [self showBarButton:UINavigationBar.BARBUTTON_LEFT title:@"菜单"]; 50 | 51 | // 界面创建 52 | } 53 | else if ( [signal is:BeeUIBoard.DELETE_VIEWS] ) 54 | { 55 | // 界面删除 56 | // SAFE_RELEASE_SUBVIEW( ); 57 | } 58 | } 59 | 60 | - (void)handleUISignal_UINavigationBar:(BeeUISignal *)signal 61 | { 62 | if ( [signal is:UINavigationBar.BARBUTTON_LEFT_TOUCHED] ) 63 | { 64 | [[AppBoard_iPhone sharedInstance] showMenu]; 65 | } 66 | } 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/CategoryBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // CategoryBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "Bee_UITableBoard.h" 10 | 11 | @interface CategoryBoard_iPhone : BeeUITableBoard 12 | 13 | @property (nonatomic, retain) NSMutableArray * menuTitles; 14 | @property (nonatomic, retain) NSMutableArray * menus; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/CommentBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // CommentBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/23/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "Bee_UIBoard.h" 10 | 11 | @interface HScrollCell_iPhone : BeeUIGridCell 12 | { 13 | BeeUIImageView * _avatar; 14 | } 15 | 16 | @end 17 | 18 | @interface VScrollCell_iPhone : BeeUIGridCell 19 | { 20 | BeeUIImageView * _avatar; 21 | BeeUILabel * _label1; 22 | BeeUILabel * _label2; 23 | } 24 | 25 | @end 26 | 27 | @interface CommentInput_iPhone : BeeUIGridCell 28 | { 29 | BeeUITextView * _textView; 30 | BeeUIButton * _send; 31 | } 32 | 33 | @end 34 | 35 | @interface CommentBoard_iPhone : BeeUIBoard 36 | { 37 | BeeUILabel * _label; 38 | BeeUIScrollView * _horiScroll; 39 | BeeUIScrollView * _vertScroll; 40 | CommentInput_iPhone * _input; 41 | NSMutableArray * _data; 42 | NSMutableArray * _data2; 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/FancyBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // FancyBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/25/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "Bee_UIBoard.h" 10 | 11 | @interface FancyButtons_iPhone : BeeUIGridCell 12 | { 13 | BeeUIButton * _btn1; 14 | BeeUIButton * _btn2; 15 | BeeUIButton * _btn3; 16 | } 17 | 18 | AS_SIGNAL( LIKE ) 19 | AS_SIGNAL( ADD ) 20 | AS_SIGNAL( COMMENT ) 21 | 22 | @end 23 | 24 | @interface FancyBoard_iPhone : BeeUIBoard 25 | { 26 | BeeUIZoomView * _zoomImage; 27 | BeeUIButton * _titleView; 28 | BeeUILabel * _label1; 29 | BeeUILabel * _label2; 30 | FancyButtons_iPhone * _buttons; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/FriendBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // FriendBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "Bee_UITableBoard.h" 10 | 11 | @interface FriendBoard_iPhone : BeeUITableBoard 12 | { 13 | NSMutableArray * _titles; 14 | NSMutableArray * _data; 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/GiftBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // GiftBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "CategoryBoard_iPhone.h" 10 | 11 | @interface GiftBoard_iPhone : CategoryBoard_iPhone 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/GiftBoard_iPhone.m: -------------------------------------------------------------------------------- 1 | // 2 | // GiftBoard_iPhone.m 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "GiftBoard_iPhone.h" 10 | 11 | #pragma mark - 12 | 13 | @implementation GiftBoard_iPhone 14 | 15 | - (void)load 16 | { 17 | [super load]; 18 | 19 | [self.menuTitles addObjectsFromArray:@[ @"礼物", @"店铺" ]]; 20 | [self.menus addObject:@[ @"欢喜盒子", @"推荐", @"礼品卡", @"礼品引导" ]]; 21 | [self.menus addObject:@[ @"折扣", @"品牌 & 折扣" ]]; 22 | } 23 | 24 | - (void)unload 25 | { 26 | [super unload]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/IndexBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // IndexBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/22/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "Bee_UIBoard.h" 10 | 11 | @interface Fancy_iPhone : BeeUIGridCell 12 | { 13 | BeeUIImageView * _photo; 14 | BeeUILabel * _title; 15 | BeeUILabel * _label1; 16 | BeeUILabel * _label2; 17 | BeeUIButton * _btn1; 18 | BeeUIButton * _btn2; 19 | BeeUIButton * _btn3; 20 | } 21 | 22 | AS_SIGNAL( TOUCHED ) 23 | 24 | @end 25 | 26 | @interface IndexBoard_iPhone : BeeUIBoard 27 | { 28 | BeeUIScrollView * _scrollView; 29 | NSMutableArray * _data; 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/ListBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // ListBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "CategoryBoard_iPhone.h" 10 | 11 | @interface ListBoard_iPhone : CategoryBoard_iPhone 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/ListBoard_iPhone.m: -------------------------------------------------------------------------------- 1 | // 2 | // ListBoard_iPhone.m 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "ListBoard_iPhone.h" 10 | 11 | #pragma mark - 12 | 13 | @implementation ListBoard_iPhone 14 | 15 | - (void)load 16 | { 17 | [super load]; 18 | } 19 | 20 | - (void)unload 21 | { 22 | [super unload]; 23 | } 24 | 25 | #pragma mark [B] UISignal 26 | 27 | // Other signal goes here 28 | - (void)handleUISignal:(BeeUISignal *)signal 29 | { 30 | [super handleUISignal:signal]; 31 | } 32 | 33 | // BeeUIBoard signal goes here 34 | - (void)handleUISignal_BeeUIBoard:(BeeUISignal *)signal 35 | { 36 | [super handleUISignal:signal]; 37 | 38 | if ( [signal is:BeeUIBoard.CREATE_VIEWS] ) 39 | { 40 | [self showNavigationBarAnimated:NO]; 41 | 42 | self.view.hintString = @"分类列表"; 43 | self.view.backgroundColor = [UIColor whiteColor]; 44 | 45 | [self showBarButton:UINavigationBar.BARBUTTON_LEFT title:@"保存"]; 46 | [self showBarButton:UINavigationBar.BARBUTTON_RIGHT title:@"取消"]; 47 | } 48 | else if ( [signal is:BeeUIBoard.DELETE_VIEWS] ) 49 | { 50 | } 51 | else if ( [signal is:BeeUIBoard.LAYOUT_VIEWS] ) 52 | { 53 | } 54 | } 55 | 56 | 57 | - (void)handleUISignal_UINavigationBar:(BeeUISignal *)signal 58 | { 59 | if ( [signal is:UINavigationBar.BARBUTTON_LEFT_TOUCHED] ) 60 | { 61 | [self presentSuccessTips:@"保存成功"]; 62 | [self.stack popBoardAnimated:YES]; 63 | } 64 | else if ( [signal is:UINavigationBar.BARBUTTON_RIGHT_TOUCHED] ) 65 | { 66 | [self.stack popBoardAnimated:YES]; 67 | } 68 | } 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/LoginBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // LoginBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/22/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | // App : Fancy 10 | // View : Login 11 | // Index : 001 12 | 13 | #import "Bee_UIBoard.h" 14 | 15 | @interface TextInputCell_iPhone : BeeUIGridCell 16 | 17 | @property (nonatomic, retain) BeeUILabel * label; 18 | @property (nonatomic, retain) BeeUITextField * input; 19 | 20 | @end 21 | 22 | @interface TextInputPanel_iPhone : BeeUIGridCell 23 | 24 | @property (nonatomic, retain) BeeUIButton * leftBtn; 25 | @property (nonatomic, retain) BeeUIButton * rightBtn; 26 | @property (nonatomic, retain) BeeUILabel * title; 27 | @property (nonatomic, retain) BeeUIGridCell * inputPanel; 28 | 29 | AS_SIGNAL( LEFT ) 30 | AS_SIGNAL( RIGHT ) 31 | 32 | @end 33 | 34 | @interface SignInCell_iPhone : TextInputPanel_iPhone 35 | { 36 | TextInputCell_iPhone * _input1, * _input2, * _input3, * _input4; 37 | BeeUIButton * _photo; 38 | } 39 | 40 | @end 41 | 42 | @interface LoginCell_iPhone : TextInputPanel_iPhone 43 | { 44 | TextInputCell_iPhone * _input1, * _input2; 45 | BeeUILabel * _description; 46 | } 47 | 48 | @end 49 | 50 | @interface LoginBoard_iPhone : BeeUIBoard 51 | { 52 | BeeUIGridCell * _logo; 53 | BeeUIButton * _sns1; 54 | BeeUIButton * _sns2; 55 | BeeUIButton * _sns3; 56 | BeeUIButton * _getStarted; 57 | BeeUIButton * _signIn; 58 | 59 | SignInCell_iPhone * _signCell; 60 | LoginCell_iPhone * _loginCell; 61 | } 62 | 63 | AS_SIGNAL( SNS1 ) 64 | AS_SIGNAL( SNS2 ) 65 | AS_SIGNAL( SNS3 ) 66 | AS_SIGNAL( GETSTARTED ) 67 | AS_SIGNAL( SIGNIN ) 68 | 69 | @end 70 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/MenuBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // MenuBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/25/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "Bee_UITableBoard.h" 10 | 11 | @interface UserCell_iPhone : BeeUIGridCell 12 | { 13 | BeeUIImageView * _avatar; 14 | BeeUILabel * _label1; 15 | BeeUILabel * _label2; 16 | } 17 | 18 | @end 19 | 20 | @interface MenuBoard_iPhone : BeeUITableBoard 21 | { 22 | NSMutableArray * _menuTitles; 23 | NSMutableArray * _menus; 24 | NSMutableArray * _notifications; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/SettingBoard_iPhone.h: -------------------------------------------------------------------------------- 1 | // 2 | // SettingBoard_iPhone.h 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "Bee_UIBoard.h" 10 | 11 | @interface SettingBoard_iPhone : BeeUIBoard 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /BeeFancy/iPhone/View/SettingBoard_iPhone.m: -------------------------------------------------------------------------------- 1 | // 2 | // SettingBoard_iPhone.m 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/26/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import "SettingBoard_iPhone.h" 10 | 11 | #pragma mark - 12 | 13 | @implementation SettingBoard_iPhone 14 | 15 | - (void)load 16 | { 17 | [super load]; 18 | 19 | // TODO 20 | } 21 | 22 | - (void)unload 23 | { 24 | // TODO 25 | 26 | [super unload]; 27 | } 28 | 29 | #pragma mark [B] UISignal 30 | 31 | // Other signal goes here 32 | - (void)handleUISignal:(BeeUISignal *)signal 33 | { 34 | [super handleUISignal:signal]; 35 | } 36 | 37 | // BeeUIBoard signal goes here 38 | - (void)handleUISignal_BeeUIBoard:(BeeUISignal *)signal 39 | { 40 | [super handleUISignal:signal]; 41 | 42 | if ( [signal is:BeeUIBoard.CREATE_VIEWS] ) 43 | { 44 | self.view.backgroundColor = [UIColor whiteColor]; 45 | self.view.hintString = @"Setting Todo"; 46 | [self showNavigationBarAnimated:NO]; 47 | [self showBarButton:UINavigationBar.BARBUTTON_LEFT title:@"菜单"]; 48 | } 49 | } 50 | 51 | - (void)handleUISignal_UINavigationBar:(BeeUISignal *)signal 52 | { 53 | if ( [signal is:UINavigationBar.BARBUTTON_LEFT_TOUCHED] ) 54 | { 55 | [[AppBoard_iPhone sharedInstance] showMenu]; 56 | } 57 | } 58 | 59 | @end 60 | -------------------------------------------------------------------------------- /BeeFancy/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // BeeFancy 4 | // 5 | // Created by QFish on 3/22/13. 6 | // Copyright (c) 2013 QFish. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "AppDelegate.h" 12 | 13 | int main(int argc, char *argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | --------------------------------------------------------------------------------