Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow File Increments of Less Than 1Mb #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
The zip file in the repository contains the binary.
6 changes: 2 additions & 4 deletions WXR Splitter.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Binary file not shown.

This file was deleted.

This file was deleted.

Binary file added WXR Splitter.zip
Binary file not shown.
Empty file modified WXR Splitter/AppDelegate.h
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions WXR Splitter/AppDelegate.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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];
Expand Down
4 changes: 2 additions & 2 deletions WXR Splitter/WXR Splitter-Info.plist
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
<key>CFBundleIconFile</key>
<string>WXR Splitter Icon</string>
<key>CFBundleIdentifier</key>
<string>com.suhastech.${PRODUCT_NAME:rfc1034identifier}</string>
<string>com.ericjorgensen.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
Empty file modified WXR Splitter/WXR Splitter-Prefix.pch
100644 → 100755
Empty file.
Empty file modified WXR Splitter/WXR Splitter.entitlements
100644 → 100755
Empty file.
Empty file modified WXR Splitter/en.lproj/Credits.rtf
100644 → 100755
Empty file.
Empty file modified WXR Splitter/en.lproj/InfoPlist.strings
100644 → 100755
Empty file.
Empty file modified WXR Splitter/en.lproj/MainMenu.xib
100644 → 100755
Empty file.
Empty file modified WXR Splitter/main.m
100644 → 100755
Empty file.