mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-03 11:34:25 +00:00
Imports additions
Import fixes and clean up Missing import Missing imports Missing import Remove uncessary comments
This commit is contained in:
1 parent
9f5904eaf2
commit
fd812f25a5
12 files changed
+35
-28
No files matched your search
@@ -22,7 +22,7 @@
|
||||
|
||||
@import "CPObject.j"
|
||||
@import "CPObjJRuntime.j"
|
||||
|
||||
@import "CPString.j"
|
||||
|
||||
/*!
|
||||
The left operand is smaller than the right.
|
||||
|
||||
@@ -22,10 +22,11 @@
|
||||
|
||||
@import "CPException.j"
|
||||
@import "CPObject.j"
|
||||
@import "CPObjJRuntime.j"
|
||||
@import "CPRange.j"
|
||||
@import "CPSortDescriptor.j"
|
||||
@import "CPValue.j"
|
||||
|
||||
|
||||
/*!
|
||||
A case insensitive search
|
||||
@global
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
@import "CPObject.j"
|
||||
@import "CPRunLoop.j"
|
||||
|
||||
|
||||
/*!
|
||||
@class CPTimer
|
||||
@ingroup foundation
|
||||
@@ -51,7 +50,6 @@
|
||||
{
|
||||
var timer = [[self alloc] initWithFireDate:[CPDate dateWithTimeIntervalSinceNow:seconds] interval:seconds invocation:anInvocation repeats:shouldRepeat];
|
||||
|
||||
//add to the runloop
|
||||
[[CPRunLoop currentRunLoop] addTimer:timer forMode:CPDefaultRunLoopMode];
|
||||
|
||||
return timer;
|
||||
@@ -64,7 +62,6 @@
|
||||
{
|
||||
var timer = [[self alloc] initWithFireDate:[CPDate dateWithTimeIntervalSinceNow:seconds] interval:seconds target:aTarget selector:aSelector userInfo:userInfo repeats:shouldRepeat];
|
||||
|
||||
//add to the runloop
|
||||
[[CPRunLoop currentRunLoop] addTimer:timer forMode:CPDefaultRunLoopMode];
|
||||
|
||||
return timer;
|
||||
@@ -77,7 +74,6 @@
|
||||
{
|
||||
var timer = [[self alloc] initWithFireDate:[CPDate dateWithTimeIntervalSinceNow:seconds] interval:seconds callback:aFunction repeats:shouldRepeat];
|
||||
|
||||
//add to the runloop
|
||||
[[CPRunLoop currentRunLoop] addTimer:timer forMode:CPDefaultRunLoopMode];
|
||||
|
||||
return timer;
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
@import "CPObject.j"
|
||||
@import "CPString.j"
|
||||
|
||||
CPURLNameKey = @"CPURLNameKey";
|
||||
CPURLLocalizedNameKey = @"CPURLLocalizedNameKey";
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
@import "CPData.j"
|
||||
@import "CPObject.j"
|
||||
@import "CPRunLoop.j"
|
||||
@import "CPURLRequest.j"
|
||||
@import "CPURLResponse.j"
|
||||
|
||||
|
||||
var CPURLConnectionDelegate = nil;
|
||||
|
||||
/*!
|
||||
|
||||
@@ -20,8 +20,10 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
@import "CPDictionary.j"
|
||||
@import "CPObject.j"
|
||||
|
||||
@import "CPString.j"
|
||||
@import "CPURL.j"
|
||||
|
||||
/*!
|
||||
@class CPURLRequest
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
@import "CPObject.j"
|
||||
|
||||
@import "CPURL.j"
|
||||
|
||||
/*
|
||||
CPURL _URL;
|
||||
|
||||
@@ -20,12 +20,15 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
@import "CPArray.j"
|
||||
@import "CPException.j"
|
||||
@import "CPInvocation.j"
|
||||
@import "CPNotificationCenter.j"
|
||||
@import "CPObject.j"
|
||||
@import "CPProxy.j"
|
||||
@import "CPKeyValueObserving.j"
|
||||
@import "CPRunLoop.j"
|
||||
|
||||
|
||||
var CPUndoManagerNormal = 0,
|
||||
CPUndoManagerUndoing = 1,
|
||||
CPUndoManagerRedoing = 2;
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
@import "CPNotificationCenter.j"
|
||||
@import "CPObject.j"
|
||||
@import "CPString.j"
|
||||
|
||||
|
||||
CPUserSessionUndeterminedStatus = 0;
|
||||
CPUserSessionLoggedInStatus = 1;
|
||||
CPUserSessionLoggedOutStatus = 2;
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
@import "CPCoder.j"
|
||||
@import "CPObject.j"
|
||||
|
||||
|
||||
/*!
|
||||
@class CPValue
|
||||
@ingroup foundation
|
||||
|
||||
@@ -23,13 +23,16 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
@import "CPObject.j"
|
||||
@import "CPData.j"
|
||||
@import "CPDictionary.j"
|
||||
|
||||
@import "CPException.j"
|
||||
@import "CPKeyedArchiver.j"
|
||||
@import "CPKeyedUnarchiver.j"
|
||||
@import "CPNumber.j"
|
||||
@import "CPObject.j"
|
||||
|
||||
var transformerMap = [CPDictionary dictionary];
|
||||
|
||||
|
||||
@implementation CPValueTransformer : CPObject
|
||||
{
|
||||
|
||||
@@ -75,7 +78,7 @@ var transformerMap = [CPDictionary dictionary];
|
||||
{
|
||||
if ([[self class] allowsReverseTransformation])
|
||||
{
|
||||
[CPException raise:CPInvalidArgumentException reason:(self+" is not reversible.")];
|
||||
[CPException raise:CPInvalidArgumentException reason:(self + " is not reversible.")];
|
||||
}
|
||||
|
||||
return [self transformedValue:aValue];
|
||||
@@ -184,7 +187,7 @@ var transformerMap = [CPDictionary dictionary];
|
||||
|
||||
@end
|
||||
|
||||
CPNegateBooleanTransformerName = @"CPNegateBooleanTransformerName";
|
||||
CPIsNilTransformerName = @"CPIsNilTransformerName";
|
||||
CPIsNotNilTransformerName = @"CPIsNotNilTransformerName";
|
||||
CPUnarchiveFromDataTransformerName = @"CPUnarchiveFromDataTransformerName";
|
||||
CPNegateBooleanTransformerName = @"CPNegateBooleanTransformerName";
|
||||
CPIsNilTransformerName = @"CPIsNilTransformerName";
|
||||
CPIsNotNilTransformerName = @"CPIsNotNilTransformerName";
|
||||
CPUnarchiveFromDataTransformerName = @"CPUnarchiveFromDataTransformerName";
|
||||
@@ -20,9 +20,13 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
@import <Foundation/CPObject.j>
|
||||
@import <Foundation/CPDictionary.j>
|
||||
@import <Foundation/CPURL.j>
|
||||
@import "CPArray.j"
|
||||
@import "CPDictionary.j"
|
||||
@import "CPObject.j"
|
||||
@import "CPString.j"
|
||||
@import "CPURL.j"
|
||||
@import "CPURLConnection.j"
|
||||
@import "CPURLRequest.j"
|
||||
|
||||
var setURLResourceValuesForKeysFromProperties = function(aURL, keys, properties)
|
||||
{
|
||||
@@ -174,7 +178,7 @@ WebDAVPropertiesForURLKeys[CPURLIsDirectoryKey] = @"resourcetype";
|
||||
//CPURLCustomIconKey = @"CPURLCustomIconKey";
|
||||
|
||||
var XMLDocumentFromString = function(anXMLString)
|
||||
{//console.log(anXMLString);
|
||||
{
|
||||
if (typeof window["ActiveXObject"] !== "undefined")
|
||||
{
|
||||
var XMLDocument = new ActiveXObject("Microsoft.XMLDOM");
|
||||
@@ -193,9 +197,8 @@ var parsePROPFINDResponse = function(anXMLString)
|
||||
var XMLDocument = XMLDocumentFromString(anXMLString),
|
||||
responses = XMLDocument.getElementsByTagNameNS("*", "response"),
|
||||
responseIndex = 0,
|
||||
responseCount = responses.length;
|
||||
|
||||
var propertiesForURLs = [CPDictionary dictionary];
|
||||
responseCount = responses.length,
|
||||
propertiesForURLs = [CPDictionary dictionary];
|
||||
|
||||
for (; responseIndex < responseCount; ++responseIndex)
|
||||
{
|
||||
@@ -220,7 +223,6 @@ var parsePROPFINDResponse = function(anXMLString)
|
||||
|
||||
if (nodeName === @"resourcetype")
|
||||
[properties setObject:element.firstChild ? CPWebDAVManagerCollectionResourceType : CPWebDAVManagerNonCollectionResourceType forKey:nodeName];
|
||||
|
||||
else
|
||||
[properties setObject:element.firstChild.nodeValue forKey:nodeName];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user