├── .gitignore ├── Building an Upload Plugin.md ├── COPYING ├── Example Plugins └── Ember Uploader │ ├── .gitignore │ ├── Ember.xcodeproj │ └── project.pbxproj │ ├── Ember_Prefix.pch │ ├── English.lproj │ ├── CredentialsConfigurationView.xib │ ├── InfoPlist.strings │ ├── Localizable.strings │ ├── MetadataView.xib │ └── PresetConfigurationView.xib │ ├── Info.plist │ ├── RMEmberContext.h │ ├── RMEmberContext.m │ ├── RMUploaderEmber.h │ ├── RMUploaderEmber.m │ ├── RMUploaderEmberConstants.h │ ├── RMUploaderEmberConstants.m │ ├── RMUploaderEmberCredentials.h │ ├── RMUploaderEmberCredentials.m │ ├── RMUploaderEmberCredentialsConfigurationViewController.h │ ├── RMUploaderEmberCredentialsConfigurationViewController.m │ ├── RMUploaderEmberFunctions.h │ ├── RMUploaderEmberFunctions.m │ ├── RMUploaderEmberMetadataViewController.h │ ├── RMUploaderEmberMetadataViewController.m │ ├── RMUploaderEmberPreset.h │ ├── RMUploaderEmberPreset.m │ ├── RMUploaderEmberPresetConfigurationViewController.h │ ├── RMUploaderEmberPresetConfigurationViewController.m │ ├── RMUploaderEmberTask.h │ ├── RMUploaderEmberTask.m │ ├── add.png │ ├── ember.tif │ ├── ember_closed_1.png │ ├── ember_open_1.png │ ├── ember_open_2.png │ ├── error.png │ ├── rating_active.png │ ├── rating_inactive.png │ └── version.plist ├── Project Templates ├── .DS_Store └── RMUploadKit Plugin │ ├── English.lproj │ ├── InfoPlist.strings │ └── PresetConfigurationView.xib │ ├── Info.plist │ ├── ___PROJECTNAME___.xcodeproj │ ├── TemplateInfo.plist │ └── project.pbxproj │ ├── ___PROJECTNAME___Constants.h │ ├── ___PROJECTNAME___Constants.m │ ├── ___PROJECTNAME___Plugin.h │ ├── ___PROJECTNAME___Plugin.m │ ├── ___PROJECTNAME___Preset.h │ ├── ___PROJECTNAME___Preset.m │ ├── ___PROJECTNAME___UploadTask.h │ ├── ___PROJECTNAME___UploadTask.m │ ├── ___PROJECTNAME____Prefix.pch │ └── version.plist ├── README.md ├── RMUploadKit.sdk ├── Library │ └── Frameworks │ │ └── RMUploadKit.framework │ │ ├── Headers │ │ ├── RMUploadKit │ │ ├── Resources │ │ └── Versions │ │ ├── A │ │ ├── Headers │ │ │ ├── AFPropertyListProtocol.h │ │ │ ├── NSURLRequest+RMUploadAdditions.h │ │ │ ├── RMUploadAvailability.h │ │ │ ├── RMUploadConstants.h │ │ │ ├── RMUploadCredentials.h │ │ │ ├── RMUploadErrors.h │ │ │ ├── RMUploadKit.h │ │ │ ├── RMUploadMetadataConfigurationViewController.h │ │ │ ├── RMUploadMultipartDocuments.h │ │ │ ├── RMUploadPlugin.h │ │ │ ├── RMUploadPreset.h │ │ │ ├── RMUploadPresetConfigurationViewController.h │ │ │ ├── RMUploadTask.h │ │ │ └── RMUploadURLConnection.h │ │ ├── RMUploadKit │ │ └── Resources │ │ │ ├── DestinationConfigurationView.nib │ │ │ ├── English.lproj │ │ │ ├── InfoPlist.strings │ │ │ └── Localizable.strings │ │ │ ├── Info.plist │ │ │ ├── _DestinationConfigurationErrorView.nib │ │ │ ├── _MetadataConfigurationView.nib │ │ │ ├── button_doneblue_center.png │ │ │ ├── button_doneblue_center_down.png │ │ │ ├── button_doneblue_left.png │ │ │ ├── button_doneblue_left_down.png │ │ │ ├── button_doneblue_right.png │ │ │ ├── button_doneblue_right_down.png │ │ │ ├── button_white_center.png │ │ │ ├── button_white_center_down.png │ │ │ ├── button_white_left_rounded.png │ │ │ ├── button_white_left_rounded_down.png │ │ │ ├── button_white_right_rounded.png │ │ │ ├── button_white_right_rounded_down.png │ │ │ ├── caution.tiff │ │ │ ├── destination_configuration_background_bottom.png │ │ │ ├── destination_configuration_background_middle.png │ │ │ ├── destination_configuration_background_separator.png │ │ │ ├── destination_configuration_background_top.png │ │ │ ├── help.png │ │ │ ├── help_down.png │ │ │ ├── peter_pointer.png │ │ │ ├── popupbutton_white_center.png │ │ │ ├── popupbutton_white_left.png │ │ │ ├── popupbutton_white_right.png │ │ │ └── stamp_frame.tif │ │ └── Current └── SDKSettings.plist ├── RMUploadSDK Installer.pmdoc ├── 01rmuploadkit-contents.xml ├── 01rmuploadkit.xml ├── 02rmuploadkit-contents.xml ├── 02rmuploadkit.xml └── index.xml ├── doxyclean ├── lib │ ├── css │ │ ├── common.css │ │ ├── print.css │ │ └── screen.css │ ├── doxyclean.py │ ├── index2html.xslt │ ├── object.xslt │ └── object2html.xslt └── output │ ├── html │ ├── Classes │ │ ├── NSURLRequest(RMUploadAdditions).html │ │ ├── RMUploadCredentials.html │ │ ├── RMUploadMetadataConfigurationViewController.html │ │ ├── RMUploadMultipartFormDocument.html │ │ ├── RMUploadPlugin.html │ │ ├── RMUploadPreset(RMUploadCourierIntegration).html │ │ ├── RMUploadPreset(RMUploadMetadata).html │ │ ├── RMUploadPreset.html │ │ ├── RMUploadPresetConfigurationViewController(Actions).html │ │ ├── RMUploadPresetConfigurationViewController.html │ │ ├── RMUploadTask.html │ │ └── RMUploadURLConnection.html │ ├── Guides │ │ └── Building an Upload Plugin.pdf │ ├── Protocols │ │ ├── AFPropertyList.html │ │ └── RMUploadURLConnectionDelegate.html │ ├── css │ │ ├── common.css │ │ ├── print.css │ │ └── screen.css │ └── index.html │ └── xml │ ├── Classes │ ├── NSURLRequest(RMUploadAdditions).xml │ ├── RMUploadCredentials.xml │ ├── RMUploadMetadataConfigurationViewController.xml │ ├── RMUploadMultipartDocument.xml │ ├── RMUploadMultipartFormDocument.xml │ ├── RMUploadMultipartRelatedDocument.xml │ ├── RMUploadPlugin.xml │ ├── RMUploadPreset(RMUploadCourierIntegration).xml │ ├── RMUploadPreset(RMUploadMetadata).xml │ ├── RMUploadPreset.xml │ ├── RMUploadPresetConfigurationViewController(Actions).xml │ ├── RMUploadPresetConfigurationViewController.xml │ ├── RMUploadTask.xml │ ├── RMUploadURLConnection(RMUploadDeprecated).xml │ └── RMUploadURLConnection.xml │ ├── Protocols │ ├── AFPropertyList.xml │ └── RMUploadURLConnectionDelegate.xml │ └── index.xml └── doxygen ├── lib └── doxygen.conf └── output └── xml ├── _a_f_property_list_protocol_8h.xml ├── _n_s_u_r_l_request_09_r_m_upload_additions_8h.xml ├── _r_m_upload_availability_8h.xml ├── _r_m_upload_constants_8h.xml ├── _r_m_upload_credentials_8h.xml ├── _r_m_upload_errors_8h.xml ├── _r_m_upload_kit_8h.xml ├── _r_m_upload_metadata_configuration_view_controller_8h.xml ├── _r_m_upload_multipart_documents_8h.xml ├── _r_m_upload_multipart_form_document_8h.xml ├── _r_m_upload_plugin_8h.xml ├── _r_m_upload_preset_8h.xml ├── _r_m_upload_preset_configuration_view_controller_8h.xml ├── _r_m_upload_task_8h.xml ├── _r_m_upload_u_r_l_connection_8h.xml ├── combine.xslt ├── compound.xsd ├── dir_060fffbae4770fd4e46870cbd3b0dc95.xml ├── dir_121488fcea61c669c5036071cddb8f43.xml ├── dir_218a9439857e10c3ba98098bc68866a4.xml ├── dir_3ed2fa5009a7230f191e5dd9eb6bf827.xml ├── dir_88b01fc6e02cfb49cfa4c3910da2ec12.xml ├── dir_91a19cf6edfac0404c705485afee9609.xml ├── dir_a223300e878de5c8569b4662371bffe8.xml ├── dir_cf52511228cad7dc708c4103d9bb57e6.xml ├── dir_cf67b188d77b2f5b9ae83c7091a6563f.xml ├── dir_e276bba908cf343e1f4f5c175308a7d6.xml ├── dir_ed54f06b6481195d07963b2cbf730f78.xml ├── dir_f9fe4eab118d21b9c6b2d8264e8be3d8.xml ├── index.xml ├── index.xsd ├── interface_n_s_array_07_a_f_property_list_08.xml ├── interface_n_s_dictionary_07_a_f_property_list_08.xml ├── interface_n_s_u_r_l_07_a_f_property_list_08.xml ├── interface_n_s_u_r_l_request_07_r_m_upload_additions_08.xml ├── interface_r_m_upload_credentials.xml ├── interface_r_m_upload_metadata_configuration_view_controller.xml ├── interface_r_m_upload_multipart_document.xml ├── interface_r_m_upload_multipart_form_document.xml ├── interface_r_m_upload_multipart_related_document.xml ├── interface_r_m_upload_plugin.xml ├── interface_r_m_upload_preset.xml ├── interface_r_m_upload_preset_07_r_m_upload_courier_integration_08.xml ├── interface_r_m_upload_preset_07_r_m_upload_metadata_08.xml ├── interface_r_m_upload_preset_configuration_view_controller.xml ├── interface_r_m_upload_preset_configuration_view_controller_07_actions_08.xml ├── interface_r_m_upload_task.xml ├── interface_r_m_upload_u_r_l_connection.xml ├── interface_r_m_upload_u_r_l_connection_07_r_m_upload_deprecated_08.xml ├── protocol_a_f_property_list-p.xml └── protocol_r_m_upload_u_r_l_connection_delegate-p.xml /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | build 3 | Project Templates/RMUploadKit Plugin/___PROJECTNAME___.xcodeproj/*.mode1v3 4 | Project Templates/RMUploadKit Plugin/___PROJECTNAME___.xcodeproj/*.pbxuser 5 | Example Plugins/Ember Uploader/Ember.xcodeproj/*.mode1v3 6 | Example Plugins/Ember Uploader/Ember.xcodeproj/*.pbxuser 7 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Realmac Software 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | Ember.xcodeproj/xcuserdata 3 | Ember.xcodeproj/Danny.* 4 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/Ember_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Ember' target in the 'Ember' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | 8 | #import "RMUploadKit/RMUploadKit.h" 9 | #endif 10 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/English.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | localizable.strings 3 | Ember 4 | 5 | Created by Daniel Greg on 27/07/2009. 6 | Copyright 2009 Realmac Software. All rights reserved. 7 | */ 8 | 9 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleName 10 | ${PRODUCT_NAME} 11 | CFBundleIconFile 12 | ember.tif 13 | CFBundleIdentifier 14 | com.realmacsoftware.uploader.ember 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleVersion 20 | 1 21 | CFBundleShortVersionString 22 | 1.0 23 | NSPrincipalClass 24 | RMUploaderEmber 25 | RMUploadPluginDestinationTypes 26 | RMUploaderEmberPreset 27 | RMUploadPluginBundleMinimumFrameworkBundleVersion 28 | 1 29 | DSTrayBundleImages 30 | 31 | ember 32 | 33 | localisedName 34 | Ember 35 | closedImage1 36 | ember_closed_1.png 37 | openImage1 38 | ember_open_1.png 39 | openImage2 40 | ember_open_2.png 41 | 42 | 43 | DSTrayBundlePlugInVersion 44 | 1 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMEmberContext.h: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import 28 | 29 | extern NSString *const RMEmberErrorDomain; 30 | 31 | /*! 32 | @brief 33 | 34 | */ 35 | @interface RMEmberContext : NSObject 36 | 37 | - (id)initWithServiceURL:(NSURL *)serviceURL APIKey:(NSString *)APIKey; 38 | - (void)authenticateWithToken:(NSString *)authenticationToken; 39 | 40 | + (NSXMLDocument *)parseResponse:(NSData *)response error:(NSError **)errorRef; 41 | 42 | - (NSURLRequest *)requestLoginWithUsername:(NSString *)username password:(NSString *)password; 43 | 44 | - (NSURLRequest *)requestUpload:(NSURL *)imageLocation withName:(NSString *)name description:(NSString *)description tags:(NSArray *)tags date:(NSDate *)date originalURL:(NSURL *)originalURL rating:(NSNumber *)rating imageType:(NSString *)imageType privacy:(NSString *)privacy; 45 | 46 | - (NSURLRequest *)requestPrivacy; 47 | - (NSURLRequest *)requestImageTypes; 48 | 49 | - (NSURLRequest *)requestCollectionsForUsername:(NSString *)userIdentifier; 50 | - (NSURLRequest *)requestCreateCollectionWithName:(NSString *)name; 51 | - (NSURLRequest *)requestAddImage:(NSString *)imageIdentifier toCollection:(NSString *)collectionIdentifier; 52 | 53 | - (NSURLRequest *)requestCategories; 54 | - (NSURLRequest *)requestSubmitImage:(NSString *)imageIdentifier toCategory:(NSString *)categoryIdentifier; 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmber.h: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import "RMUploadKit/RMUploadKit.h" 28 | 29 | @class RMEmberContext; 30 | @class RMUploaderEmberCredentials; 31 | 32 | @interface RMUploaderEmber : RMUploadPlugin 33 | 34 | + (RMEmberContext *)newContextWithCredentials:(RMUploaderEmberCredentials *)credentials; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmber.m: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import "RMUploaderEmber.h" 28 | 29 | #import "RMEmberContext.h" 30 | #import "RMUploaderEmberCredentials.h" 31 | #import "RMUploaderEmberPreset.h" 32 | 33 | #import "RMUploaderEmberCredentialsConfigurationViewController.h" 34 | #import "RMUploaderEmberPresetConfigurationViewController.h" 35 | #import "RMUploaderEmberMetadataViewController.h" 36 | 37 | #import "RMUploaderEmberConstants.h" 38 | 39 | @implementation RMUploaderEmber 40 | 41 | + (RMEmberContext *)newContextWithCredentials:(RMUploaderEmberCredentials *)credentials 42 | { 43 | NSString *serviceHost = nil; 44 | #if DEBUG 45 | serviceHost = @"http://development.api.emberapp.com"; 46 | #else 47 | serviceHost = @"https://api.emberapp.com"; 48 | #endif 49 | 50 | NSString *APIKey = YOUR_EMBER_API_KEY; 51 | 52 | RMEmberContext *context = [[RMEmberContext alloc] initWithServiceURL:[NSURL URLWithString:serviceHost] APIKey:APIKey]; 53 | [context authenticateWithToken:[credentials token]]; 54 | return context; 55 | } 56 | 57 | - (RMUploadPresetConfigurationViewController *)credentialsConfigurationViewControllerForCredentials:(RMUploadCredentials *)credentials 58 | { 59 | RMUploaderEmberCredentialsConfigurationViewController *viewController = [[RMUploaderEmberCredentialsConfigurationViewController alloc] initWithNibName:@"CredentialsConfigurationView" bundle:[NSBundle bundleWithIdentifier:RMUploaderEmberBundleIdentifier]]; 60 | return viewController; 61 | } 62 | 63 | - (RMUploadPresetConfigurationViewController *)presetConfigurationViewControllerForPreset:(RMUploadPreset *)preset 64 | { 65 | RMUploaderEmberPresetConfigurationViewController *viewController = [[RMUploaderEmberPresetConfigurationViewController alloc] initWithNibName:@"PresetConfigurationView" bundle:[NSBundle bundleWithIdentifier:RMUploaderEmberBundleIdentifier]]; 66 | return viewController; 67 | } 68 | 69 | - (RMUploadMetadataConfigurationViewController *)additionalMetadataViewControllerForPresetClass:(Class)presetClass 70 | { 71 | RMUploaderEmberMetadataViewController *viewController = [[RMUploaderEmberMetadataViewController alloc] initWithNibName:@"MetadataView" bundle:[NSBundle bundleWithIdentifier:RMUploaderEmberBundleIdentifier]]; 72 | return viewController; 73 | } 74 | 75 | @end 76 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberConstants.h: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import 28 | 29 | extern NSString *const RMUploaderEmberBundleIdentifier; 30 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberConstants.m: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import "RMUploaderEmberConstants.h" 28 | 29 | NSString *const RMUploaderEmberBundleIdentifier = @"com.realmacsoftware.uploader.ember"; 30 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberCredentials.h: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import "RMUploadKit/RMUploadKit.h" 28 | 29 | @interface RMUploaderEmberCredentials : RMUploadCredentials 30 | 31 | @property (copy) NSString *userName; 32 | @property (copy) NSString *fullName; 33 | @property (copy) NSString *token; 34 | @property (copy) NSURL *avatarLocation; 35 | @property (retain) NSDate *dateRegistered; 36 | @property (assign) NSUInteger totalImagesUploaded; 37 | @property (retain) NSArray *collections; 38 | @property (assign) NSUInteger followerCount; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberCredentials.m: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import "RMUploaderEmberCredentials.h" 28 | 29 | NSString *const RMEmberCredentialsUserNameKey = @"userName"; 30 | NSString *const RMEmberCredentialsFullNameKey = @"fullName"; 31 | NSString *const RMEmberCredentialsTokenKey = @"token"; 32 | NSString *const RMEmberCredentialsAvatarLocationKey = @"avatarLocation"; 33 | NSString *const RMEmberCredentialsDateRegistered = @"dateRegistered"; 34 | NSString *const RMEmberCredentialsTotalImageUploaded = @"totalImagesUploaded"; 35 | NSString *const RMEmberCredentialsCollectionsKey = @"collections"; 36 | NSString *const RMEmberCredentialsFollowerCountKey = @"followerCount"; 37 | 38 | @implementation RMUploaderEmberCredentials 39 | 40 | @synthesize userName, fullName, token, avatarLocation, dateRegistered, totalImagesUploaded, collections, followerCount; 41 | 42 | + (NSSet *)_propertyKeys { 43 | return [NSSet setWithObjects: 44 | RMEmberCredentialsUserNameKey, 45 | RMEmberCredentialsFullNameKey, 46 | RMEmberCredentialsTokenKey, 47 | RMEmberCredentialsAvatarLocationKey, 48 | RMEmberCredentialsDateRegistered, 49 | RMEmberCredentialsTotalImageUploaded, 50 | RMEmberCredentialsFollowerCountKey, 51 | nil]; 52 | } 53 | 54 | + (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key { 55 | NSMutableSet *keyPaths = [[super keyPathsForValuesAffectingValueForKey:key] mutableCopy]; 56 | 57 | if ([key isEqualToString:RMUploadCredentialsDirtyKey]) { 58 | [keyPaths unionSet:[NSSet setWithObjects: 59 | RMEmberCredentialsUserNameKey, 60 | RMEmberCredentialsFullNameKey, 61 | RMEmberCredentialsTokenKey, 62 | RMEmberCredentialsAvatarLocationKey, 63 | RMEmberCredentialsDateRegistered, 64 | RMEmberCredentialsTotalImageUploaded, 65 | RMEmberCredentialsFollowerCountKey, 66 | nil]]; 67 | } 68 | 69 | if ([key isEqualToString:RMUploadCredentialsUserIdentifierKey]) { 70 | [keyPaths addObject:RMEmberCredentialsUserNameKey]; 71 | } 72 | 73 | return keyPaths; 74 | } 75 | 76 | - (id)initWithPropertyListRepresentation:(id)values 77 | { 78 | id superRepresentation = [values objectForKey:@"super"]; 79 | self = [super initWithPropertyListRepresentation:superRepresentation]; 80 | if (!self) 81 | return nil; 82 | 83 | self.followerCount = [[values valueForKey:RMEmberCredentialsFollowerCountKey] unsignedIntegerValue]; 84 | self.totalImagesUploaded = [[values valueForKey:RMEmberCredentialsTotalImageUploaded] unsignedIntegerValue]; 85 | 86 | if ([values valueForKey:RMEmberCredentialsUserNameKey] != nil) 87 | self.userName = [values valueForKey:RMEmberCredentialsUserNameKey]; 88 | 89 | if ([values valueForKey:RMEmberCredentialsFullNameKey] != nil) 90 | self.fullName = [values valueForKey:RMEmberCredentialsFullNameKey]; 91 | 92 | if ([values valueForKey:RMEmberCredentialsTokenKey] != nil) 93 | self.token = [values valueForKey:RMEmberCredentialsTokenKey]; 94 | 95 | if ([values valueForKey:RMEmberCredentialsAvatarLocationKey] != nil) 96 | self.avatarLocation = [NSURL URLWithString:[values valueForKey:RMEmberCredentialsAvatarLocationKey]]; 97 | 98 | if ([values valueForKey:RMEmberCredentialsDateRegistered] != nil) 99 | self.dateRegistered = [values valueForKey:RMEmberCredentialsDateRegistered]; 100 | 101 | return self; 102 | } 103 | 104 | - (id)propertyListRepresentation 105 | { 106 | id superRepresentation = [super propertyListRepresentation]; 107 | 108 | NSMutableDictionary *plist = [NSMutableDictionary dictionary]; 109 | [plist setObject:superRepresentation forKey:@"super"]; 110 | 111 | [plist setObject:[NSNumber numberWithUnsignedInteger:self.followerCount] forKey:RMEmberCredentialsFollowerCountKey]; 112 | [plist setObject:[NSNumber numberWithUnsignedInteger:self.totalImagesUploaded] forKey:RMEmberCredentialsTotalImageUploaded]; 113 | 114 | if (self.userName != nil) 115 | [plist setObject:self.userName forKey:RMEmberCredentialsUserNameKey]; 116 | 117 | if (self.fullName != nil) 118 | [plist setObject:self.fullName forKey:RMEmberCredentialsFullNameKey]; 119 | 120 | if (self.token != nil) 121 | [plist setObject:self.token forKey:RMEmberCredentialsTokenKey]; 122 | 123 | if (self.avatarLocation != nil) 124 | [plist setObject:[self.avatarLocation absoluteString] forKey:RMEmberCredentialsAvatarLocationKey]; 125 | 126 | if (self.dateRegistered != nil) 127 | [plist setObject:self.dateRegistered forKey:RMEmberCredentialsDateRegistered]; 128 | 129 | return plist; 130 | } 131 | 132 | - (NSString *)userIdentifier { 133 | return self.userName; 134 | } 135 | 136 | @end 137 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberCredentialsConfigurationViewController.h: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import "RMUploadKit/RMUploadKit.h" 28 | 29 | @class RMUploaderEmberCredentials; 30 | 31 | @interface RMUploaderEmberCredentialsConfigurationViewController : RMUploadPresetConfigurationViewController 32 | 33 | @property (retain) RMUploaderEmberCredentials *representedObject; 34 | 35 | @property (readonly) IBOutlet NSTextField *loginUsernameField; 36 | @property (readonly) IBOutlet NSTextField *loginPasswordField; 37 | 38 | @property (readonly, assign, getter=isAuthenticating) BOOL authenticating; 39 | 40 | - (IBAction)nextStage:(id)sender; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberFunctions.h: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import 28 | 29 | NS_INLINE BOOL RMUploaderEmberArrayContainsIndex(NSArray *array, NSUInteger index) { 30 | return NSLocationInRange(index, NSMakeRange(0, [array count])); 31 | } 32 | 33 | NS_INLINE id RMUploaderEmberSafeObjectAtIndex(NSArray *array, NSUInteger index) { 34 | return (RMUploaderEmberArrayContainsIndex(array, index) ? [array objectAtIndex:index] : nil); 35 | } 36 | 37 | extern NSString *RMUploaderEmberStringValueForXPath(NSXMLNode *node, NSString *XPath, NSError **errorRef); 38 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberFunctions.m: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import "RMUploaderEmberFunctions.h" 28 | 29 | NSString *RMUploaderEmberStringValueForXPath(NSXMLNode *node, NSString *XPath, NSError **errorRef) { 30 | NSArray *returnedNodes = [node nodesForXPath:XPath error:errorRef]; 31 | if ([returnedNodes count] < 1) return nil; 32 | return [[returnedNodes objectAtIndex:0] stringValue]; 33 | } 34 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberMetadataViewController.h: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import 28 | 29 | #import "RMUploadKit/RMUploadKit.h" 30 | 31 | @interface RMUploaderEmberMetadataViewController : RMUploadMetadataConfigurationViewController 32 | 33 | @property (readonly) IBOutlet NSPopUpButton *imageTypesPopupButton; 34 | - (IBAction)imageTypeSelectionChanged:(id)sender; 35 | @property (readonly) IBOutlet NSButton *imageTypesRefreshButton; 36 | - (IBAction)refreshImageTypes:(id)sender; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberMetadataViewController.m: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import "RMUploaderEmberMetadataViewController.h" 28 | 29 | #import "RMUploadKit/RMUploadKit.h" 30 | 31 | #import "RMEmberContext.h" 32 | #import "RMUploaderEmber.h" 33 | #import "RMUploaderEmberTask.h" 34 | 35 | #import "RMUploaderEmberConstants.h" 36 | #import "RMUploaderEmberFunctions.h" 37 | 38 | @interface RMUploaderEmberMetadataViewController () 39 | @property (assign) RMUploadURLConnection *imageTypesConnection; 40 | @end 41 | 42 | @implementation RMUploaderEmberMetadataViewController 43 | 44 | @synthesize imageTypesPopupButton, imageTypesRefreshButton; 45 | @synthesize imageTypesConnection=_imageTypesConnection; 46 | 47 | - (void)loadView { 48 | [super loadView]; 49 | 50 | [self refreshImageTypes:nil]; 51 | } 52 | 53 | - (IBAction)imageTypeSelectionChanged:(id)sender { 54 | [[self representedObject] setValue:[[[self imageTypesPopupButton] selectedItem] representedObject] forKey:RMUploaderEmberMetadataImageTypeKey]; 55 | } 56 | 57 | - (IBAction)refreshImageTypes:(id)sender { 58 | [[self imageTypesRefreshButton] setHidden:YES]; 59 | 60 | RMEmberContext *context = [RMUploaderEmber newContextWithCredentials:nil]; 61 | self.imageTypesConnection = [RMUploadURLConnection connectionWithRequest:[context requestImageTypes] delegate:self]; 62 | } 63 | 64 | - (void)connection:(RMUploadURLConnection *)connection didFailWithError:(NSError *)error { 65 | NSString *errorLoadingButtonTitle = NSLocalizedStringFromTableInBundle(@"Error Loading…", nil, [NSBundle bundleWithIdentifier:RMUploaderEmberBundleIdentifier], @"RMEmberPresetConfigurationViewController error loading title"); 66 | [[self imageTypesPopupButton] setTitle:errorLoadingButtonTitle]; 67 | 68 | [[self imageTypesRefreshButton] setHidden:NO]; 69 | } 70 | 71 | - (void)connection:(RMUploadURLConnection *)connection didCompleteWithData:(NSData *)data { 72 | NSError *parseError = nil; 73 | NSXMLDocument *responseDocument = [RMEmberContext parseResponse:data error:&parseError]; 74 | 75 | if (responseDocument == nil) { 76 | [self connection:connection didFailWithError:parseError]; 77 | return; 78 | } 79 | 80 | 81 | [[self imageTypesPopupButton] removeAllItems]; 82 | 83 | NSMenu *imageTypesMenu = [[NSMenu alloc] init]; 84 | 85 | NSArray *imageTypeNodes = [responseDocument nodesForXPath:@"//image_type" error:NULL]; 86 | for (NSXMLNode *currentImageTypeNode in imageTypeNodes) { 87 | NSString *title = RMUploaderEmberStringValueForXPath(currentImageTypeNode, @"name", NULL); 88 | NSString *representedObject = RMUploaderEmberStringValueForXPath(currentImageTypeNode, @"id", NULL); 89 | if (title == nil || representedObject == nil) continue; 90 | 91 | NSMenuItem *currentImageTypeItem = [[NSMenuItem alloc] initWithTitle:title action:NULL keyEquivalent:@""]; 92 | [currentImageTypeItem setRepresentedObject:representedObject]; 93 | [imageTypesMenu addItem:currentImageTypeItem]; 94 | } 95 | 96 | if ([[imageTypesMenu itemArray] count] == 0) { 97 | [self connection:connection didFailWithError:nil]; 98 | return; 99 | } 100 | 101 | [[self imageTypesPopupButton] setMenu:imageTypesMenu]; 102 | 103 | NSUInteger imageTypeValueIndex = NSNotFound; 104 | NSString *imageType = [[self representedObject] valueForKey:RMUploaderEmberMetadataImageTypeKey]; 105 | if (imageType != nil) { 106 | NSArray *imageTypes = [[self imageTypesPopupButton] valueForKeyPath:@"itemArray.representedObject"]; 107 | imageTypeValueIndex = [imageTypes indexOfObject:imageType]; 108 | } 109 | if (imageTypeValueIndex == NSNotFound) { 110 | NSArray *defaultImageTypes = [responseDocument nodesForXPath:@"//image_type[default]" error:NULL]; 111 | if ([defaultImageTypes count] == 1) { 112 | imageTypeValueIndex = [imageTypeNodes indexOfObject:RMUploaderEmberSafeObjectAtIndex(defaultImageTypes, 0)]; 113 | } 114 | } 115 | if (imageTypeValueIndex == NSNotFound) { 116 | imageTypeValueIndex = 0; 117 | } 118 | [[self imageTypesPopupButton] selectItemAtIndex:imageTypeValueIndex]; 119 | [self imageTypeSelectionChanged:nil]; 120 | 121 | [[self imageTypesPopupButton] setEnabled:YES]; 122 | } 123 | 124 | @end 125 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberPreset.h: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import "RMUploadKit/RMUploadKit.h" 28 | 29 | #import "RMUploaderEmberCredentials.h" 30 | 31 | @interface RMUploaderEmberPreset : RMUploadPreset 32 | 33 | @property (readonly, assign) RMUploaderEmberCredentials *authentication; 34 | 35 | @property (copy) NSString *privacyLevel; 36 | @property (retain) NSString *collectionSlug; 37 | @property (retain) NSString *categorySlug; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberPreset.m: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import "RMUploaderEmberPreset.h" 28 | 29 | #import "RMUploaderEmberCredentials.h" 30 | #import "RMUploaderEmberTask.h" 31 | 32 | static NSString *const RMEmberPresetPrivacyKey = @"privacyLevel"; 33 | static NSString *const RMEmberPresetCollectionKey = @"collectionSlug"; 34 | static NSString *const RMEmberPresetCategoryKey = @"categorySlug"; 35 | 36 | @implementation RMUploaderEmberPreset 37 | 38 | @dynamic authentication; 39 | 40 | @synthesize privacyLevel=_privacyLevel, collectionSlug=_collectionSlug, categorySlug=_categorySlug; 41 | 42 | + (Class)credentialsClass { 43 | return [RMUploaderEmberCredentials class]; 44 | } 45 | 46 | + (NSString *)localisedName { 47 | return @"Ember"; 48 | } 49 | 50 | + (Class)uploadTaskClass { 51 | return [RMUploaderEmberTask class]; 52 | } 53 | 54 | + (NSURL *)serviceURL { 55 | return [[NSURL alloc] initWithScheme:@"http" host:@"api.emberapp.com" path:@"/"]; 56 | } 57 | 58 | + (NSString *)autoselectTrayImageKey { 59 | return @"ember"; 60 | } 61 | 62 | + (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key { 63 | NSMutableSet *keyPaths = [[super keyPathsForValuesAffectingValueForKey:key] mutableCopy]; 64 | 65 | if ([key isEqualToString:RMUploadPresetDirtyKey]) { 66 | [keyPaths addObjectsFromArray:[NSArray arrayWithObjects: 67 | RMEmberPresetPrivacyKey, 68 | RMEmberPresetCollectionKey, 69 | RMEmberPresetCategoryKey, 70 | nil] 71 | ]; 72 | } 73 | 74 | return keyPaths; 75 | } 76 | 77 | - (id)initWithPropertyListRepresentation:(id)values { 78 | id superRepresentation = [values objectForKey:@"super"]; 79 | 80 | self = [super initWithPropertyListRepresentation:superRepresentation]; 81 | if (self == nil) return nil; 82 | 83 | self.privacyLevel = [[values valueForKey:RMEmberPresetPrivacyKey] copy]; 84 | 85 | if ([values valueForKey:RMEmberPresetCollectionKey] != nil) 86 | self.collectionSlug = [[values valueForKey:RMEmberPresetCollectionKey] copy]; 87 | 88 | if ([values valueForKey:RMEmberPresetCategoryKey] != nil) 89 | self.categorySlug = [[values valueForKey:RMEmberPresetCategoryKey] copy]; 90 | 91 | return self; 92 | } 93 | 94 | - (id)propertyListRepresentation { 95 | id superRepresentation = [super propertyListRepresentation]; 96 | 97 | NSMutableDictionary *plist = [NSMutableDictionary dictionary]; 98 | [plist setObject:superRepresentation forKey:@"super"]; 99 | [plist setValue:self.privacyLevel forKey:RMEmberPresetPrivacyKey]; 100 | 101 | [plist setValue:self.collectionSlug forKey:RMEmberPresetCollectionKey]; 102 | 103 | [plist setValue:self.categorySlug forKey:RMEmberPresetCategoryKey]; 104 | 105 | return plist; 106 | } 107 | 108 | - (NSSet *)acceptedTypes { 109 | NSMutableSet *acceptedtypes = [[super acceptedTypes] mutableCopy]; 110 | [acceptedtypes addObject:(id)kUTTypeJPEG]; 111 | [acceptedtypes addObject:(id)kUTTypeGIF]; 112 | [acceptedtypes addObject:(id)kUTTypePNG]; 113 | return acceptedtypes; 114 | } 115 | 116 | @end 117 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberPresetConfigurationViewController.h: -------------------------------------------------------------------------------- 1 | //******************************************************************************* 2 | 3 | // Copyright (c) 2010 Realmac Software 4 | 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | // Created by Danny Greg on 14/9/2010 24 | 25 | //******************************************************************************* 26 | 27 | #import "RMUploadKit/RMUploadKit.h" 28 | 29 | @class RMUploaderEmberPreset; 30 | 31 | @interface RMUploaderEmberPresetConfigurationViewController : RMUploadPresetConfigurationViewController 32 | 33 | @property (retain) RMUploaderEmberPreset *representedObject; 34 | 35 | @property (readonly) IBOutlet NSPopUpButton *privacyPopupButton; 36 | - (IBAction)privacySelectionChanged:(id)sender; 37 | @property (readonly) IBOutlet NSButton *privacyRefreshButton; 38 | - (IBAction)refreshPrivacy:(id)sender; 39 | 40 | @property (readonly) IBOutlet NSPopUpButton *collectionsPopupButton; 41 | - (IBAction)collectionsSelectionChanged:(id)sender; 42 | @property (readonly) IBOutlet NSButton *collectionsRefreshButton; 43 | @property (readonly, assign, getter=isLoadingCollections) BOOL loadingCollections; 44 | - (IBAction)refreshCollections:(id)sender; 45 | 46 | @property (readonly) IBOutlet NSPopUpButton *categoriesPopupButton; 47 | - (IBAction)categoriesSelectionChanged:(id)sender; 48 | @property (readonly) IBOutlet NSButton *categoriesRefreshButton; 49 | - (IBAction)refreshCategories:(id)sender; 50 | 51 | @property (readonly) IBOutlet NSTextField *newCollectionTitleField; 52 | @property (readonly) IBOutlet NSButton *newCollectionButton; 53 | @property (readonly) IBOutlet NSProgressIndicator *newCollectionSpinner; 54 | @property (readonly, assign, getter=isCreatingCollection) BOOL creatingCollection; 55 | - (IBAction)newCollection:(id)sender; 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/RMUploaderEmberTask.h: -------------------------------------------------------------------------------- 1 | //*************************************************************************** 2 | 3 | // Copyright (C) 2009 Realmac Software Ltd 4 | // 5 | // These coded instructions, statements, and computer programs contain 6 | // unpublished proprietary information of Realmac Software Ltd 7 | // and are protected by copyright law. They may not be disclosed 8 | // to third parties or copied or duplicated in any form, in whole or 9 | // in part, without the prior written consent of Realmac Software Ltd. 10 | 11 | // Created by Danny Greg on 27/7/2009 12 | 13 | //*************************************************************************** 14 | 15 | #import 16 | 17 | #import "RMUploadKit/RMUploadKit.h" 18 | 19 | extern NSString *const RMUploaderEmberMetadataImageTypeKey; // NSString 20 | extern NSString *const RMUploaderEmberMetadataImageRatingKey; // NSString 21 | 22 | @interface RMUploaderEmberTask : RMUploadTask 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/Example Plugins/Ember Uploader/add.png -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/ember.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/Example Plugins/Ember Uploader/ember.tif -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/ember_closed_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/Example Plugins/Ember Uploader/ember_closed_1.png -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/ember_open_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/Example Plugins/Ember Uploader/ember_open_1.png -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/ember_open_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/Example Plugins/Ember Uploader/ember_open_2.png -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/Example Plugins/Ember Uploader/error.png -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/rating_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/Example Plugins/Ember Uploader/rating_active.png -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/rating_inactive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/Example Plugins/Ember Uploader/rating_inactive.png -------------------------------------------------------------------------------- /Example Plugins/Ember Uploader/version.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildVersion 6 | 2 7 | CFBundleShortVersionString 8 | 1.0 9 | CFBundleVersion 10 | 1 11 | ProjectName 12 | DevToolsWizardTemplates 13 | SourceVersion 14 | 15920000 15 | 16 | 17 | -------------------------------------------------------------------------------- /Project Templates/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/Project Templates/.DS_Store -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleName 10 | ${PRODUCT_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.___ORGANIZATIONNAME___.uploader.___PROJECTNAME___ 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleVersion 20 | 1 21 | CFBundleShortVersionString 22 | 1.0 23 | NSPrincipalClass 24 | ___PROJECTNAME___Plugin 25 | RMUploadPluginDestinationTypes 26 | 27 | ___PROJECTNAME___Preset 28 | 29 | RMUploadPluginBundleMinimumFrameworkBundleVersion 30 | 1 31 | 32 | 33 | -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/___PROJECTNAME___.xcodeproj/TemplateInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Description 6 | This template provides a starting point for a plugin for the RMUploadKit framework. 7 | 8 | 9 | -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/___PROJECTNAME___Constants.h: -------------------------------------------------------------------------------- 1 | // 2 | // ___PROJECTNAME___Plugin.h 3 | // ___PROJECTNAME___ 4 | // 5 | // Created by ___FULLUSERNAME___ on ___DATE___. 6 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | extern NSString *const ___PROJECTNAME___BundleIdentifier; 12 | -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/___PROJECTNAME___Constants.m: -------------------------------------------------------------------------------- 1 | // 2 | // ___PROJECTNAME___Plugin.h 3 | // ___PROJECTNAME___ 4 | // 5 | // Created by ___FULLUSERNAME___ on ___DATE___. 6 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NSString *const ___PROJECTNAME___BundleIdentifier = @"com.___ORGANIZATIONNAME___.uploader.___PROJECTNAME___"; 12 | -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/___PROJECTNAME___Plugin.h: -------------------------------------------------------------------------------- 1 | // 2 | // ___PROJECTNAME___Plugin.h 3 | // ___PROJECTNAME___ 4 | // 5 | // Created by ___FULLUSERNAME___ on ___DATE___. 6 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "RMUploadKit/RMUploadKit.h" 12 | 13 | @interface ___PROJECTNAME___Plugin : RMUploadPlugin 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/___PROJECTNAME___Plugin.m: -------------------------------------------------------------------------------- 1 | // 2 | // ___PROJECTNAME___Plugin.m 3 | // ___PROJECTNAME___ 4 | // 5 | // Created by ___FULLUSERNAME___ on ___DATE___. 6 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 7 | // 8 | 9 | #import "___PROJECTNAME___Plugin.h" 10 | 11 | #import "___PROJECTNAME___Constants.h" 12 | 13 | @implementation ___PROJECTNAME___Plugin 14 | 15 | - (RMUploadPresetConfigurationViewController *)presetConfigurationViewControllerForPreset:(RMUploadPreset *)preset 16 | { 17 | // Note: this can be your own subclass of NSViewController if you wish 18 | RMUploadPresetConfigurationViewController *controller = [[RMUploadPresetConfigurationViewController alloc] initWithNibName:@"PresetConfigurationView" bundle:[NSBundle bundleWithIdentifier:___PROJECTNAME___BundleIdentifier]]; 19 | return controller; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/___PROJECTNAME___Preset.h: -------------------------------------------------------------------------------- 1 | // 2 | // ___PROJECTNAME___Preset.h 3 | // ___PROJECTNAME___ 4 | // 5 | // Created by ___FULLUSERNAME___ on ___DATE___. 6 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "RMUploadKit/RMUploadKit.h" 12 | 13 | @interface ___PROJECTNAME___Preset : RMUploadPreset 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/___PROJECTNAME___Preset.m: -------------------------------------------------------------------------------- 1 | // 2 | // ___PROJECTNAME___Preset.m 3 | // ___PROJECTNAME___ 4 | // 5 | // Created by ___FULLUSERNAME___ on ___DATE___. 6 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 7 | // 8 | 9 | #import "___PROJECTNAME___Preset.h" 10 | 11 | #import "___PROJECTNAME___UploadTask.h" 12 | #import "___PROJECTNAME___Constants.h" 13 | 14 | @implementation ___PROJECTNAME___Preset 15 | 16 | + (NSString *)localisedName 17 | { 18 | return @"___PROJECTNAME___"; 19 | } 20 | 21 | + (Class)uploadTaskClass 22 | { 23 | return [___PROJECTNAME___UploadTask class]; 24 | } 25 | 26 | /* 27 | + (Class)credentialsClass 28 | { 29 | return [___PROJECTNAME___Credentials class]; 30 | } 31 | */ 32 | 33 | - (id)initWithPropertyListRepresentation:(id)values 34 | { 35 | id superRepresentation = [values objectForKey:@"super"]; 36 | self = [super initWithPropertyListRepresentation:superRepresentation]; 37 | if (self == nil) return nil; 38 | 39 | // Note: set any properties from the values container 40 | 41 | return self; 42 | } 43 | 44 | - (id)propertyListRepresentation 45 | { 46 | id superRepresentation = [super propertyListRepresentation]; 47 | 48 | NSMutableDictionary *plist = [NSMutableDictionary dictionary]; 49 | [plist setObject:superRepresentation forKey:@"super"]; 50 | 51 | // Note: set any properties into the values container 52 | 53 | return plist; 54 | } 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/___PROJECTNAME___UploadTask.h: -------------------------------------------------------------------------------- 1 | // 2 | // ___PROJECTNAME___UploadTask.h 3 | // ___PROJECTNAME___ 4 | // 5 | // Created by ___FULLUSERNAME___ on ___DATE___. 6 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "RMUploadKit/RMUploadKit.h" 12 | 13 | @interface ___PROJECTNAME___UploadTask : RMUploadTask 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/___PROJECTNAME___UploadTask.m: -------------------------------------------------------------------------------- 1 | // 2 | // ___PROJECTNAME___UploadTask.m 3 | // ___PROJECTNAME___ 4 | // 5 | // Created by ___FULLUSERNAME___ on ___DATE___. 6 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 7 | // 8 | 9 | #import "___PROJECTNAME___UploadTask.h" 10 | 11 | #import "___PROJECTNAME___Constants.h" 12 | 13 | @implementation ___PROJECTNAME___UploadTask 14 | 15 | - (id)initWithPreset:(RMUploadPreset *)destination uploadInfo:(id)uploadInfo 16 | { 17 | self = [super initWithPreset:destination uploadInfo:uploadInfo]; 18 | if (self == nil) return nil; 19 | 20 | 21 | 22 | return self; 23 | } 24 | 25 | - (void)upload 26 | { 27 | @synchronized (self) { 28 | if ([self isCancelled]) return; 29 | 30 | // Note: start upload connection… 31 | } 32 | } 33 | 34 | - (void)cancel 35 | { 36 | @synchronized (self) { 37 | [super cancel]; 38 | 39 | // Note: cancel upload connection… 40 | 41 | [[NSNotificationCenter defaultCenter] postNotificationName:RMUploadTaskDidCompleteNotificationName object:self]; 42 | } 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/___PROJECTNAME____Prefix.pch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/Project Templates/RMUploadKit Plugin/___PROJECTNAME____Prefix.pch -------------------------------------------------------------------------------- /Project Templates/RMUploadKit Plugin/version.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildVersion 6 | 2 7 | CFBundleShortVersionString 8 | 1.0 9 | CFBundleVersion 10 | 1 11 | ProjectName 12 | DevToolsWizardTemplates 13 | SourceVersion 14 | 15920000 15 | 16 | 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #RMUploadKit SDK 2 | 3 | This SDK is designed to easily allow developers to create plugins to expand Courier's list of supported services. 4 | 5 | It is super easy to get up and running: 6 | 7 | * Download one the prebuilt SDK from [https://github.com/downloads/realmacsoftware/RMUploadKit-SDK/RMUploadKit%20SDK.zip](https://github.com/downloads/realmacsoftware/RMUploadKit-SDK/RMUploadKit%20SDK.zip) 8 | * Install the SDK using the included installer 9 | * Create a new project in Xcode using the `RMUploadKit Plugin` project template 10 | 11 | ##Documentation 12 | 13 | View the hosted documentation here [http://realmacsoftware.github.com/RMUploadKit-SDK/](http://realmacsoftware.github.com/RMUploadKit-SDK/) 14 | 15 | Documentation is generated from the header files using doxygen and doxyclean. 16 | 17 | ##Notes 18 | 19 | * If you decide you don't want to use our project template (we recommend you do) you will need to set the `Additional SDKs` build flag to `$HOME/Library/Application Support/Developer/Shared/Xcode/SDKs/RMUploadKit.sdk` 20 | 21 | ##Todo 22 | 23 | * Write an uninstall script and document its behaviour 24 | 25 | ##Acknowledgements 26 | 27 | Documentation generated using [doxyclean](http://github.com/mattball/doxyclean) 28 | -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/RMUploadKit: -------------------------------------------------------------------------------- 1 | Versions/Current/RMUploadKit -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Headers/AFPropertyListProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // AFPropertyListProtocol.h 3 | // AmberFoundation 4 | // 5 | // Created by Keith Duncan on 11/03/2007. 6 | // Copyright 2007 thirty-three. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /*! 12 | \file 13 | */ 14 | 15 | /*! 16 | \brief 17 | Checks if an object can be serialised into a plist, returning NO where attempting to serlialise will fail and raise exception. 18 | 19 | \details 20 | Collections are checked recursively. 21 | */ 22 | extern BOOL AFIsPlistObject(id object); 23 | 24 | /*! 25 | \brief 26 | Defines an NSCoding like method pair. It is designed to produce developer-readable archives. 27 | */ 28 | @protocol AFPropertyList 29 | - (id)initWithPropertyListRepresentation:(id)propertyListRepresentation; 30 | - (id)propertyListRepresentation; 31 | @end 32 | 33 | /*! 34 | \brief 35 | 36 | */ 37 | @interface NSArray (AFPropertyList) 38 | 39 | @end 40 | 41 | /*! 42 | \brief 43 | 44 | */ 45 | @interface NSDictionary (AFPropertyList) 46 | 47 | @end 48 | 49 | /*! 50 | \brief 51 | 52 | */ 53 | @interface NSURL (AFPropertyList) 54 | 55 | @end 56 | 57 | /*! 58 | \brief 59 | Returns a property list object which combines the -propertyListRepresentation of object and the data required to reinstantiate it. 60 | The archive can be reinstantiated using AFPropertyListRepresenationUnarchive. 61 | */ 62 | extern CFPropertyListRef AFPropertyListRepresentationArchive(id object); 63 | 64 | /*! 65 | \brief 66 | This function unarchives a property list archive, returned from AFPropertyListRepresentationArchive(), back into a live object. 67 | */ 68 | extern id AFPropertyListRepresentationUnarchive(CFPropertyListRef propertyListArchive); 69 | -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Headers/NSURLRequest+RMUploadAdditions.h: -------------------------------------------------------------------------------- 1 | //*************************************************************************** 2 | 3 | // Copyright (C) 2009 Realmac Software Ltd 4 | // 5 | // These coded instructions, statements, and computer programs contain 6 | // unpublished proprietary information of Realmac Software Ltd 7 | // and are protected by copyright law. They may not be disclosed 8 | // to third parties or copied or duplicated in any form, in whole or 9 | // in part, without the prior written consent of Realmac Software Ltd. 10 | 11 | // Created by Danny Greg on 06/08/2010. 12 | 13 | //*************************************************************************** 14 | 15 | #import 16 | 17 | //*************************************************************************** 18 | 19 | /*! 20 | \file 21 | */ 22 | 23 | /* 24 | \brief 25 | Used in the parameter dictionaries of a POST request, for the filename. (NSString) 26 | This can be omitted if the parameter is not file data. 27 | */ 28 | extern NSString *const RMPOSTFilenameKey; 29 | 30 | /*! 31 | \brief 32 | Used to specify a "Content-Type" in a POST request, for the parameter. 33 | This is only used for if the parameter dictionary also contains a value for RMPOSTFilenameKey, otherwise the MIME is implied 'text/plain'. 34 | */ 35 | extern NSString *const RMPOSTContentTypeKey; 36 | 37 | /*! 38 | \brief 39 | Used in the parameter dictionaries of a POST request, for the data itself. 40 | This must not be omitted from the parameter dictionary. 41 | The value can be an NSData, NSString, NSURL or NSNumber object. 42 | */ 43 | extern NSString *const RMPOSTDataKey; 44 | 45 | /*! 46 | \brief 47 | Used in the parameter dictionaries of a POST request, for the fieldname. 48 | This must not be omitted from the parameter dictionary. 49 | */ 50 | extern NSString *const RMPOSTFieldNameKey; 51 | 52 | //*************************************************************************** 53 | 54 | /*! 55 | \brief 56 | Provides convenience methods for generating NSURLRequest objects, for common web service 57 | */ 58 | @interface NSURLRequest (RMUploadAdditions) 59 | 60 | /*! 61 | \brief 62 | Builds a GET request from the URL and parameters provided. 63 | 64 | The parameters are appended to the end of the URL as a query string. 65 | 66 | \param parameters 67 | NSDictionary expecting key/value pairs of strings, where each key/value pair is for a key in the web service that you are sending to. 68 | You can pass +[NSNull null] for the value if it has none. 69 | 70 | \param URL 71 | The base URL for the request. 72 | */ 73 | + (NSURLRequest *)getRequestWithParameters:(NSDictionary *)parameters toURL:(NSURL *)URL; 74 | 75 | /*! 76 | \brief 77 | Builds a POST request from the URL and parameters provided. 78 | 79 | Useful for simple POST requests that do not require files. 80 | 81 | This encodes the parameters, sets the body of the request and sets the 'Content-Type' header. 82 | 83 | \param parameters 84 | NSDictionary of key/value pairs. 85 | Unlike +getRequestWithParameters: the value does not have to be an NSString, it can be any class of object supported by RMPOSTDataKey. 86 | 87 | \param URL 88 | The base URL for the request. 89 | */ 90 | + (NSURLRequest *)postRequestWithParameters:(NSDictionary *)parameters toURL:(NSURL *)URL; 91 | 92 | /*! 93 | \brief 94 | Build a POST request for uploading a file. 95 | You build up an NSArray of parameter NSDictionary objects containing the keys described below to describe the data sent for each field in the request. 96 | 97 | \param parameters 98 | NSArray of NSDictionary objects containing: 99 | RMPOSTFilenameKey 100 | RMPOSTDataKey 101 | RMPOSTFieldNameKey 102 | 103 | \param URL 104 | The base URL for the request. 105 | */ 106 | + (NSURLRequest *)filePostRequestWithParameters:(NSArray *)parameters toURL:(NSURL *)URL; 107 | 108 | @end 109 | -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Headers/RMUploadAvailability.h: -------------------------------------------------------------------------------- 1 | // 2 | // RMUploadAvailability.h 3 | // RMUploadKit 4 | // 5 | // Created by Keith Duncan on 08/09/2010. 6 | // Copyright 2010 Realmac Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #define RMUPLOADKIT_DEPRECATED_ATTRIBUTE __attribute__((deprecated)) 12 | #define RMUPLOADKIT_UNAVAILABLE_ATTRIBUTE __attribute__((unavailable)) 13 | #define RMUPLOADKIT_WEAK_IMPORT_ATTRIBUTE __attribute__((weak_import)) 14 | 15 | #define RMUPLOADKIT_FRAMEWORK_VERSION_1 0100 16 | #define RMUPLOADKIT_FRAMEWORK_VERSION_2 0200 17 | #define RMUPLOADKIT_FRAMEWORK_VERSION_3 0300 18 | 19 | #ifndef RMUPLOADKIT_FRAMEWORK_VERSION_MIN_REQUIRED 20 | #define RMUPLOADKIT_FRAMEWORK_VERSION_MIN_REQUIRED RMUPLOADKIT_FRAMEWORK_VERSION_3 21 | #endif 22 | 23 | #ifndef RMUPLOADKIT_FRAMEWORK_VERSION_MAX_ALLOWED 24 | #define RMUPLOADKIT_FRAMEWORK_VERSION_MAX_ALLOWED RMUPLOADKIT_FRAMEWORK_VERSION_3 25 | #endif 26 | 27 | #if RMUPLOADKIT_FRAMEWORK_VERSION_MAX_ALLOWED < RMUPLOADKIT_FRAMEWORK_VERSION_3 28 | #define AVAILABLE_RMUPLOADKIT_VERSION_3_AND_LATER UNAVAILABLE_ATTRIBUTE 29 | #elif RMUPLOADKIT_VERSION_MIN_REQUIRED < RMUPLOADKIT_VERSION_3 30 | #define AVAILABLE_RMUPLOADKIT_VERSION_3_AND_LATER WEAK_IMPORT_ATTRIBUTE 31 | #else 32 | #define AVAILABLE_RMUPLOADKIT_VERSION_3_AND_LATER 33 | #endif 34 | -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Headers/RMUploadConstants.h: -------------------------------------------------------------------------------- 1 | //*************************************************************************** 2 | 3 | // Copyright (C) 2009 Realmac Software Ltd 4 | // 5 | // These coded instructions, statements, and computer programs contain 6 | // unpublished proprietary information of Realmac Software Ltd 7 | // and are protected by copyright law. They may not be disclosed 8 | // to third parties or copied or duplicated in any form, in whole or 9 | // in part, without the prior written consent of Realmac Software Ltd. 10 | 11 | // Created by Keith Duncan on 25/03/2009 12 | 13 | //*************************************************************************** 14 | 15 | #import 16 | 17 | /*! 18 | \brief 19 | This identifies the framework bundle, used for resource loading 20 | */ 21 | extern NSString *const RMUploadKitBundleIdentifier; 22 | 23 | /*! 24 | \brief 25 | Used as the NSURL scheme for URIs 26 | */ 27 | extern NSString *const RMUploadKitURIScheme; 28 | 29 | /*! 30 | \brief 31 | The filesystem extension is @"uploader", use this constant in place of that string. 32 | */ 33 | extern NSString *const RMUploadPluginBundleExtension; 34 | -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Headers/RMUploadCredentials.h: -------------------------------------------------------------------------------- 1 | //*************************************************************************** 2 | 3 | // Copyright (C) 2009 Realmac Software Ltd 4 | // 5 | // These coded instructions, statements, and computer programs contain 6 | // unpublished proprietary information of Realmac Software Ltd 7 | // and are protected by copyright law. They may not be disclosed 8 | // to third parties or copied or duplicated in any form, in whole or 9 | // in part, without the prior written consent of Realmac Software Ltd. 10 | 11 | // Created by Keith Duncan on 26/03/2009 12 | 13 | //*************************************************************************** 14 | 15 | #import 16 | 17 | #import "RMUploadKit/AFPropertyListProtocol.h" 18 | 19 | @class RMUploadPlugin; 20 | @class RMUploadPreset; 21 | 22 | /*! 23 | \file 24 | */ 25 | 26 | extern NSString *const RMUploadCredentialsDirtyKey; 27 | 28 | extern NSString *const RMUploadCredentialsUserIdentifierKey; 29 | 30 | /*! 31 | \brief 32 | Represents a set of user credentials, most commonly for an account on a web service. 33 | */ 34 | @interface RMUploadCredentials : NSObject 35 | 36 | /*! 37 | \brief 38 | Initialise credentials from a serialised representation. 39 | 40 | We provide you with the representation that you return in propertyListRepresentation to hand off to the framework for saving. 41 | 42 | If you follow the propertyListRepresentation example implementation, be sure to pass only the superclass representation to the superclass inititializer. 43 | 44 | An example implementation would be: 45 | \code 46 | - (id)initWithPropertyListRepresentation:(id)values { 47 | id superRepresentation = [values objectForKey:@"super"]; 48 | 49 | self = [super initWithPropertyListRepresentation:superRepresentation]; 50 | if (self == nil) return nil; 51 | 52 | [self setProperty:[values objectForKey:@"myKey"]]; 53 | 54 | return self; 55 | } 56 | \endcode 57 | 58 | \param values 59 | The property list representation that was returned from propertyListRepresentation. 60 | */ 61 | - (id)initWithPropertyListRepresentation:(id)values; 62 | 63 | /*! 64 | \brief 65 | A representation of the instance that can be saved to a plist. 66 | 67 | In order to save accounts they will be turned into a plist, therefore here you need to return a representation of your object that can be saved safely into one. You must also call the super's implementation at the top of the method. 68 | 69 | It is essential that you include, and namespace the representation of the superclass. You must not assume the class of the superclass' representation, simply that it is suitable for inclusion in a property list written to disk. 70 | 71 | An example implementation would be: 72 | \code 73 | - (id)propertyListRepresentation { 74 | id superRepresentation = [super propertyListRepresentation]; 75 | 76 | NSMutableDictionary *propertyListRepresentation = [NSMutableDictionary dictionary]; 77 | [propertyListRepresentation setObject:superRepresentation forKey:@"super"]; 78 | 79 | [propertyListRepresentation setValue:[self property] forKey:@"myKey"]; 80 | 81 | return propertyListRepresentation; 82 | } 83 | \endcode 84 | */ 85 | - (id)propertyListRepresentation; 86 | 87 | /*! 88 | \brief 89 | The plugin that the account belongs to. This is a to-one relationship. 90 | */ 91 | @property (readonly, assign) RMUploadPlugin *plugin; 92 | 93 | /*! 94 | \brief 95 | Overriding this is required, an exception will be thrown if not implemented by your subclass. 96 | This should be a string which is meaningful to the user, suitable for showing them as a later authentication choice. 97 | 98 | \details 99 | You should use their username or email address, depending on how they login. 100 | Avoid using their name, the user may have more than one account on your web service. 101 | */ 102 | @property (readonly) NSString *userIdentifier; 103 | 104 | @end 105 | -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Headers/RMUploadErrors.h: -------------------------------------------------------------------------------- 1 | // 2 | // RMUploadErrors.h 3 | // RMUploadKit 4 | // 5 | // Created by Keith Duncan on 05/08/2010. 6 | // Copyright 2010 Realmac Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /*! 12 | \brief 13 | These correspond to the RMUploadKitBundleIdentifier domain. 14 | */ 15 | enum { 16 | /* */ 17 | RMUploadErrorUnknown = 0, 18 | 19 | /* [-100, -199] */ 20 | // Note: re-enable configuration view buttons after validation failed, this error isn't presented 21 | RMUploadPresetConfigurationViewControllerErrorValidation = -100, 22 | }; 23 | typedef NSInteger RMUploadKitErrorCode; 24 | -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Headers/RMUploadKit.h: -------------------------------------------------------------------------------- 1 | //*************************************************************************** 2 | 3 | // Copyright (C) 2009 Realmac Software Ltd 4 | // 5 | // These coded instructions, statements, and computer programs contain 6 | // unpublished proprietary information of Realmac Software Ltd 7 | // and are protected by copyright law. They may not be disclosed 8 | // to third parties or copied or duplicated in any form, in whole or 9 | // in part, without the prior written consent of Realmac Software Ltd. 10 | 11 | // Created by Keith Duncan on 26/03/2009 12 | 13 | //*************************************************************************** 14 | 15 | #import 16 | 17 | // Model 18 | 19 | #import "RMUploadKit/AFPropertyListProtocol.h" 20 | 21 | #import "RMUploadKit/RMUploadPlugin.h" 22 | #import "RMUploadKit/RMUploadPreset.h" 23 | #import "RMUploadKit/RMUploadCredentials.h" 24 | 25 | // Controller 26 | 27 | #import "RMUploadKit/RMUploadPresetConfigurationViewController.h" 28 | #import "RMUploadKit/RMUploadMetadataConfigurationViewController.h" 29 | 30 | // Upload 31 | 32 | #import "RMUploadKit/RMUploadTask.h" 33 | 34 | #import "RMUploadKit/RMUploadURLConnection.h" 35 | #import "RMUploadKit/NSURLRequest+RMUploadAdditions.h" 36 | #import "RMUploadKit/RMUploadMultipartDocuments.h" 37 | 38 | // Other 39 | 40 | #import "RMUploadKit/RMUploadConstants.h" 41 | #import "RMUploadKit/RMUploadErrors.h" 42 | #import "RMUploadKit/RMUploadAvailability.h" 43 | -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Headers/RMUploadMetadataConfigurationViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // RMUploadMetadataConfigurationViewController.h 3 | // RMUploadKit 4 | // 5 | // Created by Keith Duncan on 21/06/2010. 6 | // Copyright 2010 Realmac Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /*! 12 | \brief 13 | This view controller is presented beside application metadata views. 14 | 15 | \details 16 | You view must be 310pt wide, there is no height restriction (within reason). 17 | */ 18 | @interface RMUploadMetadataConfigurationViewController : NSViewController 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Headers/RMUploadMultipartDocuments.h: -------------------------------------------------------------------------------- 1 | // 2 | // DSMultipartFormDocument.h 3 | // Courier 4 | // 5 | // Created by Keith Duncan on 29/04/2010. 6 | // Copyright 2010 Realmac Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "RMUploadKit/RMUploadAvailability.h" 12 | 13 | #if RMUPLOADKIT_FRAMEWORK_VERSION_MAX_ALLOWED >= RMUPLOADKIT_FRAMEWORK_VERSION_3 14 | /*! 15 | \brief 16 | Base class for multipart documents. 17 | */ 18 | @interface RMUploadMultipartDocument : NSObject 19 | 20 | @end 21 | #endif // RMUPLOADKIT_FRAMEWORK_VERSION_MAX_ALLOWED >= RMUPLOADKIT_FRAMEWORK_VERSION_3 22 | 23 | /*! 24 | \brief 25 | This format is described in RFC 2388 http://tools.ietf.org/html/rfc2388. 26 | 27 | \details 28 | The order you add values in is unpreserved. 29 | */ 30 | @interface RMUploadMultipartFormDocument : 31 | #if RMUPLOADKIT_FRAMEWORK_VERSION_MAX_ALLOWED >= RMUPLOADKIT_FRAMEWORK_VERSION_3 32 | RMUploadMultipartDocument 33 | #else 34 | NSObject 35 | #endif 36 | 37 | /*! 38 | \brief 39 | Returns the value associated with a given fieldname. 40 | */ 41 | - (NSString *)valueForField:(NSString *)fieldname; 42 | 43 | /*! 44 | \brief 45 | The fieldname should be unique per document, setting a value for an existing fieldname will overwrite the previous value. 46 | 47 | \details 48 | This will clear any files added to the same fieldname. 49 | 50 | \param value 51 | Can be nil, will remove existing value. 52 | 53 | \param fieldname 54 | Cannot be nil. 55 | */ 56 | - (void)setValue:(NSString *)value forField:(NSString *)fieldname; 57 | 58 | /*! 59 | \brief 60 | Unordered collection of previously added URLs using -addFileByReferencingURL:withFilename:toField:. 61 | */ 62 | - (NSSet *)fileLocationsForField:(NSString *)fieldname; 63 | 64 | /*! 65 | \brief 66 | Form documents support multiple files per-fieldname. 67 | 68 | \details 69 | Multiple files per fieldname are supported. 70 | This will clear any string values set for the same fieldname. 71 | 72 | \param filename 73 | This is optional, excluding it will use the last path component. 74 | 75 | \param fieldname 76 | To leave the 'name' value blank in the generated document, pass +[NSNull null] for the fieldname. 77 | */ 78 | - (void)addFileByReferencingURL:(NSURL *)location withFilename:(NSString *)filename toField:(NSString *)fieldname; 79 | 80 | /*! 81 | \brief 82 | Serialise the field values into a data object. 83 | 84 | \param contentTypeRef 85 | This is the MIME type of the output. It contains the generated multipart boundary. 86 | 87 | \returns 88 | Returns NO if any of the file parts cannot be loaded. 89 | Returns YES on success. 90 | */ 91 | - (BOOL)getFormData:(NSData **)dataRef contentType:(NSString **)contentTypeRef; 92 | 93 | @end 94 | 95 | #if RMUPLOADKIT_FRAMEWORK_VERSION_MAX_ALLOWED >= RMUPLOADKIT_FRAMEWORK_VERSION_3 96 | /*! 97 | \brief 98 | This format is described in RFC 2387 http://tools.ietf.org/html/rfc2387. 99 | Though it ommits support for the 'start' and 'type' parameters of the 'Content-Type' header. 100 | 101 | \details 102 | The order you add data in is unpreserved. 103 | */ 104 | @interface RMUploadMultipartRelatedDocument : RMUploadMultipartDocument 105 | 106 | /*! 107 | \brief 108 | Designated Initialiser. 109 | */ 110 | - (id)init; 111 | 112 | /*! 113 | \brief 114 | If your document is referrential, use this initialiser to specify the index content identifier. 115 | */ 116 | - (id)initWithStartContentIdentifier:(NSString *)startContentIdentifier; 117 | 118 | /*! 119 | \brief 120 | The data will appear in the serialised document. 121 | 122 | \param contentType 123 | Defaults to 'application/octet-stream' if nil. 124 | 125 | \param contentIdentifier 126 | Pass nil to omit the 'Content-ID' header. 127 | A contentIdentifier must be unique per document, adding another part with the same content identifer will throw an exception. 128 | */ 129 | - (void)addPartWithData:(NSData *)data withContentType:(NSString *)contentType forContentIdentifier:(NSString *)contentIdentifier; 130 | 131 | /*! 132 | \brief 133 | The content type is inferred. 134 | 135 | \param contentIdentifier 136 | Pass nil to omit the 'Content-ID' header. 137 | A contentIdentifier must be unique per document, adding another part with the same content identifer will throw an exception. 138 | */ 139 | - (void)addPartByReferencingContentsOfURL:(NSURL *)location forContentIdentifier:(NSString *)contentIdentifier; 140 | 141 | /*! 142 | \brief 143 | Removes a previously added part for the content identifier. 144 | */ 145 | - (void)removePartForContentIdentifier:(NSString *)contentIdentifier; 146 | 147 | /*! 148 | \brief 149 | Serialise the document into a data object. 150 | 151 | \param contentTypeRef 152 | This is the MIME tpye of the output./ It contains the generated multipart boundary. 153 | */ 154 | - (BOOL)getData:(NSData **)dataRef contentType:(NSString **)contentTypeRef; 155 | 156 | @end 157 | #endif // RMUPLOADKIT_FRAMEWORK_VERSION_MAX_ALLOWED >= RMUPLOADKIT_FRAMEWORK_VERSION_3 158 | -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Headers/RMUploadPresetConfigurationViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // RMUploadDestinationViewController.h 3 | // RMUploadKit 4 | // 5 | // Created by Keith Duncan on 24/09/2009. 6 | // Copyright 2009 Realmac Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /*! 12 | \file 13 | */ 14 | 15 | /*! 16 | \brief 17 | Post this once you have completed your work in -nextStage: to signal a change in the advancement status. 18 | 19 | \details 20 | If your validation succeeded, post it with an empty userInfo. 21 | If an error occurs, return it under the error RMUploadDestinationConfigurationViewControllerCompletionErrorKey to signal that the view cannot advance. 22 | 23 | If your error has domain RMUploadKitBundleIdentifier and code RMUploadPresetConfigurationViewControllerErrorValidation, the error isn't presented, the view doesn't advance and the 'next' button is re-enabled. Use this for a validation error. This error should be used in conjunction with -[RMUploadPresetConfigurationViewController highlightErrorInView:]. 24 | */ 25 | extern NSString *const RMUploadPresetConfigurationViewControllerDidCompleteNotificationName; 26 | /*! 27 | \brief 28 | An NSError object, included in the RMUploadPresetConfigurationViewControllerDidCompleteNotificationName userInfo dictionary. 29 | */ 30 | extern NSString *const RMUploadPresetConfigurationViewControllerDidCompleteErrorKey; 31 | 32 | /* 33 | * Keys 34 | */ 35 | 36 | extern NSString *const RMUploadPresetConfigurationViewControllerLocalisedAdvanceButtonTitleKey; 37 | 38 | /*! 39 | \brief 40 | Base class for RMUploadCredentials and RMUploadPreset configuration view controllers. 41 | 42 | \details 43 | You view must be 287pt in width, there is no height restriction (within reason). 44 | Your subviews should have an appropriate autoresizing mask for the superview to be a different (larger) width. 45 | */ 46 | @interface RMUploadPresetConfigurationViewController : NSViewController 47 | 48 | /*! 49 | \brief 50 | Observed and set as the 'next' button title. 51 | 52 | \details 53 | Intended for OAuth based credential view controllers so that they can title the button 'Authenticate' and change it to 'Confirm' after redirecting the user to the verification page in their browser. 54 | */ 55 | @property (readonly) NSString *localisedAdvanceButtonTitle; 56 | 57 | /*! 58 | \brief 59 | Override this action message to perform any validation before proceeding. You must validate your credential/preset object here. 60 | 61 | Once you have completed your validation, post the RMUploadDestinationConfigurationViewControllerStageDidCompleteNotificationName notification to the +[NSNotificationCenter defaultCenter] on the main thread with self as the object. 62 | 63 | The default implementation simply posts the notification. 64 | 65 | If your validation returns an error include it in the notification dictionary. 66 | You can include a recovery attempter under the NSRecoveryAttempterErrorKey key. 67 | - If you include a recovery attempter, and recover from the error, configuration will continue as if no error had been returned in the first place. 68 | - If you include a recovery attempter, and don't recover from the error, configuration doesn't continue and the user is returned to the current configuration view controller. 69 | */ 70 | - (IBAction)nextStage:(id)sender; 71 | 72 | /* 73 | View Controller Conveniences 74 | 75 | These will be called for you. 76 | */ 77 | 78 | - (void)viewWillDisappear:(BOOL)animated; 79 | 80 | - (void)viewDidAppear:(BOOL)animated; 81 | 82 | /*! 83 | \brief 84 | Highlights an error in, for example, a text field. 85 | 86 | \details 87 | The error will fade out after a short delay. 88 | */ 89 | - (void)highlightErrorInView:(NSView *)errorView; 90 | 91 | /*! 92 | \brief 93 | Hides a previously present error arrow using -highlightErrorInView:. 94 | */ 95 | - (void)hideErrorArrow; 96 | 97 | @end 98 | 99 | 100 | @interface RMUploadPresetConfigurationViewController (Actions) 101 | 102 | /*! 103 | \brief 104 | If implemented, a help button is shown in the configuration view. 105 | */ 106 | - (IBAction)showHelp:(id)sender; 107 | 108 | @end 109 | -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/RMUploadKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/RMUploadKit -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/DestinationConfigurationView.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/DestinationConfigurationView.nib -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/English.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/English.lproj/Localizable.strings -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | RMUploadKit 9 | CFBundleIdentifier 10 | com.realmacsoftware.rmuploadkit 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | RMUploadKit 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 3 21 | 22 | 23 | -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/_DestinationConfigurationErrorView.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/_DestinationConfigurationErrorView.nib -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/_MetadataConfigurationView.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/_MetadataConfigurationView.nib -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_doneblue_center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_doneblue_center.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_doneblue_center_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_doneblue_center_down.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_doneblue_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_doneblue_left.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_doneblue_left_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_doneblue_left_down.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_doneblue_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_doneblue_right.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_doneblue_right_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_doneblue_right_down.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_white_center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_white_center.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_white_center_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_white_center_down.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_white_left_rounded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_white_left_rounded.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_white_left_rounded_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_white_left_rounded_down.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_white_right_rounded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_white_right_rounded.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_white_right_rounded_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/button_white_right_rounded_down.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/caution.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/caution.tiff -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/destination_configuration_background_bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/destination_configuration_background_bottom.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/destination_configuration_background_middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/destination_configuration_background_middle.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/destination_configuration_background_separator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/destination_configuration_background_separator.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/destination_configuration_background_top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/destination_configuration_background_top.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/help.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/help_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/help_down.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/peter_pointer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/peter_pointer.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/popupbutton_white_center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/popupbutton_white_center.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/popupbutton_white_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/popupbutton_white_left.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/popupbutton_white_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/popupbutton_white_right.png -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/stamp_frame.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Resources/stamp_frame.tif -------------------------------------------------------------------------------- /RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /RMUploadKit.sdk/SDKSettings.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CanonicalName 6 | rmuploadkitsdk 7 | CustomProperties 8 | 9 | DefaultProperties 10 | 11 | DisplayName 12 | RMUploadKit SDK 1.0 13 | DocSetFeedName 14 | Realmac Software RMUploadKit SDK 1.0 15 | DocSetFeedURL 16 | http://developer.realmacsoftware.com/rss/com.realmacsoftware.rmuploadsdk.documentation.atom 17 | MaximumDeploymentTarget 18 | 10.6 19 | MinimalDisplayName 20 | 10.6 21 | MinimumSupportedToolsVersion 22 | 3.2 23 | SupportedBuildToolComponents 24 | 25 | com.apple.compilers.gcc.headers.4_2 26 | 27 | Version 28 | 1.0 29 | isBaseSDK 30 | NO 31 | 32 | 33 | -------------------------------------------------------------------------------- /RMUploadSDK Installer.pmdoc/01rmuploadkit.xml: -------------------------------------------------------------------------------- 1 | com.realmacsoftware.rmuploadkit.sdk.RMUploadKit.pkg1.0RMUploadKit.sdk/Library/Application Support/Developer/Shared/Xcode/SDKs/RMUploadKit.sdkinstallToinstallFrom.pathinstallTo.isAbsoluteTyperequireAuthorizationparentidentifierinstallTo.pathinstallFrom.isRelativeType01rmuploadkit-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ -------------------------------------------------------------------------------- /RMUploadSDK Installer.pmdoc/02rmuploadkit-contents.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /RMUploadSDK Installer.pmdoc/02rmuploadkit.xml: -------------------------------------------------------------------------------- 1 | com.realmacsoftware.rmuploadkit.sdk.RMUploadKitPlugin.pkg1.0RMUploadKit Plugin/Library/Application Support/Developer/Shared/Xcode/Project Templates/Plugins/RMUploadKit PlugininstallTolocationTypeinstallFrom.pathrequireAuthorizationparentidentifierinstallTo.pathinstallFrom.isRelativeType02rmuploadkit-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ -------------------------------------------------------------------------------- /RMUploadSDK Installer.pmdoc/index.xml: -------------------------------------------------------------------------------- 1 | RMUploadKit SDK/Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit SDK.pkgcom.realmacsoftwareThe RMUploadKit SDK requires 10.6.0 or later.01rmuploadkit.xml02rmuploadkit.xmlproperties.titleproperties.customizeOptionproperties.userDomainproperties.anywhereDomainproperties.systemDomain -------------------------------------------------------------------------------- /doxyclean/lib/css/common.css: -------------------------------------------------------------------------------- 1 | /* -------------------------------------*/ 2 | /* ---------->>>> =Global <<<<----------*/ 3 | /* -------------------------------------*/ 4 | 5 | * { 6 | margin: 0; 7 | padding: 0; 8 | } 9 | 10 | body { 11 | background-color: #fff; 12 | font-family: "Lucida Grande", Helvetica, Arial, sans-serif; 13 | font-size: 0.74em; 14 | } 15 | 16 | a { 17 | text-decoration: none; 18 | color: rgb(51, 102, 204); 19 | } 20 | 21 | a:hover { 22 | text-decoration: underline; 23 | } 24 | 25 | /* -------------------------------------*/ 26 | /* --------->>>> =Headings <<<<---------*/ 27 | /* -------------------------------------*/ 28 | 29 | #contents h1 { 30 | font-size: 2.4em; 31 | font-weight: normal; 32 | margin-bottom: 1em; 33 | } 34 | 35 | #contents h2 { 36 | font-size: 2.1em; 37 | font-weight: normal; 38 | margin-top: 2.0em; 39 | margin-bottom: 0.6em; 40 | padding-bottom: 0.1em; 41 | border-bottom: 1px solid rgb(80, 136, 197); 42 | color: rgb(60, 76, 108); 43 | } 44 | 45 | #contents h3 { 46 | font-size: 1.5em; 47 | font-weight: normal; 48 | margin-top: 1.0em; 49 | } 50 | 51 | #contents h4 { 52 | font-size: 1.2em; 53 | font-weight: bold; 54 | margin-top: 2em; 55 | } 56 | 57 | #contents h5 { 58 | font-size: 1.1em; 59 | font-weight: bold; 60 | margin-top: 1.0em; 61 | margin-bottom: 0.5em; 62 | } 63 | 64 | /* -------------------------------------*/ 65 | /* --------->>>> =Contents <<<<---------*/ 66 | /* -------------------------------------*/ 67 | 68 | #contents { 69 | padding: 0 2em; 70 | padding-top: 4em; 71 | } 72 | 73 | table#metadata { 74 | border-collapse: collapse; 75 | margin-left: 1em; 76 | } 77 | 78 | table#metadata tr { 79 | border-color: rgb(214, 224, 229); 80 | border-style: solid; 81 | border-width: 1px 0; 82 | } 83 | 84 | table#metadata th { 85 | font-weight: bold; 86 | text-align: left; 87 | padding: 0.8em; 88 | vertical-align: top; 89 | } 90 | 91 | table#metadata td { 92 | padding: 0.8em; 93 | } 94 | 95 | table#metadata ul { 96 | list-style: none; 97 | } 98 | 99 | table#metadata ul.inheritance li:after { 100 | content: ":"; 101 | padding: 0 0.5em; 102 | } 103 | 104 | table#metadata ul.inheritance li:last-of-type:after { 105 | content: ""; 106 | padding: 0; 107 | } 108 | 109 | #contents hr { 110 | border: 0; 111 | color: #aaa; 112 | background-color: #aaa; 113 | height: 1px; 114 | margin-bottom: 1.3em; 115 | margin-top: 1.3em; 116 | } 117 | 118 | #contents p { 119 | line-height: 1.5em; 120 | margin: 0.4em 0 1.0em 0; 121 | } 122 | 123 | code { 124 | font-family: Menlo, Monaco, 'Courier New', Courier, monospace; 125 | font-size: 1.1em; 126 | color: #333; 127 | } 128 | 129 | ul#tasksList { 130 | list-style: none; 131 | } 132 | 133 | ul.methods { 134 | list-style: none; 135 | margin-left: 2.4em; 136 | margin-top: 0.4em; 137 | } 138 | 139 | ul.methods li { 140 | margin-bottom: 0.3em; 141 | } 142 | 143 | .definition { 144 | display: block; 145 | margin-bottom: 3em !important; 146 | } 147 | 148 | code.methodDeclaration { 149 | display: block; 150 | font-size: 1.2em; 151 | } 152 | 153 | code.methodDeclaration .parameter { 154 | font-family: Helvetica, sans-serif; 155 | font-style: italic; 156 | } 157 | 158 | ul.seeAlso { 159 | list-style: none; 160 | margin: 0; 161 | } 162 | 163 | ul.seeAlso li { 164 | margin-bottom: 0.3em; 165 | } 166 | 167 | span.specialType { 168 | font-style: italic; 169 | font-size: 0.9em; 170 | color: #999966; 171 | } 172 | 173 | dl.parameterList { 174 | list-style: none; 175 | margin-left: 0; 176 | margin-top: 0.2em; 177 | } 178 | 179 | dl.parameterList dt { 180 | font-style: italic; 181 | } 182 | 183 | dl.parameterList dd { 184 | margin-left: 1.8em; 185 | } 186 | 187 | p#lastUpdated { 188 | text-align: center; 189 | } 190 | 191 | /* -------------------------------------*/ 192 | /* --------->>>> =Tooltips <<<<---------*/ 193 | /* -------------------------------------*/ 194 | 195 | ul.methods li span.tooltipRegion + span.tooltip { 196 | font-size: 1.0em; 197 | padding: 0.3em; 198 | border: 1px solid #aaa; 199 | background-color: #fdfec8; 200 | color: #000; 201 | text-align: left; 202 | display: block; 203 | position: absolute; 204 | margin-left: 2em; 205 | -webkit-box-shadow: 0 6px 20px #666; 206 | box-shadow: 0 6px 20px #666; 207 | opacity: 0; 208 | visibility: hidden; 209 | -webkit-transition: opacity 0.2s linear; 210 | } 211 | 212 | ul.methods li span.tooltipRegion:hover + span.tooltip { 213 | opacity: 1; 214 | visibility: visible; 215 | } 216 | 217 | /* -------------------------------------*/ 218 | /* ----------->>>> =Index <<<<----------*/ 219 | /* -------------------------------------*/ 220 | 221 | #indexContainer { 222 | margin: 4em; 223 | } 224 | 225 | .column { 226 | float: left; 227 | width: 200px; 228 | margin-right: 40px; 229 | margin-top: 2em; 230 | } 231 | 232 | .column h5 { 233 | border-bottom: 1px solid #aaa; 234 | margin-top: 2.0em; 235 | } 236 | 237 | .column ul { 238 | margin: 8px 0 0 0; 239 | padding: 0; 240 | font-size: 0.9em; 241 | list-style: none; 242 | } 243 | 244 | .column ul li { 245 | margin: 0 0 4px 0; 246 | padding: 0; 247 | } 248 | 249 | code pre { 250 | color: #000; 251 | line-height: 180%; 252 | background-color: rgb(240, 243, 247); 253 | border: 1px solid rgb(80, 136, 197); 254 | border-collapse: collapse; 255 | padding: 1em; 256 | } 257 | -------------------------------------------------------------------------------- /doxyclean/lib/css/print.css: -------------------------------------------------------------------------------- 1 | header { 2 | display: none !important; 3 | } 4 | 5 | nav { 6 | display: none !important; 7 | } 8 | 9 | footer { 10 | display: none !important; 11 | } 12 | -------------------------------------------------------------------------------- /doxyclean/lib/css/screen.css: -------------------------------------------------------------------------------- 1 | /* -------------------------------------*/ 2 | /* ---------->>>> =Header <<<<----------*/ 3 | /* -------------------------------------*/ 4 | 5 | header#projectHeader { 6 | background: -webkit-gradient(linear, left top, left bottom, from(#52708d), to(#2e3b49)); 7 | border-width: 0 0 1px 0; 8 | border-style: solid; 9 | border-color: #a1adbb; 10 | 11 | position: absolute; 12 | top: 0; 13 | left: 0; 14 | right: 0; 15 | height: 35px; 16 | } 17 | 18 | header#projectHeader h1 { 19 | font-size: 1.4em; 20 | font-family: Helvetica, sans-serif; 21 | color: #eee; 22 | text-shadow: #000 0 0 4px; 23 | padding: 0.4em 1.0em; 24 | text-align: left; 25 | font-weight: normal; 26 | } 27 | 28 | header#projectHeader h1 a, 29 | header#projectHeader h1 a:hover { 30 | color: #eee; 31 | text-decoration: none; 32 | } 33 | 34 | header#fileHeader { 35 | background: -webkit-gradient(linear, left top, left bottom, from(#bcc6d0), to(#8a98a9)); 36 | border-width: 0 0 1px 0; 37 | border-style: solid; 38 | border-color: #a1adbb; 39 | 40 | position: absolute; 41 | top: 35px; 42 | left: 0; 43 | right: 0; 44 | height: 25px; 45 | } 46 | 47 | header#fileHeader h1 { 48 | font-size: 1.2em; 49 | color: #000; 50 | text-shadow: #c3c3c3 0 1px 0; 51 | padding: 0.3em 1.0em; 52 | text-align: center; 53 | font-weight: normal; 54 | } 55 | 56 | header#fileHeader h1 a, 57 | header#fileHeader h1 a:hover { 58 | color: #000; 59 | text-decoration: none; 60 | } 61 | 62 | #buttons ul { 63 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #fff), color-stop(0.5, #f1f1f1), color-stop(0.5, #ececec), color-stop(1.0, #d6d6d6)); 64 | border-width: 1px 0; 65 | border-style: solid; 66 | border-color: #2b334f; 67 | height: 29px; 68 | list-style: none; 69 | 70 | position: absolute; 71 | top: 61px; 72 | left: 0; 73 | right: 0; 74 | } 75 | 76 | #buttons ul li { 77 | float: left; 78 | } 79 | 80 | #buttons ul li#toc_button button { 81 | border: 0; 82 | background: none; 83 | text-align: left; 84 | padding: 2px 0.4em 0 0.4em; 85 | height: 29px; 86 | width: 230px; 87 | border-right: 1px solid #acacac; 88 | color: #000; 89 | } 90 | 91 | #buttons ul li#toc_button button:before { 92 | content: "\25B6"; 93 | font-size: 7px; 94 | padding: 0.5em 0.8em 0.6em 0.4em; 95 | display: block; 96 | float: left; 97 | color: #434343; 98 | } 99 | 100 | #buttons ul li#toc_button.open button:before { 101 | content: "\25BC"; 102 | } 103 | 104 | select { 105 | margin-top: 5px; 106 | margin-left: 8px; 107 | } 108 | 109 | /* -------------------------------------*/ 110 | /* ---->>>> =Table of Contents <<<<-----*/ 111 | /* -------------------------------------*/ 112 | 113 | #tableOfContents { 114 | background-color: #e4ebf7; 115 | border-right: 1px solid #acacac; 116 | padding-top: 0.5em; 117 | width: 229px; 118 | position: absolute; 119 | top: 92px; 120 | bottom: 19px; 121 | left: 0; 122 | overflow: auto; 123 | } 124 | 125 | #tableOfContents ul { 126 | list-style: none; 127 | } 128 | 129 | #tableOfContents ul li { 130 | padding: 0.5em 0.8em 0.2em 0.4em; 131 | font-size: 0.9em; 132 | font-weight: bold; 133 | margin-left: 14px; 134 | } 135 | 136 | #tableOfContents ul li:before { 137 | display: block; 138 | float: left; 139 | content: ""; 140 | margin-left: -10px; 141 | } 142 | 143 | #tableOfContents ul li.expandable { 144 | margin-left: 10px; 145 | } 146 | 147 | #tableOfContents ul li.expandable:before { 148 | content: "\25B6"; 149 | font-size: 7px; 150 | color: #434343; 151 | padding: 0.5em 6px 0.6em 0.3em; 152 | } 153 | 154 | #tableOfContents ul li.expandable.expanded:before { 155 | content: "\25BC"; 156 | } 157 | 158 | #tableOfContents ul ul { 159 | list-style: none; 160 | margin-top: 0.2em; 161 | } 162 | 163 | #tableOfContents ul ul li { 164 | font-size: 1.0em; 165 | margin-left: 2px; 166 | } 167 | 168 | #tableOfContents ul li a { 169 | color: #000000; 170 | text-decoration: none; 171 | } 172 | 173 | #tableOfContents ul li a:hover { 174 | text-decoration: underline; 175 | } 176 | 177 | #tableOfContents ul ul li a { 178 | color: #4f4f4f; 179 | } 180 | 181 | /* -------------------------------------*/ 182 | /* --------->>>> =Contents <<<<---------*/ 183 | /* -------------------------------------*/ 184 | 185 | #contents { 186 | position: absolute; 187 | top: 92px; 188 | bottom: 19px; 189 | overflow: auto; 190 | left: 0; 191 | right: 0; 192 | } 193 | 194 | #contents.tableOfContentsOpen { 195 | left: 230px; 196 | } 197 | 198 | /* -------------------------------------*/ 199 | /* ------->>>> =Breadcrumbs <<<<--------*/ 200 | /* -------------------------------------*/ 201 | 202 | footer { 203 | background: -webkit-gradient(linear, left top, left bottom, from(#bcc6d0), to(#8a98a9)); 204 | border-width: 1px 0 0 0; 205 | border-style: solid; 206 | border-color: #2b334f; 207 | height: 18px; 208 | position: absolute; 209 | bottom: 0; 210 | left: 0; 211 | width: 100%; 212 | } 213 | 214 | footer ul { 215 | list-style: none; 216 | } 217 | 218 | footer ul li:before { 219 | content: "\25B6"; 220 | font-size: 7px; 221 | float: left; 222 | margin: 2px 6px; 223 | color: #434343; 224 | } 225 | 226 | footer ul li:first-child:before { 227 | content: ""; 228 | } 229 | 230 | footer ul li { 231 | float: left; 232 | font-size: 10px; 233 | margin: 3px 0; 234 | } 235 | 236 | footer ul a { 237 | color: #000; 238 | text-decoration: none; 239 | } 240 | 241 | footer ul a:hover { 242 | text-decoration: underline; 243 | } -------------------------------------------------------------------------------- /doxyclean/lib/index2html.xslt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | <!DOCTYPE html> 7 | 8 | 9 | 10 | <xsl:apply-templates select="project" mode="title"/> 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 |

22 | 23 | 24 |
25 |
Class References
26 |
    27 | 28 |
29 |
30 |
31 | 32 |
33 | 34 |
Protocol References
35 |
    36 | 37 |
38 |
39 | 40 | 41 |
Category References
42 |
    43 | 44 |
45 |
46 |
47 | 48 |
49 | 50 | 51 |
52 | 53 | 54 | 55 | 56 | 57 | Project Reference 58 | 59 | 60 | 61 |
  • 62 | 63 | 64 | 65 | Classes/ 66 | Categories/ 67 | Protocols/ 68 | 69 | .html 70 | 71 |
  • 72 |
    73 | 74 |
    -------------------------------------------------------------------------------- /doxyclean/output/html/Classes/RMUploadMetadataConfigurationViewController.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | RMUploadMetadataConfigurationViewController Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 44 | 45 | 46 |

    RMUploadKit SDK Reference Library

    RMUploadMetadataConfigurationViewController Class Reference

    51 |

    RMUploadMetadataConfigurationViewController Class Reference

    52 | 53 | 54 | 55 |
    Declared inRMUploadMetadataConfigurationViewController.h
    56 |

    Overview

    57 |

    This view controller is presented beside application metadata views.

    58 |

    You view must be 310pt wide, there is no height restriction (within reason).

    59 |
    60 |

    Last updated: 2010-9-9

    61 |
    62 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /doxyclean/output/html/Classes/RMUploadPreset(RMUploadCourierIntegration).html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | RMUploadPreset(RMUploadCourierIntegration) Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 44 | 45 | 46 |

    RMUploadKit SDK Reference Library

    RMUploadPreset(RMUploadCourierIntegration) Class Reference

    62 |

    RMUploadPreset(RMUploadCourierIntegration) Class Reference

    63 | 64 | 65 | 66 |
    Declared inRMUploadPreset.h
    67 |

    Overview

    68 |

    These are Courier only APIs, they have no effect on the functionality of your plugin.

    69 |

    Tasks

    70 |
    • 71 |

      Other

      72 |
      • 73 | + autoselectTrayImageKeyIf you include envelope images in your uploader, you can override this method to return the key from the DSTrayBundleImages element that should be autoselected for your preset. 74 |
      75 |
    76 |

    Class Methods

    77 |

    autoselectTrayImageKey

    78 |

    If you include envelope images in your uploader, you can override this method to return the key from the DSTrayBundleImages element that should be autoselected for your preset.

    79 | + (NSString *)autoselectTrayImageKey
    Return Value
    80 |

    Returns nil by default.

    81 |
    Discussion
    82 |

    Envelope images included in the uploader plugins aren't presented for selection in the interface, they are only available for autoselection.

    83 |

    84 |
    Declared In
    85 | RMUploadPreset.h

    86 |

    Last updated: 2010-9-9

    87 |
    88 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /doxyclean/output/html/Classes/RMUploadPresetConfigurationViewController(Actions).html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | RMUploadPresetConfigurationViewController(Actions) Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 44 | 45 | 46 |

    RMUploadKit SDK Reference Library

    RMUploadPresetConfigurationViewController(Actions) Class Reference

    60 |

    RMUploadPresetConfigurationViewController(Actions) Class Reference

    61 | 62 | 63 | 64 |
    Declared inRMUploadPresetConfigurationViewController.h
    65 |

    Tasks

    66 |
    • 67 |

      Other

      68 |
      • 69 | - showHelp:If implemented, a help button is shown in the configuration view. 70 |
      71 |
    72 |

    Instance Methods

    73 |

    showHelp:

    74 |

    If implemented, a help button is shown in the configuration view.

    75 | - (IBAction)showHelp:(id)sender
    Declared In
    76 | RMUploadPresetConfigurationViewController.h

    77 |

    Last updated: 2010-9-9

    78 |
    79 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /doxyclean/output/html/Guides/Building an Upload Plugin.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realmacsoftware/RMUploadKit-SDK/1365d94409a92c436d23763205128d84f60fc355/doxyclean/output/html/Guides/Building an Upload Plugin.pdf -------------------------------------------------------------------------------- /doxyclean/output/html/Protocols/AFPropertyList.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AFPropertyList Protocol Reference 6 | 7 | 8 | 9 | 10 | 11 | 44 | 45 | 46 |

    RMUploadKit SDK Reference Library

    AFPropertyList Protocol Reference

    51 |

    AFPropertyList Protocol Reference

    52 | 53 | 54 | 55 |
    Declared inAFPropertyListProtocol.h
    56 |

    Overview

    57 |

    Defines an NSCoding like method pair. It is designed to produce developer-readable archives.

    58 |
    59 |

    Last updated: 2010-9-9

    60 |
    61 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /doxyclean/output/html/css/common.css: -------------------------------------------------------------------------------- 1 | /* -------------------------------------*/ 2 | /* ---------->>>> =Global <<<<----------*/ 3 | /* -------------------------------------*/ 4 | 5 | * { 6 | margin: 0; 7 | padding: 0; 8 | } 9 | 10 | body { 11 | background-color: #fff; 12 | font-family: "Lucida Grande", Helvetica, Arial, sans-serif; 13 | font-size: 0.74em; 14 | } 15 | 16 | a { 17 | text-decoration: none; 18 | color: rgb(51, 102, 204); 19 | } 20 | 21 | a:hover { 22 | text-decoration: underline; 23 | } 24 | 25 | /* -------------------------------------*/ 26 | /* --------->>>> =Headings <<<<---------*/ 27 | /* -------------------------------------*/ 28 | 29 | #contents h1 { 30 | font-size: 2.4em; 31 | font-weight: normal; 32 | margin-bottom: 1em; 33 | } 34 | 35 | #contents h2 { 36 | font-size: 2.1em; 37 | font-weight: normal; 38 | margin-top: 2.0em; 39 | margin-bottom: 0.6em; 40 | padding-bottom: 0.1em; 41 | border-bottom: 1px solid rgb(80, 136, 197); 42 | color: rgb(60, 76, 108); 43 | } 44 | 45 | #contents h3 { 46 | font-size: 1.5em; 47 | font-weight: normal; 48 | margin-top: 1.0em; 49 | } 50 | 51 | #contents h4 { 52 | font-size: 1.2em; 53 | font-weight: bold; 54 | margin-top: 2em; 55 | } 56 | 57 | #contents h5 { 58 | font-size: 1.1em; 59 | font-weight: bold; 60 | margin-top: 1.0em; 61 | margin-bottom: 0.5em; 62 | } 63 | 64 | /* -------------------------------------*/ 65 | /* --------->>>> =Contents <<<<---------*/ 66 | /* -------------------------------------*/ 67 | 68 | #contents { 69 | padding: 0 2em; 70 | padding-top: 4em; 71 | } 72 | 73 | table#metadata { 74 | border-collapse: collapse; 75 | margin-left: 1em; 76 | } 77 | 78 | table#metadata tr { 79 | border-color: rgb(214, 224, 229); 80 | border-style: solid; 81 | border-width: 1px 0; 82 | } 83 | 84 | table#metadata th { 85 | font-weight: bold; 86 | text-align: left; 87 | padding: 0.8em; 88 | vertical-align: top; 89 | } 90 | 91 | table#metadata td { 92 | padding: 0.8em; 93 | } 94 | 95 | table#metadata ul { 96 | list-style: none; 97 | } 98 | 99 | table#metadata ul.inheritance li:after { 100 | content: ":"; 101 | padding: 0 0.5em; 102 | } 103 | 104 | table#metadata ul.inheritance li:last-of-type:after { 105 | content: ""; 106 | padding: 0; 107 | } 108 | 109 | #contents hr { 110 | border: 0; 111 | color: #aaa; 112 | background-color: #aaa; 113 | height: 1px; 114 | margin-bottom: 1.3em; 115 | margin-top: 1.3em; 116 | } 117 | 118 | #contents p { 119 | line-height: 1.5em; 120 | margin: 0.4em 0 1.0em 0; 121 | } 122 | 123 | code { 124 | font-family: Menlo, Monaco, 'Courier New', Courier, monospace; 125 | font-size: 1.1em; 126 | color: #333; 127 | } 128 | 129 | ul#tasksList { 130 | list-style: none; 131 | } 132 | 133 | ul.methods { 134 | list-style: none; 135 | margin-left: 2.4em; 136 | margin-top: 0.4em; 137 | } 138 | 139 | ul.methods li { 140 | margin-bottom: 0.3em; 141 | } 142 | 143 | .definition { 144 | display: block; 145 | margin-bottom: 3em !important; 146 | } 147 | 148 | code.methodDeclaration { 149 | display: block; 150 | font-size: 1.2em; 151 | } 152 | 153 | code.methodDeclaration .parameter { 154 | font-family: Helvetica, sans-serif; 155 | font-style: italic; 156 | } 157 | 158 | ul.seeAlso { 159 | list-style: none; 160 | margin: 0; 161 | } 162 | 163 | ul.seeAlso li { 164 | margin-bottom: 0.3em; 165 | } 166 | 167 | span.specialType { 168 | font-style: italic; 169 | font-size: 0.9em; 170 | color: #999966; 171 | } 172 | 173 | dl.parameterList { 174 | list-style: none; 175 | margin-left: 0; 176 | margin-top: 0.2em; 177 | } 178 | 179 | dl.parameterList dt { 180 | font-style: italic; 181 | } 182 | 183 | dl.parameterList dd { 184 | margin-left: 1.8em; 185 | } 186 | 187 | p#lastUpdated { 188 | text-align: center; 189 | } 190 | 191 | /* -------------------------------------*/ 192 | /* --------->>>> =Tooltips <<<<---------*/ 193 | /* -------------------------------------*/ 194 | 195 | ul.methods li span.tooltipRegion + span.tooltip { 196 | font-size: 1.0em; 197 | padding: 0.3em; 198 | border: 1px solid #aaa; 199 | background-color: #fdfec8; 200 | color: #000; 201 | text-align: left; 202 | display: block; 203 | position: absolute; 204 | margin-left: 2em; 205 | -webkit-box-shadow: 0 6px 20px #666; 206 | box-shadow: 0 6px 20px #666; 207 | opacity: 0; 208 | visibility: hidden; 209 | -webkit-transition: opacity 0.2s linear; 210 | } 211 | 212 | ul.methods li span.tooltipRegion:hover + span.tooltip { 213 | opacity: 1; 214 | visibility: visible; 215 | } 216 | 217 | /* -------------------------------------*/ 218 | /* ----------->>>> =Index <<<<----------*/ 219 | /* -------------------------------------*/ 220 | 221 | #indexContainer { 222 | margin: 4em; 223 | overflow: hidden; 224 | float: left; 225 | } 226 | 227 | .columnHeader { 228 | margin-bottom: -2em; 229 | } 230 | 231 | .columnHeader h5 { 232 | border-bottom: 1px solid #aaa; 233 | margin-top: 2.0em; 234 | margin-bottom: 1em; 235 | } 236 | 237 | .columnHeader p { 238 | font-size: 0.9em; 239 | } 240 | 241 | .column { 242 | float: left; 243 | margin-right: 40px; 244 | margin-top: 2em; 245 | } 246 | 247 | .column:last-child { 248 | margin-right: 0; 249 | } 250 | 251 | .column h5 { 252 | border-bottom: 1px solid #aaa; 253 | margin-top: 2.0em; 254 | } 255 | 256 | .column ul { 257 | margin: 8px 0 1.7em 0; 258 | padding: 0; 259 | font-size: 0.9em; 260 | list-style: none; 261 | } 262 | 263 | .column ul li { 264 | margin: 0 0 4px 0; 265 | padding: 0; 266 | } 267 | 268 | code pre { 269 | color: #000; 270 | line-height: 180%; 271 | background-color: rgb(240, 243, 247); 272 | border: 1px solid rgb(80, 136, 197); 273 | border-collapse: collapse; 274 | padding: 1em; 275 | } 276 | -------------------------------------------------------------------------------- /doxyclean/output/html/css/print.css: -------------------------------------------------------------------------------- 1 | header { 2 | display: none !important; 3 | } 4 | 5 | nav { 6 | display: none !important; 7 | } 8 | 9 | footer { 10 | display: none !important; 11 | } 12 | -------------------------------------------------------------------------------- /doxyclean/output/html/css/screen.css: -------------------------------------------------------------------------------- 1 | /* -------------------------------------*/ 2 | /* ---------->>>> =Header <<<<----------*/ 3 | /* -------------------------------------*/ 4 | 5 | header#projectHeader { 6 | background: -webkit-gradient(linear, left top, left bottom, from(#52708d), to(#2e3b49)); 7 | border-width: 0 0 1px 0; 8 | border-style: solid; 9 | border-color: #a1adbb; 10 | 11 | position: absolute; 12 | top: 0; 13 | left: 0; 14 | right: 0; 15 | height: 35px; 16 | } 17 | 18 | header#projectHeader h1 { 19 | font-size: 1.4em; 20 | font-family: Helvetica, sans-serif; 21 | color: #eee; 22 | text-shadow: #000 0 0 4px; 23 | padding: 0.4em 1.0em; 24 | text-align: left; 25 | font-weight: normal; 26 | } 27 | 28 | header#projectHeader h1 a, 29 | header#projectHeader h1 a:hover { 30 | color: #eee; 31 | text-decoration: none; 32 | } 33 | 34 | header#fileHeader { 35 | background: -webkit-gradient(linear, left top, left bottom, from(#bcc6d0), to(#8a98a9)); 36 | border-width: 0 0 1px 0; 37 | border-style: solid; 38 | border-color: #a1adbb; 39 | 40 | position: absolute; 41 | top: 35px; 42 | left: 0; 43 | right: 0; 44 | height: 25px; 45 | } 46 | 47 | header#fileHeader h1 { 48 | font-size: 1.2em; 49 | color: #000; 50 | text-shadow: #c3c3c3 0 1px 0; 51 | padding: 0.3em 1.0em; 52 | text-align: center; 53 | font-weight: normal; 54 | } 55 | 56 | header#fileHeader h1 a, 57 | header#fileHeader h1 a:hover { 58 | color: #000; 59 | text-decoration: none; 60 | } 61 | 62 | #buttons ul { 63 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #fff), color-stop(0.5, #f1f1f1), color-stop(0.5, #ececec), color-stop(1.0, #d6d6d6)); 64 | border-width: 1px 0; 65 | border-style: solid; 66 | border-color: #2b334f; 67 | height: 29px; 68 | list-style: none; 69 | 70 | position: absolute; 71 | top: 61px; 72 | left: 0; 73 | right: 0; 74 | } 75 | 76 | #buttons ul li { 77 | float: left; 78 | } 79 | 80 | #buttons ul li#toc_button button { 81 | border: 0; 82 | background: none; 83 | text-align: left; 84 | padding: 2px 0.4em 0 0.4em; 85 | height: 29px; 86 | width: 230px; 87 | border-right: 1px solid #acacac; 88 | color: #000; 89 | } 90 | 91 | #buttons ul li#toc_button button:before { 92 | content: "\25B6"; 93 | font-size: 7px; 94 | padding: 0.5em 0.8em 0.6em 0.4em; 95 | display: block; 96 | float: left; 97 | color: #434343; 98 | } 99 | 100 | #buttons ul li#toc_button.open button:before { 101 | content: "\25BC"; 102 | } 103 | 104 | select { 105 | margin-top: 5px; 106 | margin-left: 8px; 107 | } 108 | 109 | /* -------------------------------------*/ 110 | /* ---->>>> =Table of Contents <<<<-----*/ 111 | /* -------------------------------------*/ 112 | 113 | #tableOfContents { 114 | background-color: #e4ebf7; 115 | border-right: 1px solid #acacac; 116 | padding-top: 0.5em; 117 | width: 229px; 118 | position: absolute; 119 | top: 92px; 120 | bottom: 19px; 121 | left: 0; 122 | overflow: auto; 123 | } 124 | 125 | #tableOfContents ul { 126 | list-style: none; 127 | } 128 | 129 | #tableOfContents ul li { 130 | padding: 0.5em 0.8em 0.2em 0.4em; 131 | font-size: 0.9em; 132 | font-weight: bold; 133 | margin-left: 14px; 134 | } 135 | 136 | #tableOfContents ul li:before { 137 | display: block; 138 | float: left; 139 | content: ""; 140 | margin-left: -10px; 141 | } 142 | 143 | #tableOfContents ul li.expandable { 144 | margin-left: 10px; 145 | } 146 | 147 | #tableOfContents ul li.expandable:before { 148 | content: "\25B6"; 149 | font-size: 7px; 150 | color: #434343; 151 | padding: 0.5em 6px 0.6em 0.3em; 152 | } 153 | 154 | #tableOfContents ul li.expandable.expanded:before { 155 | content: "\25BC"; 156 | } 157 | 158 | #tableOfContents ul ul { 159 | list-style: none; 160 | margin-top: 0.2em; 161 | } 162 | 163 | #tableOfContents ul ul li { 164 | font-size: 1.0em; 165 | margin-left: 2px; 166 | } 167 | 168 | #tableOfContents ul li a { 169 | color: #000000; 170 | text-decoration: none; 171 | } 172 | 173 | #tableOfContents ul li a:hover { 174 | text-decoration: underline; 175 | } 176 | 177 | #tableOfContents ul ul li a { 178 | color: #4f4f4f; 179 | } 180 | 181 | /* -------------------------------------*/ 182 | /* --------->>>> =Contents <<<<---------*/ 183 | /* -------------------------------------*/ 184 | 185 | #contents { 186 | position: absolute; 187 | top: 92px; 188 | bottom: 19px; 189 | overflow: auto; 190 | left: 0; 191 | right: 0; 192 | } 193 | 194 | #contents.tableOfContentsOpen { 195 | left: 230px; 196 | } 197 | 198 | /* -------------------------------------*/ 199 | /* ------->>>> =Breadcrumbs <<<<--------*/ 200 | /* -------------------------------------*/ 201 | 202 | footer { 203 | background: -webkit-gradient(linear, left top, left bottom, from(#bcc6d0), to(#8a98a9)); 204 | border-width: 1px 0 0 0; 205 | border-style: solid; 206 | border-color: #2b334f; 207 | height: 18px; 208 | position: absolute; 209 | bottom: 0; 210 | left: 0; 211 | width: 100%; 212 | } 213 | 214 | footer ul { 215 | list-style: none; 216 | } 217 | 218 | footer ul li:before { 219 | content: "\25B6"; 220 | font-size: 7px; 221 | float: left; 222 | margin: 2px 6px; 223 | color: #434343; 224 | } 225 | 226 | footer ul li:first-child:before { 227 | content: ""; 228 | } 229 | 230 | footer ul li { 231 | float: left; 232 | font-size: 10px; 233 | margin: 3px 0; 234 | } 235 | 236 | footer ul a { 237 | color: #000; 238 | text-decoration: none; 239 | } 240 | 241 | footer ul a:hover { 242 | text-decoration: underline; 243 | } -------------------------------------------------------------------------------- /doxyclean/output/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | RMUploadKit SDK Project Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
    14 |

    RMUploadKit SDK Project Reference

    15 |
    16 |
    Guides
    17 |

    Building an Uploader Plugin

    18 |
    19 | 54 |
    55 |
    Protocol References
    56 | 60 |
    61 |
    62 | 63 | 64 | -------------------------------------------------------------------------------- /doxyclean/output/xml/Classes/RMUploadCredentials.xml: -------------------------------------------------------------------------------- 1 | 2 | RMUploadCredentials 3 | RMUploadCredentials.h 4 | 5 | 6 | 7 | AFPropertyList 8 | 9 | 10 | 11 | 12 | 13 | Represents a set of user credentials, most commonly for an account on a web service. 14 |
    15 |
    16 |
    17 | 18 |
    19 | Other 20 | 21 | plugin 22 | RMUploadPlugin * 23 | @property RMUploadPlugin *plugin 24 | RMUploadCredentials.h 25 | 26 | 27 | The plugin that the account belongs to. This is a to-one relationship. 28 |
    29 |
    30 |
    31 |
    32 | 33 | userIdentifier 34 | NSString * 35 | @property NSString *userIdentifier 36 | RMUploadCredentials.h 37 | 38 | 39 | Overriding this is required, an exception will be thrown if not implemented by your subclass. This should be a string which is meaningful to the user, suitable for showing them as a later authentication choice. 40 |
    41 | You should use their username or email address, depending on how they login. Avoid using their name, the user may have more than one account on your web service.
    42 |
    43 |
    44 |
    45 |
    46 | Other 47 | 48 | initWithPropertyListRepresentation: 49 | id 50 | - (id)initWithPropertyListRepresentation:(id)values 51 | RMUploadCredentials.h 52 | 53 | 54 | Initialise credentials from a serialised representation. 55 |
    56 | We provide you with the representation that you return in propertyListRepresentation to hand off to the framework for saving.If you follow the propertyListRepresentation example implementation, be sure to pass only the superclass representation to the superclass inititializer.An example implementation would be: - (id)initWithPropertyListRepresentation:(id)values { 57 | 58 | id superRepresentation = [values objectForKey:@"super"]; 59 | 60 | 61 | 62 | self = [super initWithPropertyListRepresentation:superRepresentation]; 63 | 64 | if (self == nil) return nil; 65 | 66 | 67 | 68 | [self setProperty:[values objectForKey:@"myKey"]]; 69 | 70 | 71 | 72 | return self; 73 | 74 | } 75 | 76 | 77 |
    78 |
    79 | 80 | values 81 | 82 | The property list representation that was returned from propertyListRepresentation. 83 | 84 |
    85 | 86 | propertyListRepresentation 87 | id 88 | - (id)propertyListRepresentation 89 | RMUploadCredentials.h 90 | 91 | 92 | A representation of the instance that can be saved to a plist. 93 |
    94 | In order to save accounts they will be turned into a plist, therefore here you need to return a representation of your object that can be saved safely into one. You must also call the super's implementation at the top of the method.It is essential that you include, and namespace the representation of the superclass. You must not assume the class of the superclass' representation, simply that it is suitable for inclusion in a property list written to disk.An example implementation would be: - (id)propertyListRepresentation { 95 | 96 | id superRepresentation = [super propertyListRepresentation]; 97 | 98 | 99 | 100 | NSMutableDictionary *propertyListRepresentation = [NSMutableDictionary dictionary]; 101 | 102 | [propertyListRepresentation setObject:superRepresentation forKey:@"super"]; 103 | 104 | 105 | 106 | [propertyListRepresentation setValue:[self property] forKey:@"myKey"]; 107 | 108 | 109 | 110 | return propertyListRepresentation; 111 | 112 | } 113 | 114 |
    115 |
    116 |
    117 |
    118 |
    119 |
    -------------------------------------------------------------------------------- /doxyclean/output/xml/Classes/RMUploadMetadataConfigurationViewController.xml: -------------------------------------------------------------------------------- 1 | 2 | RMUploadMetadataConfigurationViewController 3 | RMUploadMetadataConfigurationViewController.h 4 | 5 | 6 | This view controller is presented beside application metadata views. 7 |
    8 | You view must be 310pt wide, there is no height restriction (within reason).
    9 |
    10 | 11 |
    -------------------------------------------------------------------------------- /doxyclean/output/xml/Classes/RMUploadMultipartDocument.xml: -------------------------------------------------------------------------------- 1 | 2 | RMUploadMultipartDocument 3 | RMUploadMultipartDocuments.h 4 | 5 | 6 | 7 | 8 | Base class for multipart documents. 9 |
    10 |
    11 |
    12 | 13 |
    -------------------------------------------------------------------------------- /doxyclean/output/xml/Classes/RMUploadPreset(RMUploadCourierIntegration).xml: -------------------------------------------------------------------------------- 1 | 2 | RMUploadPreset(RMUploadCourierIntegration) 3 | RMUploadPreset.h 4 | 5 | 6 | These are Courier only APIs, they have no effect on the functionality of your plugin. 7 |
    8 |
    9 |
    10 | 11 |
    12 | Other 13 | 14 | autoselectTrayImageKey 15 | NSString * 16 | + (NSString *)autoselectTrayImageKey 17 | RMUploadPreset.h 18 | 19 | 20 | If you include envelope images in your uploader, you can override this method to return the key from the DSTrayBundleImages element that should be autoselected for your preset. 21 |
    22 | Envelope images included in the uploader plugins aren't presented for selection in the interface, they are only available for autoselection. 23 |
    24 |
    25 | 26 | Returns nil by default. 27 | 28 |
    29 |
    30 |
    31 |
    -------------------------------------------------------------------------------- /doxyclean/output/xml/Classes/RMUploadPreset(RMUploadMetadata).xml: -------------------------------------------------------------------------------- 1 | 2 | RMUploadPreset(RMUploadMetadata) 3 | RMUploadPreset.h 4 | 5 | 6 | These methods are used for preset setup and presentation. 7 |
    8 |
    9 |
    10 | 11 |
    12 | Other 13 | 14 | credentialsClass 15 | Class 16 | + (Class)credentialsClass 17 | RMUploadPreset.h 18 | 19 | 20 | Used to determine if your preset requires credentials, and which credentials it can share with other preconfigured presets. 21 |
    22 | The default implementation returns Nil, return an RMUploadCredentials class if you support credentials.
    23 |
    24 |
    25 | 26 | uploadTaskClass 27 | Class 28 | + (Class)uploadTaskClass 29 | RMUploadPreset.h 30 | 31 | 32 | The RMUploadTask class for this preset. 33 |
    34 | This method is required, if not implemented the framework throws an exception. 35 |
    36 |
    37 | 38 | An RMUploadTask subclass. 39 | 40 |
    41 | 42 | localisedName 43 | NSString * 44 | + (NSString *)localisedName 45 | RMUploadPreset.h 46 | 47 | 48 | The name for the preset type, preferably localised. 49 |
    50 |
    51 |
    52 |
    53 | 54 | icon 55 | NSImage * 56 | + (NSImage *)icon 57 | RMUploadPreset.h 58 | 59 | 60 | The icon for the destination type. This image should be square and at least 100px in dimension. Any decoration added is application specific. 61 |
    62 |
    63 |
    64 |
    65 | 66 | serviceURL 67 | NSURL * 68 | + (NSURL *)serviceURL 69 | RMUploadPreset.h 70 | 71 | 72 | This method constructs the NSURL from your Info.plist. 73 |
    74 | If sent to a preset whose bundle RMUploadPluginServiceHostKey is nil, it will throw an exception.This will only be useful for your own web services where you can use the Info.plist preprocessor to switch between development and deployment servers.
    75 |
    76 |
    77 |
    78 |
    79 |
    -------------------------------------------------------------------------------- /doxyclean/output/xml/Classes/RMUploadPresetConfigurationViewController(Actions).xml: -------------------------------------------------------------------------------- 1 | 2 | RMUploadPresetConfigurationViewController(Actions) 3 | RMUploadPresetConfigurationViewController.h 4 | 5 |
    6 | Other 7 | 8 | showHelp: 9 | IBAction 10 | - (IBAction)showHelp:(id)sender 11 | RMUploadPresetConfigurationViewController.h 12 | 13 | 14 | If implemented, a help button is shown in the configuration view. 15 |
    16 |
    17 |
    18 |
    19 |
    20 |
    21 |
    -------------------------------------------------------------------------------- /doxyclean/output/xml/Classes/RMUploadPresetConfigurationViewController.xml: -------------------------------------------------------------------------------- 1 | 2 | RMUploadPresetConfigurationViewController 3 | RMUploadPresetConfigurationViewController.h 4 | 5 | 6 | Base class for RMUploadCredentials and RMUploadPreset configuration view controllers. 7 |
    8 | You view must be 287pt in width, there is no height restriction (within reason). Your subviews should have an appropriate autoresizing mask for the superview to be a different (larger) width.
    9 |
    10 | 11 |
    12 | Other 13 | 14 | localisedAdvanceButtonTitle 15 | NSString * 16 | @property NSString *localisedAdvanceButtonTitle 17 | RMUploadPresetConfigurationViewController.h 18 | 19 | 20 | Observed and set as the 'next' button title. 21 |
    22 | Intended for OAuth based credential view controllers so that they can title the button 'Authenticate' and change it to 'Confirm' after redirecting the user to the verification page in their browser.
    23 |
    24 |
    25 |
    26 |
    27 | Other 28 | 29 | nextStage: 30 | IBAction 31 | - (IBAction)nextStage:(id)sender 32 | RMUploadPresetConfigurationViewController.h 33 | 34 | 35 | Override this action message to perform any validation before proceeding. You must validate your credential/preset object here. 36 |
    37 | Once you have completed your validation, post the RMUploadDestinationConfigurationViewControllerStageDidCompleteNotificationName notification to the +[NSNotificationCenter defaultCenter] on the main thread with self as the object.The default implementation simply posts the notification.If your validation returns an error include it in the notification dictionary. You can include a recovery attempter under the NSRecoveryAttempterErrorKey key. 38 | If you include a recovery attempter, and recover from the error, configuration will continue as if no error had been returned in the first place.If you include a recovery attempter, and don't recover from the error, configuration doesn't continue and the user is returned to the current configuration view controller. 39 |
    40 |
    41 |
    42 | 43 | highlightErrorInView: 44 | void 45 | - (void)highlightErrorInView:(NSView *)errorView 46 | RMUploadPresetConfigurationViewController.h 47 | 48 | 49 | Highlights an error in, for example, a text field. 50 |
    51 | The error will fade out after a short delay.
    52 |
    53 |
    54 | 55 | hideErrorArrow 56 | void 57 | - (void)hideErrorArrow 58 | RMUploadPresetConfigurationViewController.h 59 | 60 | 61 | Hides a previously present error arrow using -highlightErrorInView:. 62 |
    63 |
    64 |
    65 |
    66 |
    67 |
    68 |
    -------------------------------------------------------------------------------- /doxyclean/output/xml/Classes/RMUploadURLConnection(RMUploadDeprecated).xml: -------------------------------------------------------------------------------- 1 | 2 | RMUploadURLConnection(RMUploadDeprecated) 3 | RMUploadURLConnection.h 4 | 5 | 6 | These methods are deprecated and should not be used. 7 |
    8 |
    9 |
    10 | 11 |
    12 | Other 13 | 14 | sendGetRequestWithParameters:toURL: 15 | void 16 | - (void)sendGetRequestWithParameters:(NSDictionary *)params toURL:(NSURL *)RMUPLOADKIT_DEPRECATED_ATTRIBUTE 17 | RMUploadURLConnection.h 18 | 19 | 20 | This method is deprecated, use +[NSURLRequest getRequestWithParameters:toURL:] instead. 21 |
    22 |
    23 |
    24 |
    25 | 26 | sendFilePostRequestWithParameters:toURL: 27 | void 28 | - (void)sendFilePostRequestWithParameters:(NSArray *)params toURL:(NSURL *)RMUPLOADKIT_DEPRECATED_ATTRIBUTE 29 | RMUploadURLConnection.h 30 | 31 | 32 | This method is deprecated, use +[NSURLRequest filePostRequestWithParameters:toURL:] instead. 33 |
    34 |
    35 |
    36 |
    37 | 38 | sendPostRequestWithParameters:toURL: 39 | void 40 | - (void)sendPostRequestWithParameters:(NSDictionary *)params toURL:(NSURL *)RMUPLOADKIT_DEPRECATED_ATTRIBUTE 41 | RMUploadURLConnection.h 42 | 43 | 44 | This method is deprecated, use +[NSURLRequest postRequestWithParameters:toURL:] instead. 45 |
    46 |
    47 |
    48 |
    49 |
    50 |
    51 |
    -------------------------------------------------------------------------------- /doxyclean/output/xml/Protocols/AFPropertyList.xml: -------------------------------------------------------------------------------- 1 | 2 | AFPropertyList 3 | AFPropertyListProtocol.h 4 | 5 | 6 | Defines an NSCoding like method pair. It is designed to produce developer-readable archives. 7 |
    8 |
    9 |
    10 | 11 |
    -------------------------------------------------------------------------------- /doxyclean/output/xml/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | NSURLRequest(RMUploadAdditions) 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | NSURLRequest(RMUploadAdditions) 23 | 24 | 25 | 26 | 27 | RMUploadCredentials 28 | 29 | 30 | 31 | 32 | RMUploadMetadataConfigurationViewController 33 | 34 | 35 | 36 | 37 | RMUploadMultipartDocument 38 | 39 | 40 | 41 | 42 | RMUploadMultipartFormDocument 43 | 44 | 45 | 46 | 47 | RMUploadMultipartRelatedDocument 48 | 49 | 50 | 51 | 52 | RMUploadPlugin 53 | 54 | 55 | 56 | 57 | RMUploadPreset(RMUploadCourierIntegration) 58 | 59 | 60 | 61 | 62 | RMUploadPreset(RMUploadMetadata) 63 | 64 | 65 | 66 | 67 | RMUploadPreset 68 | 69 | 70 | 71 | 72 | RMUploadPresetConfigurationViewController(Actions) 73 | 74 | 75 | 76 | 77 | RMUploadPresetConfigurationViewController 78 | 79 | 80 | 81 | 82 | RMUploadTask 83 | 84 | 85 | 86 | 87 | RMUploadURLConnection(RMUploadDeprecated) 88 | 89 | 90 | 91 | 92 | RMUploadURLConnection 93 | 94 | 95 | 96 | 97 | AFPropertyList 98 | 99 | 100 | 101 | 102 | RMUploadURLConnectionDelegate 103 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /doxygen/output/xml/_r_m_upload_metadata_configuration_view_controller_8h.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RMUploadMetadataConfigurationViewController.h 5 | Cocoa/Cocoa.h 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | RMUploadMetadataConfigurationViewController 18 | 19 | 20 | 21 | 22 | 23 | // 24 | //RMUploadMetadataConfigurationViewController.h 25 | //RMUploadKit 26 | // 27 | //CreatedbyKeithDuncanon21/06/2010. 28 | //Copyright2010RealmacSoftware.Allrightsreserved. 29 | // 30 | 31 | #import<Cocoa/Cocoa.h> 32 | 33 | @interfaceRMUploadMetadataConfigurationViewController:NSViewController 34 | 35 | @end 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /doxygen/output/xml/_r_m_upload_multipart_form_document_8h.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RMUploadMultipartFormDocument.h 5 | Foundation/Foundation.h 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | RMUploadMultipartFormDocument 18 | 19 | 20 | 21 | 22 | 23 | // 24 | //DSMultipartFormDocument.h 25 | //Courier 26 | // 27 | //CreatedbyKeithDuncanon29/04/2010. 28 | //Copyright2010RealmacSoftware.Allrightsreserved. 29 | // 30 | 31 | #import<Foundation/Foundation.h> 32 | 33 | @interfaceRMUploadMultipartFormDocument:NSObject 34 | 35 | -(NSString*)valueForField:(NSString*)fieldname; 36 | 37 | -(void)setValue:(NSString*)valueforField:(NSString*)fieldname; 38 | 39 | -(NSSet*)fileLocationsForField:(NSString*)fieldname; 40 | 41 | -(void)addFileByReferencingURL:(NSURL*)locationwithFilename:(NSString*)filenametoField:(NSString*)fieldname; 42 | 43 | -(void)getFormData:(NSData**)dataRefcontentType:(NSString**)contentTypeRef; 44 | 45 | @end 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /doxygen/output/xml/combine.xslt: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /doxygen/output/xml/dir_060fffbae4770fd4e46870cbd3b0dc95.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /Users/keith/Projects/ 5 | /Users/keith/Projects/Source/ 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /doxygen/output/xml/dir_121488fcea61c669c5036071cddb8f43.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /Users/keith/Projects/Source/ 5 | /Users/keith/Projects/Source/RMUpload/ 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /doxygen/output/xml/dir_218a9439857e10c3ba98098bc68866a4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/Library/Frameworks/ 5 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/ 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /doxygen/output/xml/dir_3ed2fa5009a7230f191e5dd9eb6bf827.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /Users/keith/Projects/Source/RMUpload/documentation/ 5 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/ 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /doxygen/output/xml/dir_88b01fc6e02cfb49cfa4c3910da2ec12.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /Users/keith/ 5 | /Users/keith/Projects/ 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /doxygen/output/xml/dir_91a19cf6edfac0404c705485afee9609.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Headers/ 5 | AFPropertyListProtocol.h 6 | NSURLRequest+RMUploadAdditions.h 7 | RMUploadAvailability.h 8 | RMUploadConstants.h 9 | RMUploadCredentials.h 10 | RMUploadErrors.h 11 | RMUploadKit.h 12 | RMUploadMetadataConfigurationViewController.h 13 | RMUploadMultipartDocuments.h 14 | RMUploadPlugin.h 15 | RMUploadPreset.h 16 | RMUploadPresetConfigurationViewController.h 17 | RMUploadTask.h 18 | RMUploadURLConnection.h 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /doxygen/output/xml/dir_a223300e878de5c8569b4662371bffe8.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /Users/keith/Projects/Source/RMUpload/ 5 | /Users/keith/Projects/Source/RMUpload/documentation/ 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /doxygen/output/xml/dir_cf52511228cad7dc708c4103d9bb57e6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/ 5 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/Headers/ 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /doxygen/output/xml/dir_cf67b188d77b2f5b9ae83c7091a6563f.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/ 5 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/ 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /doxygen/output/xml/dir_e276bba908cf343e1f4f5c175308a7d6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/ 5 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/Library/ 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /doxygen/output/xml/dir_ed54f06b6481195d07963b2cbf730f78.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/ 5 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/Library/Frameworks/RMUploadKit.framework/Versions/A/ 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /doxygen/output/xml/dir_f9fe4eab118d21b9c6b2d8264e8be3d8.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/Library/ 5 | /Users/keith/Projects/Source/RMUpload/documentation/RMUploadKit.sdk/Library/Frameworks/ 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /doxygen/output/xml/index.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /doxygen/output/xml/interface_n_s_array_07_a_f_property_list_08.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | NSArray(AFPropertyList) 5 | AFPropertyListProtocol.h 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /doxygen/output/xml/interface_n_s_dictionary_07_a_f_property_list_08.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | NSDictionary(AFPropertyList) 5 | AFPropertyListProtocol.h 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /doxygen/output/xml/interface_n_s_u_r_l_07_a_f_property_list_08.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | NSURL(AFPropertyList) 5 | AFPropertyListProtocol.h 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /doxygen/output/xml/interface_r_m_upload_metadata_configuration_view_controller.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RMUploadMetadataConfigurationViewController 5 | RMUploadMetadataConfigurationViewController.h 6 | 7 | This view controller is presented beside application metadata views. 8 | 9 | You view must be 310pt wide, there is no height restriction (within reason). 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /doxygen/output/xml/interface_r_m_upload_multipart_document.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RMUploadMultipartDocument 5 | RMUploadMultipartFormDocument 6 | RMUploadMultipartRelatedDocument 7 | RMUploadMultipartDocuments.h 8 | 9 | Base class for multipart documents. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /doxygen/output/xml/interface_r_m_upload_preset_07_r_m_upload_courier_integration_08.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RMUploadPreset(RMUploadCourierIntegration) 5 | RMUploadPreset.h 6 | 7 | 8 | NSString * 9 | NSString * RMUploadPreset(RMUploadCourierIntegration)::autoselectTrayImageKey 10 | () 11 | autoselectTrayImageKey 12 | 13 | If you include envelope images in your uploader, you can override this method to return the key from the DSTrayBundleImages element that should be autoselected for your preset. 14 | 15 | Envelope images included in the uploader plugins aren't presented for selection in the interface, they are only available for autoselection.Returns nil by default. 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | These are Courier only APIs, they have no effect on the functionality of your plugin. 24 | 25 | 26 | 27 | 28 | RMUploadPreset(RMUploadCourierIntegration)autoselectTrayImageKey 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /doxygen/output/xml/interface_r_m_upload_preset_configuration_view_controller_07_actions_08.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RMUploadPresetConfigurationViewController(Actions) 5 | RMUploadPresetConfigurationViewController.h 6 | 7 | 8 | IBAction 9 | IBAction RMUploadPresetConfigurationViewController(Actions)::showHelp: 10 | (id sender) 11 | showHelp: 12 | 13 | id 14 | sender 15 | 16 | 17 | If implemented, a help button is shown in the configuration view. 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | RMUploadPresetConfigurationViewController(Actions)showHelp: 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /doxygen/output/xml/protocol_a_f_property_list-p.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AFPropertyList-p 5 | RMUploadCredentials 6 | RMUploadPreset 7 | AFPropertyListProtocol.h 8 | 9 | 10 | id 11 | id AFPropertyList-p::initWithPropertyListRepresentation: 12 | (id propertyListRepresentation) 13 | initWithPropertyListRepresentation: 14 | initWithPropertyListRepresentation: 15 | initWithPropertyListRepresentation: 16 | 17 | id 18 | propertyListRepresentation 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | id 30 | id AFPropertyList-p::propertyListRepresentation 31 | () 32 | propertyListRepresentation 33 | propertyListRepresentation 34 | propertyListRepresentation 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | Defines an NSCoding like method pair. It is designed to produce developer-readable archives. 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | AFPropertyList-pinitWithPropertyListRepresentation: 69 | AFPropertyList-ppropertyListRepresentation 70 | 71 | 72 | 73 | --------------------------------------------------------------------------------