* Added BSD license to more .m files.
* Updated some copyright notices.
* Added some #imports to make the MYNetwork classes build without using the MYUtilities.pch prefix header.
2 // ConcurrentOperation.m
5 // Created by Jens Alfke on 2/5/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
9 #import "ConcurrentOperation.h"
11 // See file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/NSOperation_class/Reference/Reference.html#//apple_ref/doc/uid/TP40004591-RH2-DontLinkElementID_4
14 @implementation ConcurrentOperation
17 - (BOOL) isConcurrent {return YES;}
21 Assert(NO,@"Shouldn't call -main method of ConcurrentOperation");
37 Log(@"Starting %@",self);
38 [self willChangeValueForKey: @"isExecuting"];
40 [self didChangeValueForKey: @"isExecuting"];
45 Log(@"Finished %@",self);
46 [self willChangeValueForKey: @"isExecuting"];
47 [self willChangeValueForKey: @"isFinished"];
50 [self didChangeValueForKey: @"isFinished"];
51 [self didChangeValueForKey: @"isExecuting"];
57 Log(@"Canceling %@",self);
60 [self willChangeValueForKey: @"isExecuting"];
62 [self didChangeValueForKey: @"isExecuting"];
71 Copyright (c) 2008, Jens Alfke <jens@mooseyard.com>. All rights reserved.
73 Redistribution and use in source and binary forms, with or without modification, are permitted
74 provided that the following conditions are met:
76 * Redistributions of source code must retain the above copyright notice, this list of conditions
77 and the following disclaimer.
78 * Redistributions in binary form must reproduce the above copyright notice, this list of conditions
79 and the following disclaimer in the documentation and/or other materials provided with the
82 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
83 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
84 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRI-
85 BUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
86 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
87 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
88 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
89 THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.