diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 0613f78..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ee0843e --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +# Xcode +# +*.DS_Store +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate diff --git a/README.md b/README.md index f5058ee..1828be2 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,6 @@ Wordpress WXR Splitter A Mac App that'll split Wordpress compatible XML file into parts for easier upload. +Now supports splitting files in increments less than 1Mb. Enter as .1, .5, etc. -Here's a binary: -https://github.com/downloads/suhastech/Wordpress-WXR-Splitter/WXR%20Splitter.zip - -The blog post: http://suhastech.com/wordpress-wxr-xmlfile-splitter-for-mac-os-x/ \ No newline at end of file +The zip file in the repository contains the binary. diff --git a/WXR Splitter.xcodeproj/project.pbxproj b/WXR Splitter.xcodeproj/project.pbxproj index a35e99f..16cd3f0 100644 --- a/WXR Splitter.xcodeproj/project.pbxproj +++ b/WXR Splitter.xcodeproj/project.pbxproj @@ -260,12 +260,11 @@ buildSettings = { CLANG_ENABLE_OBJC_ARC = YES; CODE_SIGN_ENTITLEMENTS = "WXR Splitter/WXR Splitter.entitlements"; - CODE_SIGN_IDENTITY = "3rd Party Mac Developer Application"; COMBINE_HIDPI_IMAGES = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "WXR Splitter/WXR Splitter-Prefix.pch"; INFOPLIST_FILE = "WXR Splitter/WXR Splitter-Info.plist"; - MACOSX_DEPLOYMENT_TARGET = 10.6; + MACOSX_DEPLOYMENT_TARGET = 10.7; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; WRAPPER_EXTENSION = app; @@ -277,12 +276,11 @@ buildSettings = { CLANG_ENABLE_OBJC_ARC = YES; CODE_SIGN_ENTITLEMENTS = "WXR Splitter/WXR Splitter.entitlements"; - CODE_SIGN_IDENTITY = "3rd Party Mac Developer Application"; COMBINE_HIDPI_IMAGES = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "WXR Splitter/WXR Splitter-Prefix.pch"; INFOPLIST_FILE = "WXR Splitter/WXR Splitter-Info.plist"; - MACOSX_DEPLOYMENT_TARGET = 10.6; + MACOSX_DEPLOYMENT_TARGET = 10.7; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; WRAPPER_EXTENSION = app; diff --git a/WXR Splitter.xcodeproj/project.xcworkspace/xcuserdata/sharma.xcuserdatad/UserInterfaceState.xcuserstate b/WXR Splitter.xcodeproj/project.xcworkspace/xcuserdata/sharma.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index 3ab8611..0000000 Binary files a/WXR Splitter.xcodeproj/project.xcworkspace/xcuserdata/sharma.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ diff --git a/WXR Splitter.xcodeproj/xcuserdata/sharma.xcuserdatad/xcschemes/WXR Splitter.xcscheme b/WXR Splitter.xcodeproj/xcuserdata/sharma.xcuserdatad/xcschemes/WXR Splitter.xcscheme deleted file mode 100644 index 999d108..0000000 --- a/WXR Splitter.xcodeproj/xcuserdata/sharma.xcuserdatad/xcschemes/WXR Splitter.xcscheme +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/WXR Splitter.xcodeproj/xcuserdata/sharma.xcuserdatad/xcschemes/xcschememanagement.plist b/WXR Splitter.xcodeproj/xcuserdata/sharma.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index 74022b4..0000000 --- a/WXR Splitter.xcodeproj/xcuserdata/sharma.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - SchemeUserState - - WXR Splitter.xcscheme - - orderHint - 0 - - - SuppressBuildableAutocreation - - BAAF49A415E9DF1500718A8B - - primary - - - - - diff --git a/WXR Splitter.zip b/WXR Splitter.zip new file mode 100644 index 0000000..cebd4bc Binary files /dev/null and b/WXR Splitter.zip differ diff --git a/WXR Splitter/AppDelegate.h b/WXR Splitter/AppDelegate.h old mode 100644 new mode 100755 diff --git a/WXR Splitter/AppDelegate.m b/WXR Splitter/AppDelegate.m old mode 100644 new mode 100755 index a8cb921..8f91990 --- a/WXR Splitter/AppDelegate.m +++ b/WXR Splitter/AppDelegate.m @@ -45,7 +45,7 @@ -(BOOL)splitProcess:(NSURL *)inputFile { unsigned long totalCount = [st length]; unsigned long iteration = 0; unsigned long currentCount = 0; - unsigned long maxInc = 1000000 * [sizeField intValue]; + unsigned long maxInc = 1000000 * [sizeField floatValue]; BOOL EndOfFile = NO; NSURL *outputDirection = outputDirec; NSMutableArray * fileArray = [[NSMutableArray alloc] init]; @@ -130,7 +130,7 @@ -(void)endProcess:(NSAlert *)alert returncode:(int)button contextInfo:(void *)co } - (IBAction)startSplitProcess:(id)sender { - if (outputDirec != nil && [sizeField intValue] > 0) { + if (outputDirec != nil && [sizeField floatValue] > 0) { NSOpenPanel * openPanel = [NSOpenPanel openPanel]; [openPanel setCanChooseDirectories:NO]; [openPanel setCanChooseFiles:YES]; diff --git a/WXR Splitter/WXR Splitter-Info.plist b/WXR Splitter/WXR Splitter-Info.plist old mode 100644 new mode 100755 index 3ba67bb..31897be --- a/WXR Splitter/WXR Splitter-Info.plist +++ b/WXR Splitter/WXR Splitter-Info.plist @@ -9,7 +9,7 @@ CFBundleIconFile WXR Splitter Icon CFBundleIdentifier - com.suhastech.${PRODUCT_NAME:rfc1034identifier} + com.ericjorgensen.$(PRODUCT_NAME:rfc1034identifier) CFBundleInfoDictionaryVersion 6.0 CFBundleName @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0 + 1.1 CFBundleSignature ???? CFBundleVersion diff --git a/WXR Splitter/WXR Splitter-Prefix.pch b/WXR Splitter/WXR Splitter-Prefix.pch old mode 100644 new mode 100755 diff --git a/WXR Splitter/WXR Splitter.entitlements b/WXR Splitter/WXR Splitter.entitlements old mode 100644 new mode 100755 diff --git a/WXR Splitter/en.lproj/Credits.rtf b/WXR Splitter/en.lproj/Credits.rtf old mode 100644 new mode 100755 diff --git a/WXR Splitter/en.lproj/InfoPlist.strings b/WXR Splitter/en.lproj/InfoPlist.strings old mode 100644 new mode 100755 diff --git a/WXR Splitter/en.lproj/MainMenu.xib b/WXR Splitter/en.lproj/MainMenu.xib old mode 100644 new mode 100755 diff --git a/WXR Splitter/main.m b/WXR Splitter/main.m old mode 100644 new mode 100755