Skip to content

Commit

Permalink
Migrate plugins and frameworks.
Browse files Browse the repository at this point in the history
  • Loading branch information
emsquared committed Jun 24, 2012
1 parent c045a1b commit 7c91ae7
Show file tree
Hide file tree
Showing 13 changed files with 79 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,14 @@
DA8A8084085549EE00F24BB3 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
SDKROOT = macosx;
};
name = Debug;
};
DA8A8085085549EE00F24BB3 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
SDKROOT = macosx;
};
name = Release;
};
Expand All @@ -255,6 +257,7 @@
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = NO;
INFOPLIST_FILE = Resources/Info.plist;
INSTALL_PATH = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_CFLAGS = (
"-Xclang",
"-fobjc-runtime-has-weak",
Expand Down Expand Up @@ -286,6 +289,7 @@
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = NO;
INFOPLIST_FILE = Resources/Info.plist;
INSTALL_PATH = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_CFLAGS = (
"-Xclang",
"-fobjc-runtime-has-weak",
Expand Down
18 changes: 9 additions & 9 deletions Frameworks/Auto Hyperlinks/Source/Source/AHHyperlinkScanner.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ + (void)initialize
puncSet = [NSCharacterSet characterSetWithBitmapRepresentation:[mutablePuncSet bitmapRepresentation]];
endSet = [NSCharacterSet characterSetWithCharactersInString:@"\"',:;>)]}.?!@"];
hostnameComponentSeparatorSet = [NSCharacterSet characterSetWithCharactersInString:@"./"];
enclosureStartArray = [NSArray arrayWithObjects:@"(",@"[",@"{",nil];
enclosureStartArray = @[@"(",@"[",@"{"];
enclosureSet = [NSCharacterSet characterSetWithCharactersInString:@"()[]{}"];
enclosureStopArray = [NSArray arrayWithObjects:@")",@"]",@"}",nil];
encKeys = [NSArray arrayWithObjects:ENC_INDEX_KEY, ENC_CHAR_KEY, nil];
enclosureStopArray = @[@")",@"]",@"}"];
encKeys = @[ENC_INDEX_KEY, ENC_CHAR_KEY];
}
}

Expand All @@ -121,7 +121,7 @@ - (NSArray *)matchesForString:(NSString *)inString
m_strictChecking = NO;
m_scanString = inString;
m_scanStringLength = [m_scanString length];
m_urlSchemes = [NSDictionary dictionaryWithObjectsAndKeys:@"ftp://", @"ftp", nil];
m_urlSchemes = @{@"ftp": @"ftp://"};

return [self _allMatches];
}
Expand All @@ -131,7 +131,7 @@ - (NSArray *)strictMatchesForString:(NSString *)inString
m_strictChecking = YES;
m_scanString = inString;
m_scanStringLength = [m_scanString length];
m_urlSchemes = [NSDictionary dictionaryWithObjectsAndKeys:@"ftp://", @"ftp", nil];
m_urlSchemes = @{@"ftp": @"ftp://"};

return [self _allMatches];
}
Expand Down Expand Up @@ -213,7 +213,7 @@ - (NSString *)nextURI
unsigned long encIdx = [enclosureStartArray indexOfObject:[m_scanString substringWithRange:NSMakeRange(scannedRange.location, 1)]];

if (encIdx != NSNotFound) {
NSRange encRange = [m_scanString rangeOfString:[enclosureStopArray objectAtIndex:encIdx] options:NSBackwardsSearch range:scannedRange];
NSRange encRange = [m_scanString rangeOfString:enclosureStopArray[encIdx] options:NSBackwardsSearch range:scannedRange];

scannedRange.location++;

Expand Down Expand Up @@ -333,7 +333,7 @@ - (NSRange)_longestBalancedEnclosureInRange:(NSRange)inRange
matchChar = [m_scanString substringWithRange:NSMakeRange(encScanLocation, 1)];

if ([enclosureStartArray containsObject:matchChar]) {
encDict = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:[NSNumber numberWithUnsignedLong:encScanLocation], matchChar, nil]
encDict = [NSDictionary dictionaryWithObjects:@[@(encScanLocation), matchChar]
forKeys:encKeys];

if (enclosureStack == nil) {
Expand All @@ -345,8 +345,8 @@ - (NSRange)_longestBalancedEnclosureInRange:(NSRange)inRange
NSEnumerator *encEnumerator = [enclosureStack objectEnumerator];

while ((encDict = [encEnumerator nextObject])) {
unsigned long encTagIndex = [[encDict objectForKey:ENC_INDEX_KEY] unsignedLongValue];
unsigned long encStartIndex = [enclosureStartArray indexOfObjectIdenticalTo:[encDict objectForKey:ENC_CHAR_KEY]];
unsigned long encTagIndex = [encDict[ENC_INDEX_KEY] unsignedLongValue];
unsigned long encStartIndex = [enclosureStartArray indexOfObjectIdenticalTo:encDict[ENC_CHAR_KEY]];

if ([enclosureStopArray indexOfObjectIdenticalTo:matchChar] == encStartIndex) {
NSRange encRange = NSMakeRange(encTagIndex, (encScanLocation - encTagIndex + 1));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@
"-Xclang",
"-fobjc-runtime-has-weak",
);
SDKROOT = macosx;
};
name = Debug;
};
Expand All @@ -284,6 +285,7 @@
"-Xclang",
"-fobjc-runtime-has-weak",
);
SDKROOT = macosx;
};
name = Release;
};
Expand All @@ -306,6 +308,7 @@
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = NO;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.6;
PRODUCT_NAME = BlowfishEncryption;
PROVISIONING_PROFILE = "";
VERSION_INFO_BUILDER = "${USER}";
Expand Down Expand Up @@ -333,6 +336,7 @@
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = NO;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.6;
PRODUCT_NAME = BlowfishEncryption;
PROVISIONING_PROFILE = "";
VERSION_INFO_BUILDER = "Codeux Software";
Expand Down
2 changes: 1 addition & 1 deletion Frameworks/Blowfish Encryption/Source/Classes/DH1080.mm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ - (NSString *)generatePublicKey
if (keyExchanger->generate()) {
keyExchanger->get_public_key(publicKey);

NSString *_publicKey = [NSString stringWithUTF8String:publicKey.c_str()];
NSString *_publicKey = @(publicKey.c_str());

if ([_publicKey length] >= 1) {
return _publicKey;
Expand Down
8 changes: 4 additions & 4 deletions Main Project (Textual).xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@
/* Begin PBXCopyFilesBuildPhase section */
4C52AED515811C2000940619 /* Copy Extensions */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 8;
buildActionMask = 12;
dstPath = Extensions;
dstSubfolderSpec = 7;
files = (
Expand All @@ -437,7 +437,7 @@
4C88DBB015811D3A002EC37B /* SystemProfiler.bundle in Copy Extensions */,
);
name = "Copy Extensions";
runOnlyForDeploymentPostprocessing = 1;
runOnlyForDeploymentPostprocessing = 0;
};
4CCF2F9815804BB9006FFE21 /* Copy JavaScript Files */ = {
isa = PBXCopyFilesBuildPhase;
Expand Down Expand Up @@ -2002,15 +2002,15 @@
};
4C01BA101581104D007E2DAF /* Build Extensions */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 8;
buildActionMask = 12;
files = (
);
inputPaths = (
);
name = "Build Extensions";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 1;
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\ncd \"$PROJECT_DIR/Resources/Plugins/Blowfish Key Control\"\nxcodebuild -alltargets -configuration \"$CONFIGURATION\" NATIVE_ARCH=\"$NATIVE_ARCH\" FRAMEWORK_SEARCH_PATHS=\"$PROJECT_DIR/Frameworks/**\" HEADER_SEARCH_PATHS=\"$PROJECT_DIR/Classes/Headers/**\" BUNDLE_LOADER=\"$CODESIGNING_FOLDER_PATH/Contents/MacOS/$EXECUTABLE_NAME\" CODE_SIGN_IDENTITY=\"$CODE_SIGN_IDENTITY\" SHARED_PRECOMPS_DIR=/tmp/com.codeux.irc.textual/SharedPCH\n\ncd \"$PROJECT_DIR/Resources/Plugins/Brag Spam\"\nxcodebuild -alltargets -configuration \"$CONFIGURATION\" NATIVE_ARCH=\"$NATIVE_ARCH\" FRAMEWORK_SEARCH_PATHS=\"$PROJECT_DIR/Frameworks/**\" HEADER_SEARCH_PATHS=\"$PROJECT_DIR/Classes/Headers/**\" BUNDLE_LOADER=\"$CODESIGNING_FOLDER_PATH/Contents/MacOS/$EXECUTABLE_NAME\" CODE_SIGN_IDENTITY=\"$CODE_SIGN_IDENTITY\" SHARED_PRECOMPS_DIR=/tmp/com.codeux.irc.textual/SharedPCH\n\ncd \"$PROJECT_DIR/Resources/Plugins/System Profiler\"\nxcodebuild -alltargets -configuration \"$CONFIGURATION\" NATIVE_ARCH=\"$NATIVE_ARCH\" FRAMEWORK_SEARCH_PATHS=\"$PROJECT_DIR/Frameworks/**\" HEADER_SEARCH_PATHS=\"$PROJECT_DIR/Classes/Headers/**\" BUNDLE_LOADER=\"$CODESIGNING_FOLDER_PATH/Contents/MacOS/$EXECUTABLE_NAME\" CODE_SIGN_IDENTITY=\"$CODE_SIGN_IDENTITY\" SHARED_PRECOMPS_DIR=/tmp/com.codeux.irc.textual/SharedPCH\n";
showEnvVarsInLog = 0;
Expand Down
4 changes: 2 additions & 2 deletions Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>TXBundleBuildNumber</key>
<string>11423</string>
<string>11430</string>
<key>TXBundleBuildReference</key>
<string>2.1.1-180-ga9dcfad-debug,llvm4.0</string>
<string>2.1.1-181-gc045a1b-appstore,llvm4.0</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -171,20 +171,24 @@
1DEB911B08733D790010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.6.8;
OTHER_CFLAGS = (
"-Xclang",
"-fobjc-runtime-has-weak",
);
SDKROOT = macosx;
};
name = Debug;
};
1DEB911C08733D790010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.6.8;
OTHER_CFLAGS = (
"-Xclang",
"-fobjc-runtime-has-weak",
);
SDKROOT = macosx;
};
name = Release;
};
Expand Down Expand Up @@ -282,10 +286,12 @@
4CAA3B2312E0EC3800FB83EB /* App Store Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.6.8;
OTHER_CFLAGS = (
"-Xclang",
"-fobjc-runtime-has-weak",
);
SDKROOT = macosx;
};
name = "App Store Release";
};
Expand Down Expand Up @@ -322,10 +328,12 @@
4CAA3B2512E0EC3800FB83EB /* Release (Trial) */ = {
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.6.8;
OTHER_CFLAGS = (
"-Xclang",
"-fobjc-runtime-has-weak",
);
SDKROOT = macosx;
};
name = "Release (Trial)";
};
Expand Down Expand Up @@ -362,10 +370,12 @@
4CCB84A01501C4A30053A181 /* Release + No Sandbox */ = {
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.6.8;
OTHER_CFLAGS = (
"-Xclang",
"-fobjc-runtime-has-weak",
);
SDKROOT = macosx;
};
name = "Release + No Sandbox";
};
Expand Down
12 changes: 6 additions & 6 deletions Resources/Plugins/Blowfish Key Control/TPI_BlowfishCommands.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ - (void)messageSentByUser:(IRCClient *)client

- (NSArray *)pluginSupportsUserInputCommands
{
return [NSArray arrayWithObjects:@"setkey", @"delkey", @"key", @"keyx", nil];
return @[@"setkey", @"delkey", @"key", @"keyx"];
}

- (NSDictionary *)pluginOutputDisplayRules
Expand All @@ -71,13 +71,13 @@ - (NSDictionary *)pluginOutputDisplayRules

NSMutableDictionary *rules = [NSMutableDictionary dictionary];

NSArray *privmsgRule_1 = [NSArray arrayWithObjects:[@"^" stringByAppendingString:TXExchangeRequestPrefix],
NSNumberWithBOOL(YES), NSNumberWithBOOL(YES), NSNumberWithBOOL(YES), nil];
NSArray *privmsgRule_1 = @[[@"^" stringByAppendingString:TXExchangeRequestPrefix],
NSNumberWithBOOL(YES), NSNumberWithBOOL(YES), NSNumberWithBOOL(YES)];

NSArray *privmsgRule_2 = [NSArray arrayWithObjects:[@"^" stringByAppendingString:TXExchangeResponsePrefix],
NSNumberWithBOOL(YES), NSNumberWithBOOL(YES), NSNumberWithBOOL(YES), nil];
NSArray *privmsgRule_2 = @[[@"^" stringByAppendingString:TXExchangeResponsePrefix],
NSNumberWithBOOL(YES), NSNumberWithBOOL(YES), NSNumberWithBOOL(YES)];

[rules setObject:[NSArray arrayWithObjects:privmsgRule_1, privmsgRule_2, nil] forKey:IRCCommandFromLineType(TVCLogLineNoticeType)];
rules[IRCCommandFromLineType(TVCLogLineNoticeType)] = @[privmsgRule_1, privmsgRule_2];

return rules;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,20 +163,24 @@
1DEB911B08733D790010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.6.8;
OTHER_CFLAGS = (
"-Xclang",
"-fobjc-runtime-has-weak",
);
SDKROOT = macosx;
};
name = Debug;
};
1DEB911C08733D790010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.6.8;
OTHER_CFLAGS = (
"-Xclang",
"-fobjc-runtime-has-weak",
);
SDKROOT = macosx;
};
name = Release;
};
Expand Down Expand Up @@ -265,10 +269,12 @@
4CAA3B4C12E0EC7C00FB83EB /* App Store Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.6.8;
OTHER_CFLAGS = (
"-Xclang",
"-fobjc-runtime-has-weak",
);
SDKROOT = macosx;
};
name = "App Store Release";
};
Expand Down Expand Up @@ -302,10 +308,12 @@
4CAA3B4E12E0EC7C00FB83EB /* Release (Trial) */ = {
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.6.8;
OTHER_CFLAGS = (
"-Xclang",
"-fobjc-runtime-has-weak",
);
SDKROOT = macosx;
};
name = "Release (Trial)";
};
Expand Down Expand Up @@ -339,10 +347,12 @@
4CCB84A31501C5690053A181 /* Release + No Sandbox */ = {
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.6.8;
OTHER_CFLAGS = (
"-Xclang",
"-fobjc-runtime-has-weak",
);
SDKROOT = macosx;
};
name = "Release + No Sandbox";
};
Expand Down
6 changes: 3 additions & 3 deletions Resources/Plugins/Brag Spam/TPIBragSpam.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ - (void)messageSentByUser:(IRCClient*)client
if (NSObjectIsEmpty(chanlist)) {
[result appendString:TXTFLS(@"BragspamPluginChannelResultNone", client.config.network)];
} else {
cc = [chanlist objectAtIndex:0];
cc = chanlist[0];

if (chanlist.count == 1) {
[result appendString:TXTFLS(@"BragspamPluginChannelResultSingle", cc.name, client.config.network)];
} else if (chanlist.count == 2) {
IRCChannel *ccsecond = [chanlist objectAtIndex:1];
IRCChannel *ccsecond = chanlist[1];

[result appendString:TXTFLS(@"BragspamPluginChannelResultDouble", cc.name, ccsecond.name, client.config.network)];
} else {
Expand All @@ -127,7 +127,7 @@ - (void)messageSentByUser:(IRCClient*)client

- (NSArray*)pluginSupportsUserInputCommands
{
return [NSArray arrayWithObjects:@"brag", @"cbrag", nil];
return @[@"brag", @"cbrag"];
}

@end
Loading

0 comments on commit 7c91ae7

Please sign in to comment.