Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 51 lines (43 sloc) 2.742 kb
5133197 @ccgus [NEW] Added JSTalk support to Apple's Sketch sample code (but only fo…
authored
1 /*
2 SKTError.h
3 Part of the Sketch Sample Code
4 */
5
6 #import <Cocoa/Cocoa.h>
7
8 // Sketch establishes its own error domain, and some errors in that domain.
9 extern NSString *SKTErrorDomain;
10 enum {
11 SKTUnknownFileReadError = 1,
12 SKTUnknownPasteboardReadError = 2,
13 SKTWriteCouldntMakeTIFFError = 3
14 };
15
16 // Given one of the error codes declared above, return an NSError whose user info is set up to match.
17 NSError *SKTErrorWithCode(NSInteger code);
18
19 /*
20 IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
21 consideration of your agreement to the following terms, and your use, installation,
22 modification or redistribution of this Apple software constitutes acceptance of these
23 terms. If you do not agree with these terms, please do not use, install, modify or
24 redistribute this Apple software.
25
26 In consideration of your agreement to abide by the following terms, and subject to these
27 terms, Apple grants you a personal, non-exclusive license, under Apple's copyrights in
28 this original Apple software (the "Apple Software"), to use, reproduce, modify and
29 redistribute the Apple Software, with or without modifications, in source and/or binary
30 forms; provided that if you redistribute the Apple Software in its entirety and without
31 modifications, you must retain this notice and the following text and disclaimers in all
32 such redistributions of the Apple Software. Neither the name, trademarks, service marks
33 or logos of Apple Computer, Inc. may be used to endorse or promote products derived from
34 the Apple Software without specific prior written permission from Apple. Except as expressly
35 stated in this notice, no other rights or licenses, express or implied, are granted by Apple
36 herein, including but not limited to any patent rights that may be infringed by your
37 derivative works or by other works in which the Apple Software may be incorporated.
38
39 The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES,
40 EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
41 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS
42 USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
43
44 IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
45 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
46 OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
47 REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND
48 WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR
49 OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
50 */
Something went wrong with that request. Please try again.