10.6 compatibility: Fix some new compiler warnings, and work around apparent regressions in NSTask and -stringByStandardizingPath.
2 // ConcurrentOperation.m
5 // Created by Jens Alfke on 2/5/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
9 #import "ConcurrentOperation.h"
12 // See file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/NSOperation_class/Reference/Reference.html
15 @implementation ConcurrentOperation
18 - (BOOL) isConcurrent {return YES;}
22 Assert(NO,@"Shouldn't call -main method of ConcurrentOperation");
38 Log(@"Starting %@",self);
39 [self willChangeValueForKey: @"isExecuting"];
41 [self didChangeValueForKey: @"isExecuting"];
46 Log(@"Finished %@",self);
47 [self willChangeValueForKey: @"isExecuting"];
48 [self willChangeValueForKey: @"isFinished"];
51 [self didChangeValueForKey: @"isFinished"];
52 [self didChangeValueForKey: @"isExecuting"];
58 Log(@"Canceling %@",self);
61 [self willChangeValueForKey: @"isExecuting"];
63 [self didChangeValueForKey: @"isExecuting"];
72 Copyright (c) 2008, Jens Alfke <jens@mooseyard.com>. All rights reserved.
74 Redistribution and use in source and binary forms, with or without modification, are permitted
75 provided that the following conditions are met:
77 * Redistributions of source code must retain the above copyright notice, this list of conditions
78 and the following disclaimer.
79 * Redistributions in binary form must reproduce the above copyright notice, this list of conditions
80 and the following disclaimer in the documentation and/or other materials provided with the
83 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
84 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
85 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRI-
86 BUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
87 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
88 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
89 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
90 THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.