mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-23 06:55:52 +00:00
Merge branch 'master' of git://github.com/cappuccino/cappuccino
This commit is contained in:
commit
253d7497ef
10 files changed
+345
-69
No files matched your search
+2
-2
@@ -296,7 +296,7 @@ Set the behavior of the CPPopover. It can be:
|
||||
/*! @ignore */
|
||||
- (BOOL)attachedWindowShouldClose:(_CPAttachedWindow)anAttachedWindow
|
||||
{
|
||||
[self close];
|
||||
[self performClose:self];
|
||||
|
||||
// We return NO, because we want the CPPopover to determine
|
||||
// if the attached window can be closed and to give us a chance
|
||||
@@ -375,4 +375,4 @@ var CPPopoverNeedsNewAttachedWindowKey = @"CPPopoverNeedsNewAttachedWindowKey",
|
||||
[aCoder encodeInt:_behavior forKey:CPPopoverBehaviorKey];
|
||||
}
|
||||
|
||||
@end
|
||||
@end
|
||||
@@ -652,7 +652,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
|
||||
var acceptInvalidValue = NO;
|
||||
|
||||
if ([_delegate respondsToSelector:@selector(control:didFailToFormatString:errorDescription:)])
|
||||
acceptInvalidValue = [_delegate control:self didFailToFormatString:[self _inputElement] errorDescription:error];
|
||||
acceptInvalidValue = [_delegate control:self didFailToFormatString:aValue errorDescription:error];
|
||||
|
||||
if (acceptInvalidValue === NO)
|
||||
return NO;
|
||||
|
||||
@@ -245,14 +245,14 @@ function CGPointFromString(aString)
|
||||
{
|
||||
var comma = aString.indexOf(',');
|
||||
|
||||
return { x:parseInt(aString.substr(1, comma - 1)), y:parseInt(aString.substring(comma + 1, aString.length)) };
|
||||
return { x:parseFloat(aString.substr(1, comma - 1)), y:parseFloat(aString.substring(comma + 1, aString.length)) };
|
||||
}
|
||||
|
||||
function CGSizeFromString(aString)
|
||||
{
|
||||
var comma = aString.indexOf(',');
|
||||
|
||||
return { width:parseInt(aString.substr(1, comma - 1)), height:parseInt(aString.substring(comma + 1, aString.length)) };
|
||||
return { width:parseFloat(aString.substr(1, comma - 1)), height:parseFloat(aString.substring(comma + 1, aString.length)) };
|
||||
}
|
||||
|
||||
function CGRectFromString(aString)
|
||||
|
||||
+130
-18
@@ -66,9 +66,9 @@ CPNumericSearch = 64;
|
||||
*/
|
||||
CPDiacriticInsensitiveSearch = 128;
|
||||
|
||||
var CPStringUIDs = new CFMutableDictionary();
|
||||
var CPStringUIDs = new CFMutableDictionary(),
|
||||
|
||||
var CPStringRegexSpecialCharacters = [
|
||||
CPStringRegexSpecialCharacters = [
|
||||
'/', '.', '*', '+', '?', '|', '$', '^',
|
||||
'(', ')', '[', ']', '{', '}', '\\'
|
||||
],
|
||||
@@ -624,9 +624,9 @@ var CPStringRegexSpecialCharacters = [
|
||||
rhs = [rhs lowercaseString];
|
||||
}
|
||||
|
||||
for (; len < min; len++ )
|
||||
for (; len < min; len++)
|
||||
{
|
||||
if ( [lhs characterAtIndex:len] !== [rhs characterAtIndex:len] )
|
||||
if ([lhs characterAtIndex:len] !== [rhs characterAtIndex:len])
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -706,14 +706,77 @@ var CPStringRegexSpecialCharacters = [
|
||||
Returns an the path components of this string. This
|
||||
method assumes that the string's content is a '/'
|
||||
separated file system path.
|
||||
Multiple '/' separators between components are truncated to a single one.
|
||||
*/
|
||||
- (CPArray)pathComponents
|
||||
{
|
||||
if (length === 0)
|
||||
return [""];
|
||||
|
||||
if (self === "/")
|
||||
return ["/"];
|
||||
|
||||
var result = split('/');
|
||||
|
||||
if (result[0] === "")
|
||||
result[0] = "/";
|
||||
if (result[result.length - 1] === "")
|
||||
result.pop();
|
||||
|
||||
var index = result.length - 1;
|
||||
|
||||
if (index > 0)
|
||||
{
|
||||
if (result[index] === "")
|
||||
result[index] = "/";
|
||||
|
||||
while (index--)
|
||||
{
|
||||
while (result[index] === "")
|
||||
result.splice(index--, 1);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns a string built from the strings in a given array by
|
||||
concatenating them with a path separator between each pair.
|
||||
This method assumes that the string's content is a '/'
|
||||
separated file system path.
|
||||
Multiple '/' separators between components are truncated to a single one.
|
||||
*/
|
||||
+ (CPString)pathWithComponents:(CPArray)components
|
||||
{
|
||||
var size = components.length,
|
||||
result = "",
|
||||
i = -1,
|
||||
firstRound = true,
|
||||
firstIsSlash = false;
|
||||
|
||||
while (++i < size)
|
||||
{
|
||||
var component = components[i],
|
||||
lenMinusOne = component.length - 1;
|
||||
|
||||
if (lenMinusOne >= 0 && (component !== "/" || firstRound)) // Skip "" and "/" (not first time)
|
||||
{
|
||||
if (lenMinusOne > 0 && component.indexOf("/",lenMinusOne) === lenMinusOne) // Ends with "/"
|
||||
component = component.substring(0, lenMinusOne);
|
||||
|
||||
if (firstRound)
|
||||
{
|
||||
if (component === "/")
|
||||
firstIsSlash = true;
|
||||
firstRound = false;
|
||||
}
|
||||
else if (!firstIsSlash)
|
||||
result += "/";
|
||||
else
|
||||
firstIsSlash = false;
|
||||
|
||||
result += component;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -737,41 +800,87 @@ var CPStringRegexSpecialCharacters = [
|
||||
*/
|
||||
- (CPString)lastPathComponent
|
||||
{
|
||||
var components = [self pathComponents];
|
||||
return components[components.length - 1];
|
||||
var components = [self pathComponents],
|
||||
lastIndex = components.length - 1,
|
||||
lastComponent = components[lastIndex];
|
||||
|
||||
return lastIndex > 0 && lastComponent === "/" ? components[lastIndex - 1] : lastComponent;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns a new string made by appending to the receiver a given string
|
||||
This method assumes that the string's content is a '/'
|
||||
separated file system path.
|
||||
Multiple '/' separators between components are truncated to a single one.
|
||||
*/
|
||||
- (CPString)stringByAppendingPathComponent:(CPString)aString
|
||||
{
|
||||
var components = [self pathComponents],
|
||||
addComponents = aString && aString !== "/" ? [aString pathComponents] : [];
|
||||
|
||||
return [CPString pathWithComponents:components.concat(addComponents)];
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns a new string made by appending to the receiver an extension separator followed by a given extension
|
||||
This method assumes that the extension separator is a '.'
|
||||
Extension can't include a '/' character, receiver can't be empty or be just a '/'. If so the
|
||||
result will be the receiver itself.
|
||||
Multiple '/' separators between components are truncated to a single one.
|
||||
*/
|
||||
- (CPString)stringByAppendingPathExtension:(CPString)ext
|
||||
{
|
||||
if (ext.indexOf('/') >= 0 || length === 0 || self === "/") // Can't handle these
|
||||
return self;
|
||||
|
||||
var components = [self pathComponents],
|
||||
last = components.length - 1;
|
||||
|
||||
if (last > 0 && components[last] === "/")
|
||||
components.splice(last--, 1);
|
||||
|
||||
components[last] = components[last] + "." + ext;
|
||||
|
||||
return [CPString pathWithComponents:components];
|
||||
}
|
||||
|
||||
/*!
|
||||
Deletes the last path component of a string.
|
||||
This method assumes that the string's content is a '/'
|
||||
separated file system path.
|
||||
Multiple '/' separators between components are truncated to a single one.
|
||||
*/
|
||||
- (CPString)stringByDeletingLastPathComponent
|
||||
{
|
||||
var path = self,
|
||||
start = length - 1;
|
||||
if (length === 0)
|
||||
return "";
|
||||
else if (self === "/")
|
||||
return "/";
|
||||
|
||||
while (path.charAt(start) === '/')
|
||||
start--;
|
||||
var components = [self pathComponents],
|
||||
last = components.length - 1;
|
||||
|
||||
path = path.substr(0, path.lastIndexOf('/', start));
|
||||
if (components[last] === "/")
|
||||
last--;
|
||||
|
||||
if (path === "" && charAt(0) === '/')
|
||||
return '/';
|
||||
components.splice(last, components.length - last);
|
||||
|
||||
return path;
|
||||
return [CPString pathWithComponents:components];
|
||||
}
|
||||
|
||||
/*!
|
||||
Deletes the extension of a string.
|
||||
This method assumes that the string's content is a '/'
|
||||
separated file system path.
|
||||
Multiple '/' separators between components are truncated to a single one.
|
||||
*/
|
||||
- (CPString)stringByDeletingPathExtension
|
||||
{
|
||||
var extension = [self pathExtension];
|
||||
|
||||
if (extension === "")
|
||||
return self;
|
||||
|
||||
if (lastIndexOf('.') < 1)
|
||||
else if (lastIndexOf('.') < 1)
|
||||
return self;
|
||||
|
||||
return substr(0, [self length] - (extension.length + 1));
|
||||
@@ -785,6 +894,7 @@ var CPStringRegexSpecialCharacters = [
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@implementation CPString (JSON)
|
||||
|
||||
/*!
|
||||
@@ -824,12 +934,14 @@ var CPStringRegexSpecialCharacters = [
|
||||
|
||||
@end
|
||||
|
||||
|
||||
var diacritics = [[192,198],[224,230],[231,231],[232,235],[236,239],[242,246],[249,252]], // Basic Latin ; Latin-1 Supplement.
|
||||
normalized = [65,97,99,101,105,111,117];
|
||||
|
||||
String.prototype.stripDiacritics = function()
|
||||
{
|
||||
var output = "";
|
||||
|
||||
for (var indexSource = 0; indexSource < this.length; indexSource++)
|
||||
{
|
||||
var code = this.charCodeAt(indexSource);
|
||||
|
||||
@@ -225,6 +225,52 @@
|
||||
[self assert:"ffffff" equals:[CPString stringWithHash:16777215]];
|
||||
}
|
||||
|
||||
- (void)testStringByAppendingPathComponent
|
||||
{
|
||||
var testStrings = [
|
||||
["/tmp/", "scratch.tiff", "/tmp/scratch.tiff"],
|
||||
["/tmp///", "scratch.tiff", "/tmp/scratch.tiff"],
|
||||
["/tmp///", "///scratch.tiff", "/tmp/scratch.tiff"],
|
||||
["/tmp", "scratch.tiff", "/tmp/scratch.tiff"],
|
||||
["/tmp///", "scratch.tiff", "/tmp/scratch.tiff"],
|
||||
["/tmp///", "///scratch.tiff", "/tmp/scratch.tiff"],
|
||||
["/", "scratch.tiff", "/scratch.tiff"],
|
||||
["", "scratch.tiff", "scratch.tiff"],
|
||||
["", "", ""],
|
||||
["", "/", ""],
|
||||
["/", "/", "/"],
|
||||
["/tmp", nil, "/tmp"],
|
||||
["/tmp", "/", "/tmp"],
|
||||
["/tmp/", "", "/tmp"]
|
||||
];
|
||||
|
||||
for (var i = 0; i < testStrings.length; i++)
|
||||
{
|
||||
var result = [testStrings[i][0] stringByAppendingPathComponent:testStrings[i][1]];
|
||||
|
||||
[self assertTrue:result === testStrings[i][2] message:"Value <" + testStrings[i][0] + "> Adding <" + testStrings[i][1] + "> Expected <" + testStrings[i][2] + "> was <" + result + ">"];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)testStringByAppendingPathExtension
|
||||
{
|
||||
var testStrings = [
|
||||
["/tmp/scratch.old", "tiff", "/tmp/scratch.old.tiff"],
|
||||
["/tmp/scratch.", "tiff", "/tmp/scratch..tiff"],
|
||||
["/tmp///", "tiff", "/tmp.tiff"],
|
||||
["scratch", "tiff", "scratch.tiff"],
|
||||
["/", "tiff", "/"],
|
||||
["", "tiff", ""]
|
||||
];
|
||||
|
||||
for (var i = 0; i < testStrings.length; i++)
|
||||
{
|
||||
var result = [testStrings[i][0] stringByAppendingPathExtension:testStrings[i][1]];
|
||||
|
||||
[self assertTrue:result === testStrings[i][2] message:"Value <" + testStrings[i][0] + "> Adding <" + testStrings[i][1] + "> Expected <" + testStrings[i][2] + "> was <" + result + ">"];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)testStringByDeletingLastPathComponent
|
||||
{
|
||||
var testStrings = [
|
||||
@@ -235,22 +281,58 @@
|
||||
["/", "/"],
|
||||
["scratch.tiff", ""],
|
||||
["a/b/c/d//////", "a/b/c"],
|
||||
["a/b/////////c/d//////", "a/b/c"],
|
||||
["a/b/././././c/d/./././", "a/b/././././c/d/./."],
|
||||
[@"a/b/././././d////", "a/b/./././."],
|
||||
[@"~/a", "~"],
|
||||
[@"~/a/", "~"],
|
||||
[@"../../", ".."]
|
||||
[@"../../", ".."],
|
||||
[@"", ""]
|
||||
];
|
||||
|
||||
for (var i = 0; i < testStrings.length; i++)
|
||||
[self assert:[testStrings[i][0] stringByDeletingLastPathComponent] equals:testStrings[i][1]];
|
||||
{
|
||||
var result = [testStrings[i][0] stringByDeletingLastPathComponent];
|
||||
|
||||
[self assertTrue:result === testStrings[i][1] message:"Value <" + testStrings[i][0] + "> Expected <" + testStrings[i][1] + "> was <" + result + ">"];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)testPathWithComponents
|
||||
{
|
||||
var testStrings = [
|
||||
[["tmp", "scratch"], "tmp/scratch"],
|
||||
[["/", "tmp", "scratch"], "/tmp/scratch"],
|
||||
[["/", "tmp", "/", "scratch"], "/tmp/scratch"],
|
||||
[["/", "tmp", "scratch", "/"], "/tmp/scratch"],
|
||||
[["/", "tmp", "scratch", ""], "/tmp/scratch"],
|
||||
[["", "/tmp", "scratch", ""], "/tmp/scratch"],
|
||||
[["", "tmp", "scratch", ""], "tmp/scratch"],
|
||||
[["/"], "/"],
|
||||
[["/", "/", "/"], "/"],
|
||||
[["", "", ""], ""],
|
||||
[[""], ""]
|
||||
];
|
||||
|
||||
for (var i = 0; i < testStrings.length; i++)
|
||||
{
|
||||
var result = [CPString pathWithComponents:testStrings[i][0]];
|
||||
|
||||
[self assertTrue:result === testStrings[i][1] message:"Value <" + testStrings[i][0] + "> Expected [" + testStrings[i][1] + "] was [" + result + "]"];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)testPathComponents
|
||||
{
|
||||
var testStrings = [
|
||||
["tmp/scratch", ["tmp", "scratch"]],
|
||||
["/tmp/scratch", ["/", "tmp", "scratch"]]
|
||||
["/tmp/scratch", ["/", "tmp", "scratch"]],
|
||||
["/tmp/scratch/", ["/", "tmp", "scratch", "/"]],
|
||||
["/tmp/", ["/", "tmp", "/"]],
|
||||
["/////tmp/////scratch///", ["/", "tmp", "scratch", "/"]],
|
||||
["scratch.tiff", ["scratch.tiff"]],
|
||||
["/", ["/"]],
|
||||
["", [""]]
|
||||
];
|
||||
|
||||
for (var i = 0; i < testStrings.length; i++)
|
||||
@@ -268,7 +350,8 @@
|
||||
["/tmp/scratch", "scratch"],
|
||||
["/tmp/", "tmp"],
|
||||
["scratch", "scratch"],
|
||||
["/", "/"]
|
||||
["/", "/"],
|
||||
["", ""]
|
||||
];
|
||||
|
||||
for (var i = 0; i < testStrings.length; i++)
|
||||
|
||||
@@ -149,7 +149,7 @@ var randomFromTo = function(from, to)
|
||||
else
|
||||
result = nil;
|
||||
|
||||
console.log("stringForObjectValue:%s ==> %s", [anObject description], result);
|
||||
CPLog.info("stringForObjectValue:%s ==> %s", [anObject description], result);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ var randomFromTo = function(from, to)
|
||||
|
||||
result = error === nil;
|
||||
|
||||
console.log("getObjectValue:forString:%s ==> %s", aString, result);
|
||||
CPLog.info("getObjectValue:forString:%s ==> %s", aString, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)open:(id)sender
|
||||
- (@action)open:(id)sender
|
||||
{
|
||||
var edge = [self popoverEdge],
|
||||
appearance;
|
||||
@@ -169,12 +169,12 @@
|
||||
[popoverWindow orderFront:nil];
|
||||
}
|
||||
|
||||
- (IBAction)openWindowPopover:(id)sender
|
||||
- (@action)openWindowPopover:(id)sender
|
||||
{
|
||||
[windowPopover showRelativeToRect:nil ofView:sender preferredEdge:[self popoverEdge]];
|
||||
}
|
||||
|
||||
- (IBAction)movePopover:(id)sender
|
||||
- (@action)movePopover:(id)sender
|
||||
{
|
||||
if (++lastPreferredEdge > CPMaxYEdge)
|
||||
lastPreferredEdge = CPMinXEdge;
|
||||
@@ -182,6 +182,11 @@
|
||||
[popover showRelativeToRect:CGRectMakeZero() ofView:lastButton preferredEdge:lastPreferredEdge];
|
||||
}
|
||||
|
||||
- (@action)closePopover:(id)sender
|
||||
{
|
||||
[popover close];
|
||||
}
|
||||
|
||||
- (void)initPopover:(CPPopover)aPopover withAppearance:(int)appearance
|
||||
{
|
||||
[aPopover setDelegate:self];
|
||||
|
||||
@@ -1 +1 @@
|
||||
280NPLIST;1.0;D;K;4;$topD;K;18;CPCibObjectDataKeyD;K;6;CP$UIDd;1;2E;E;K;8;$objectsA;S;5;$nullD;K;10;$classnameS;16;_CPCibObjectDataK;8;$classesA;S;16;_CPCibObjectDataS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;1;1E;K;28;_CPCibObjectDataNamesKeysKeyD;K;6;CP$UIDd;1;0E;K;30;_CPCibObjectDataNamesValuesKeyD;K;6;CP$UIDd;1;0E;K;30;_CPCibObjectDataClassesKeysKeyD;K;6;CP$UIDd;1;0E;K;32;_CPCibObjectDataClassesValuesKeyD;K;6;CP$UIDd;1;0E;K;30;_CPCibObjectDataConnectionsKeyD;K;6;CP$UIDd;1;4E;K;28;_CPCibObjectDataFrameworkKeyD;K;6;CP$UIDd;1;0E;K;26;_CPCibObjectDataNextOidKeyD;K;6;CP$UIDd;1;5E;K;30;_CPCibObjectDataObjectsKeysKeyD;K;6;CP$UIDd;1;6E;K;32;_CPCibObjectDataObjectsValuesKeyD;K;6;CP$UIDd;1;7E;K;26;_CPCibObjectDataOidKeysKeyD;K;6;CP$UIDd;1;8E;K;28;_CPCibObjectDataOidValuesKeyD;K;6;CP$UIDd;1;9E;K;28;_CPCibObjectDataFileOwnerKeyD;K;6;CP$UIDd;2;11E;K;33;_CPCibObjectDataVisibleWindowsKeyD;K;6;CP$UIDd;2;13E;E;D;K;10;$classnameS;7;CPArrayK;8;$classesA;S;7;CPArrayS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;1;3E;K;10;CP.objectsA;D;K;6;CP$UIDd;2;15E;D;K;6;CP$UIDd;2;16E;D;K;6;CP$UIDd;2;17E;D;K;6;CP$UIDd;2;18E;D;K;6;CP$UIDd;2;19E;D;K;6;CP$UIDd;2;20E;D;K;6;CP$UIDd;2;21E;D;K;6;CP$UIDd;2;22E;D;K;6;CP$UIDd;2;24E;D;K;6;CP$UIDd;2;25E;D;K;6;CP$UIDd;2;26E;D;K;6;CP$UIDd;2;27E;E;E;D;K;6;$classD;K;6;CP$UIDd;1;3E;K;10;CP.objectsA;E;E;D;K;6;$classD;K;6;CP$UIDd;1;3E;K;10;CP.objectsA;D;K;6;CP$UIDd;2;28E;D;K;6;CP$UIDd;2;29E;D;K;6;CP$UIDd;2;31E;D;K;6;CP$UIDd;2;33E;D;K;6;CP$UIDd;2;35E;D;K;6;CP$UIDd;2;37E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;38E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;40E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;41E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;43E;D;K;6;CP$UIDd;2;45E;D;K;6;CP$UIDd;2;46E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;47E;D;K;6;CP$UIDd;2;48E;D;K;6;CP$UIDd;2;49E;D;K;6;CP$UIDd;2;50E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;51E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;52E;D;K;6;CP$UIDd;1;0E;E;E;D;K;6;$classD;K;6;CP$UIDd;1;3E;K;10;CP.objectsA;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;35E;D;K;6;CP$UIDd;2;37E;D;K;6;CP$UIDd;2;35E;D;K;6;CP$UIDd;2;38E;D;K;6;CP$UIDd;2;35E;D;K;6;CP$UIDd;2;40E;D;K;6;CP$UIDd;2;35E;D;K;6;CP$UIDd;2;41E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;43E;D;K;6;CP$UIDd;2;45E;D;K;6;CP$UIDd;2;46E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;49E;D;K;6;CP$UIDd;2;50E;D;K;6;CP$UIDd;2;49E;D;K;6;CP$UIDd;2;51E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;52E;E;E;D;K;6;$classD;K;6;CP$UIDd;1;3E;K;10;CP.objectsA;E;E;D;K;6;$classD;K;6;CP$UIDd;1;3E;K;10;CP.objectsA;E;E;D;K;10;$classnameS;18;_CPCibCustomObjectK;8;$classesA;S;18;_CPCibCustomObjectS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;2;10E;K;27;_CPCibCustomObjectClassNameD;K;6;CP$UIDd;2;53E;E;D;K;10;$classnameS;5;CPSetK;8;$classesA;S;5;CPSetS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;2;12E;K;15;CPSetObjectsKeyD;K;6;CP$UIDd;2;54E;E;D;K;10;$classnameS;20;CPCibOutletConnectorK;8;$classesA;S;20;CPCibOutletConnectorS;14;CPCibConnectorS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;11E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;29E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;55E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;29E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;33E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;56E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;29E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;43E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;57E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;29E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;48E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;58E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;31E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;35E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;59E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;33E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;31E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;60E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;47E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;49E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;59E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;48E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;47E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;60E;E;D;K;10;$classnameS;21;CPCibControlConnectorK;8;$classesA;S;21;CPCibControlConnectorS;14;CPCibConnectorS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;2;23E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;40E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;33E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;61E;E;D;K;6;$classD;K;6;CP$UIDd;2;23E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;41E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;29E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;62E;E;D;K;6;$classD;K;6;CP$UIDd;2;23E;K;Line truncated
|
||||
280NPLIST;1.0;D;K;4;$topD;K;18;CPCibObjectDataKeyD;K;6;CP$UIDd;1;2E;E;K;8;$objectsA;S;5;$nullD;K;10;$classnameS;16;_CPCibObjectDataK;8;$classesA;S;16;_CPCibObjectDataS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;1;1E;K;28;_CPCibObjectDataNamesKeysKeyD;K;6;CP$UIDd;1;0E;K;30;_CPCibObjectDataNamesValuesKeyD;K;6;CP$UIDd;1;0E;K;30;_CPCibObjectDataClassesKeysKeyD;K;6;CP$UIDd;1;0E;K;32;_CPCibObjectDataClassesValuesKeyD;K;6;CP$UIDd;1;0E;K;30;_CPCibObjectDataConnectionsKeyD;K;6;CP$UIDd;1;4E;K;28;_CPCibObjectDataFrameworkKeyD;K;6;CP$UIDd;1;0E;K;26;_CPCibObjectDataNextOidKeyD;K;6;CP$UIDd;1;5E;K;30;_CPCibObjectDataObjectsKeysKeyD;K;6;CP$UIDd;1;6E;K;32;_CPCibObjectDataObjectsValuesKeyD;K;6;CP$UIDd;1;7E;K;26;_CPCibObjectDataOidKeysKeyD;K;6;CP$UIDd;1;8E;K;28;_CPCibObjectDataOidValuesKeyD;K;6;CP$UIDd;1;9E;K;28;_CPCibObjectDataFileOwnerKeyD;K;6;CP$UIDd;2;11E;K;33;_CPCibObjectDataVisibleWindowsKeyD;K;6;CP$UIDd;2;13E;E;D;K;10;$classnameS;7;CPArrayK;8;$classesA;S;7;CPArrayS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;1;3E;K;10;CP.objectsA;D;K;6;CP$UIDd;2;15E;D;K;6;CP$UIDd;2;16E;D;K;6;CP$UIDd;2;17E;D;K;6;CP$UIDd;2;18E;D;K;6;CP$UIDd;2;19E;D;K;6;CP$UIDd;2;20E;D;K;6;CP$UIDd;2;21E;D;K;6;CP$UIDd;2;22E;D;K;6;CP$UIDd;2;24E;D;K;6;CP$UIDd;2;25E;D;K;6;CP$UIDd;2;26E;D;K;6;CP$UIDd;2;27E;D;K;6;CP$UIDd;2;28E;E;E;D;K;6;$classD;K;6;CP$UIDd;1;3E;K;10;CP.objectsA;E;E;D;K;6;$classD;K;6;CP$UIDd;1;3E;K;10;CP.objectsA;D;K;6;CP$UIDd;2;29E;D;K;6;CP$UIDd;2;30E;D;K;6;CP$UIDd;2;32E;D;K;6;CP$UIDd;2;34E;D;K;6;CP$UIDd;2;36E;D;K;6;CP$UIDd;2;38E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;39E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;41E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;42E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;43E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;45E;D;K;6;CP$UIDd;2;47E;D;K;6;CP$UIDd;2;48E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;49E;D;K;6;CP$UIDd;2;50E;D;K;6;CP$UIDd;2;51E;D;K;6;CP$UIDd;2;52E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;53E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;54E;D;K;6;CP$UIDd;1;0E;E;E;D;K;6;$classD;K;6;CP$UIDd;1;3E;K;10;CP.objectsA;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;36E;D;K;6;CP$UIDd;2;38E;D;K;6;CP$UIDd;2;36E;D;K;6;CP$UIDd;2;39E;D;K;6;CP$UIDd;2;36E;D;K;6;CP$UIDd;2;41E;D;K;6;CP$UIDd;2;36E;D;K;6;CP$UIDd;2;42E;D;K;6;CP$UIDd;2;36E;D;K;6;CP$UIDd;2;43E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;45E;D;K;6;CP$UIDd;2;47E;D;K;6;CP$UIDd;2;48E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;51E;D;K;6;CP$UIDd;2;52E;D;K;6;CP$UIDd;2;51E;D;K;6;CP$UIDd;2;53E;D;K;6;CP$UIDd;2;11E;D;K;6;CP$UIDd;2;54E;E;E;D;K;6;$classD;K;6;CP$UIDd;1;3E;K;10;CP.objectsA;E;E;D;K;6;$classD;K;6;CP$UIDd;1;3E;K;10;CP.objectsA;E;E;D;K;10;$classnameS;18;_CPCibCustomObjectK;8;$classesA;S;18;_CPCibCustomObjectS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;2;10E;K;27;_CPCibCustomObjectClassNameD;K;6;CP$UIDd;2;55E;E;D;K;10;$classnameS;5;CPSetK;8;$classesA;S;5;CPSetS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;2;12E;K;15;CPSetObjectsKeyD;K;6;CP$UIDd;2;56E;E;D;K;10;$classnameS;20;CPCibOutletConnectorK;8;$classesA;S;20;CPCibOutletConnectorS;14;CPCibConnectorS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;11E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;30E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;57E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;30E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;34E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;58E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;30E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;45E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;59E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;30E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;50E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;60E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;32E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;36E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;61E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;34E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;32E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;62E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;49E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;51E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;61E;E;D;K;6;$classD;K;6;CP$UIDd;2;14E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;50E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;49E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;62E;E;D;K;10;$classnameS;21;CPCibControlConnectorK;8;$classesA;S;21;CPCibControlConnectorS;14;CPCibConnectorS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;2;23E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;43E;K;29;_CPCibConnectorDestinationKeyD;K;6;CP$UIDd;2;34E;K;23;_CPCibConnectorLabelKeyD;K;6;CP$UIDd;2;63E;E;D;K;6;$classD;K;6;CP$UIDd;2;23E;K;24;_CPCibConnectorSourceKeyD;K;6;CP$UIDd;2;42E;K;29;_CPCibConnectorDestinationKeyD;K;6Line truncated
|
||||
@@ -2,10 +2,10 @@
|
||||
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">1050</int>
|
||||
<string key="IBDocument.SystemVersion">11D50</string>
|
||||
<string key="IBDocument.SystemVersion">11E53</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">2182</string>
|
||||
<string key="IBDocument.AppKitVersion">1138.32</string>
|
||||
<string key="IBDocument.HIToolboxVersion">568.00</string>
|
||||
<string key="IBDocument.AppKitVersion">1138.47</string>
|
||||
<string key="IBDocument.HIToolboxVersion">569.00</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string key="NS.object.0">2182</string>
|
||||
@@ -62,7 +62,7 @@
|
||||
<object class="NSTextField" id="545120110">
|
||||
<reference key="NSNextResponder" ref="857722922"/>
|
||||
<int key="NSvFlags">301</int>
|
||||
<string key="NSFrame">{{31, 97}, {239, 22}}</string>
|
||||
<string key="NSFrame">{{31, 137}, {239, 22}}</string>
|
||||
<reference key="NSSuperview" ref="857722922"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="767709548"/>
|
||||
@@ -101,10 +101,33 @@
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSButton" id="913980254">
|
||||
<reference key="NSNextResponder" ref="857722922"/>
|
||||
<int key="NSvFlags">293</int>
|
||||
<string key="NSFrame">{{114, 50}, {73, 32}}</string>
|
||||
<reference key="NSSuperview" ref="857722922"/>
|
||||
<reference key="NSWindow"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||
<bool key="NSEnabled">YES</bool>
|
||||
<object class="NSButtonCell" key="NSCell" id="801370502">
|
||||
<int key="NSCellFlags">67239424</int>
|
||||
<int key="NSCellFlags2">134217728</int>
|
||||
<string key="NSContents">close</string>
|
||||
<reference key="NSSupport" ref="500612644"/>
|
||||
<string key="NSCellIdentifier">_NS:9</string>
|
||||
<reference key="NSControlView" ref="913980254"/>
|
||||
<int key="NSButtonFlags">-2038284033</int>
|
||||
<int key="NSButtonFlags2">129</int>
|
||||
<string key="NSAlternateContents"/>
|
||||
<string key="NSKeyEquivalent"/>
|
||||
<int key="NSPeriodicDelay">200</int>
|
||||
<int key="NSPeriodicInterval">25</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSButton" id="13055898">
|
||||
<reference key="NSNextResponder" ref="857722922"/>
|
||||
<int key="NSvFlags">293</int>
|
||||
<string key="NSFrame">{{193, 34}, {74, 32}}</string>
|
||||
<string key="NSFrame">{{113, 18}, {74, 32}}</string>
|
||||
<reference key="NSSuperview" ref="857722922"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
@@ -128,7 +151,7 @@
|
||||
<object class="NSButton" id="767709548">
|
||||
<reference key="NSNextResponder" ref="857722922"/>
|
||||
<int key="NSvFlags">293</int>
|
||||
<string key="NSFrame">{{34, 34}, {126, 32}}</string>
|
||||
<string key="NSFrame">{{87, 82}, {126, 32}}</string>
|
||||
<reference key="NSSuperview" ref="857722922"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="13055898"/>
|
||||
@@ -152,7 +175,7 @@
|
||||
<object class="NSTextField" id="143820433">
|
||||
<reference key="NSNextResponder" ref="857722922"/>
|
||||
<int key="NSvFlags">269</int>
|
||||
<string key="NSFrame">{{28, 141}, {245, 32}}</string>
|
||||
<string key="NSFrame">{{28, 185}, {245, 32}}</string>
|
||||
<reference key="NSSuperview" ref="857722922"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="545120110"/>
|
||||
@@ -187,7 +210,7 @@
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrameSize">{301, 217}</string>
|
||||
<string key="NSFrameSize">{301, 261}</string>
|
||||
<reference key="NSSuperview"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="143820433"/>
|
||||
@@ -239,7 +262,7 @@
|
||||
<reference key="NSNextKeyView" ref="58551230"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:20</string>
|
||||
</object>
|
||||
<string key="NSScreenRect">{{0, 0}, {1920, 1178}}</string>
|
||||
<string key="NSScreenRect">{{0, 0}, {2560, 1418}}</string>
|
||||
<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
|
||||
<bool key="NSWindowIsRestorable">YES</bool>
|
||||
</object>
|
||||
@@ -263,6 +286,7 @@
|
||||
<string key="NSFrame">{{18, 12}, {126, 32}}</string>
|
||||
<reference key="NSSuperview" ref="200356413"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:9</string>
|
||||
<bool key="NSEnabled">YES</bool>
|
||||
<object class="NSButtonCell" key="NSCell" id="1032520345">
|
||||
@@ -286,7 +310,7 @@
|
||||
<string key="NSFrame">{{37, 59}, {89, 17}}</string>
|
||||
<reference key="NSSuperview" ref="200356413"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
<reference key="NSNextKeyView" ref="400712972"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:1505</string>
|
||||
<bool key="NSEnabled">YES</bool>
|
||||
<object class="NSTextFieldCell" key="NSCell" id="420985577">
|
||||
@@ -309,11 +333,9 @@
|
||||
<string key="NSClassName">NSView</string>
|
||||
</object>
|
||||
<object class="NSTextField" id="260721902">
|
||||
<reference key="NSNextResponder"/>
|
||||
<nil key="NSNextResponder"/>
|
||||
<int key="NSvFlags">268</int>
|
||||
<string key="NSFrameSize">{38, 17}</string>
|
||||
<reference key="NSSuperview"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:1505</string>
|
||||
<bool key="NSEnabled">YES</bool>
|
||||
<object class="NSTextFieldCell" key="NSCell" id="171236348">
|
||||
@@ -379,6 +401,14 @@
|
||||
</object>
|
||||
<int key="connectionID">555</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBActionConnection" key="connection">
|
||||
<string key="label">closePopover:</string>
|
||||
<reference key="source" ref="635946545"/>
|
||||
<reference key="destination" ref="913980254"/>
|
||||
</object>
|
||||
<int key="connectionID">559</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBOutletConnection" key="connection">
|
||||
<string key="label">view</string>
|
||||
@@ -478,10 +508,11 @@
|
||||
<reference key="object" ref="857722922"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="545120110"/>
|
||||
<reference ref="143820433"/>
|
||||
<reference ref="767709548"/>
|
||||
<reference ref="545120110"/>
|
||||
<reference ref="913980254"/>
|
||||
<reference ref="13055898"/>
|
||||
<reference ref="767709548"/>
|
||||
</object>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
@@ -638,6 +669,20 @@
|
||||
<reference key="object" ref="1032520345"/>
|
||||
<reference key="parent" ref="400712972"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">556</int>
|
||||
<reference key="object" ref="913980254"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="801370502"/>
|
||||
</object>
|
||||
<reference key="parent" ref="857722922"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">557</int>
|
||||
<reference key="object" ref="801370502"/>
|
||||
<reference key="parent" ref="913980254"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||
@@ -675,6 +720,8 @@
|
||||
<string>536.IBPluginDependency</string>
|
||||
<string>551.IBPluginDependency</string>
|
||||
<string>552.IBPluginDependency</string>
|
||||
<string>556.IBPluginDependency</string>
|
||||
<string>557.IBPluginDependency</string>
|
||||
</object>
|
||||
<object class="NSArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
@@ -709,6 +756,8 @@
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="unlocalizedProperties">
|
||||
@@ -723,7 +772,7 @@
|
||||
<reference key="dict.values" ref="0"/>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">555</int>
|
||||
<int key="maxID">559</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
@@ -735,6 +784,7 @@
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>closePopover:</string>
|
||||
<string>movePopover:</string>
|
||||
<string>open:</string>
|
||||
<string>openWindowPopover:</string>
|
||||
@@ -744,18 +794,24 @@
|
||||
<string>id</string>
|
||||
<string>id</string>
|
||||
<string>id</string>
|
||||
<string>id</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="actionInfosByName">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>closePopover:</string>
|
||||
<string>movePopover:</string>
|
||||
<string>open:</string>
|
||||
<string>openWindowPopover:</string>
|
||||
</object>
|
||||
<object class="NSArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">closePopover:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">movePopover:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
|
||||
+40
-20
@@ -175,6 +175,18 @@ class LintChecker(object):
|
||||
'showPositionForGroup': 1,
|
||||
'type': ERROR_TYPE_ILLEGAL
|
||||
},
|
||||
{
|
||||
'regex': re.compile(ur'^\s*(?:(?:else )?if|for|switch|while|with)\s*\((\s+)?.+?(\s+)?\)\s*(?:(?:\{|//.*|/\*.*\*/)\s*)?$'),
|
||||
'error': 'space inside parentheses',
|
||||
'showPositionForGroup': [1, 2],
|
||||
'type': ERROR_TYPE_ILLEGAL
|
||||
},
|
||||
{
|
||||
'regex': re.compile(ur'^\s*(?:(?:else )?if|for|switch|while|with)\s*\(.+\)\s*(?:[\w_]|\[).+(;)\s*(?://.*|/\*.*\*/\s*)?$'),
|
||||
'error': 'dependent statements must be on their own line',
|
||||
'showPositionForGroup': 1,
|
||||
'type': ERROR_TYPE_ILLEGAL
|
||||
},
|
||||
{
|
||||
'regex': TRAILING_WHITESPACE_RE,
|
||||
'error': 'trailing whitespace',
|
||||
@@ -186,8 +198,8 @@ class LintChecker(object):
|
||||
'filter': {'regex': re.compile(ur'(^@import\b|^\s*' + METHOD_RE + '|^\s*[a-zA-Z_$]\w*:\s*\([a-zA-Z_$][\w<>]*\)\s*\w+|[a-zA-Z_$]\w*(\+\+|--)|([ -+*/%^&|<>!]=?|&&|\|\||<<|>>>|={1,3}|!==?)\s*[-+][\w(\[])'), 'pass': False},
|
||||
|
||||
'preprocess': STD_IGNORES,
|
||||
'regex': re.compile(ur'(?<=[\w)\]"\']|([ ]))([-+*/%^]|&&?|\|\|?|<<|>>>?)(?=[\w({\["\']|(?(1)\b\b|[ ]))'),
|
||||
'error': 'binary operator without surrounding spaces',
|
||||
'regex': re.compile(ur'(?<=[\w)\]"\']|([ ]))([-+*/%^]|&&?|\|\|?|<<|>>>?)(?=[\w({\["\']|(?(1)\b\b|[ ]))'),
|
||||
'error': 'binary operator without surrounding spaces',
|
||||
'showPositionForGroup': 2,
|
||||
'type': ERROR_TYPE_WARNING
|
||||
},
|
||||
@@ -196,8 +208,8 @@ class LintChecker(object):
|
||||
'filter': {'regex': re.compile(ur'^(@import\b|\s*' + METHOD_RE + ')'), 'pass': False},
|
||||
|
||||
'preprocess': STD_IGNORES,
|
||||
'regex': re.compile(ur'(?:[-*/%^&|<>!]=?|&&|\|\||<<|>>>|={1,3}|!==?)\s*(?<!\+)(\+)[\w(\[]'),
|
||||
'error': 'useless unary + operator',
|
||||
'regex': re.compile(ur'(?:[-*/%^&|<>!]=?|&&|\|\||<<|>>>|={1,3}|!==?)\s*(?<!\+)(\+)[\w(\[]'),
|
||||
'error': 'useless unary + operator',
|
||||
'showPositionForGroup': 1,
|
||||
'type': ERROR_TYPE_WARNING
|
||||
},
|
||||
@@ -206,8 +218,8 @@ class LintChecker(object):
|
||||
'filter': {'regex': re.compile(ur'^\s*(?:@outlet\s+)?[a-zA-Z_$]\w*\s+[a-zA-Z_$]\w*\s+@accessors\b'), 'pass': False},
|
||||
|
||||
'preprocess': STD_IGNORES,
|
||||
'regex': re.compile(ur'(?<=[\w)\]"\']|([ ]))(=|[-+*/%^&|]=|<<=|>>>?=)(?=[\w({\["\']|(?(1)\b\b|[ ]))'),
|
||||
'error': 'assignment operator without surrounding spaces',
|
||||
'regex': re.compile(ur'(?<=[\w)\]"\']|([ ]))(=|[-+*/%^&|]=|<<=|>>>?=)(?=[\w({\["\']|(?(1)\b\b|[ ]))'),
|
||||
'error': 'assignment operator without surrounding spaces',
|
||||
'showPositionForGroup': 2,
|
||||
'type': ERROR_TYPE_WARNING
|
||||
},
|
||||
@@ -216,8 +228,8 @@ class LintChecker(object):
|
||||
'filter': {'regex': re.compile(ur'^(@import\b|@implementation\b|\s*' + METHOD_RE + ')'), 'pass': False},
|
||||
|
||||
'preprocess': STD_IGNORES,
|
||||
'regex': re.compile(ur'(?<=[\w)\]"\']|([ ]))(===?|!==?|[<>]=?)(?=[\w({\["\']|(?(1)\b\b|[ ]))'),
|
||||
'error': 'comparison operator without surrounding spaces',
|
||||
'regex': re.compile(ur'(?<=[\w)\]"\']|([ ]))(===?|!==?|[<>]=?)(?=[\w({\["\']|(?(1)\b\b|[ ]))'),
|
||||
'error': 'comparison operator without surrounding spaces',
|
||||
'showPositionForGroup': 2,
|
||||
'type': ERROR_TYPE_WARNING
|
||||
},
|
||||
@@ -315,24 +327,32 @@ class LintChecker(object):
|
||||
continue
|
||||
|
||||
positions = []
|
||||
group = check.get('showPositionForGroup')
|
||||
groups = check.get('showPositionForGroup')
|
||||
|
||||
if (check.get('id') == 'tabs'):
|
||||
line = tabs2spaces(line, positions=positions)
|
||||
elif group is not None:
|
||||
elif groups is not None:
|
||||
line = tabs2spaces(line)
|
||||
|
||||
for match in regex.finditer(line):
|
||||
if group > 0:
|
||||
positions.append(match.start(group))
|
||||
else:
|
||||
# group 0 means show the first non-empty match
|
||||
for i in range(1, len(match.groups()) + 1):
|
||||
if match.start(i) >= 0:
|
||||
positions.append(match.start(i))
|
||||
break
|
||||
if not isinstance(groups, (list, tuple)):
|
||||
groups = (groups,)
|
||||
|
||||
self.error(check['error'], line=line, positions=positions, type=check['type'])
|
||||
for match in regex.finditer(line):
|
||||
for group in groups:
|
||||
if group > 0:
|
||||
start = match.start(group)
|
||||
|
||||
if start >= 0:
|
||||
positions.append(start)
|
||||
else:
|
||||
# group 0 means show the first non-empty match
|
||||
for i in range(1, len(match.groups()) + 1):
|
||||
if match.start(i) >= 0:
|
||||
positions.append(match.start(i))
|
||||
break
|
||||
|
||||
if positions:
|
||||
self.error(check['error'], line=line, positions=positions, type=check['type'])
|
||||
|
||||
def next_statement(self, expect_line=False, check_line=True):
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user