Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 68 lines (50 sloc) 2.657 kb
b0ca2e7 @mikeabdullah Please welcome a new arrival, KSWebLocation.
mikeabdullah authored
1 //
2 // KSWebLocation.h
3 //
5e343ed @danwood update copyrights to 2012
danwood authored
4 // Copyright (c) 2008-2012 Mike Abdullah and Karelia Software
b0ca2e7 @mikeabdullah Please welcome a new arrival, KSWebLocation.
mikeabdullah authored
5 // All rights reserved.
6 //
7 // Redistribution and use in source and binary forms, with or without
8 // modification, are permitted provided that the following conditions are met:
9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 // * Redistributions in binary form must reproduce the above copyright
12 // notice, this list of conditions and the following disclaimer in the
13 // documentation and/or other materials provided with the distribution.
14 //
15 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 // DISCLAIMED. IN NO EVENT SHALL MIKE ABDULLAH OR KARELIA SOFTWARE BE LIABLE FOR ANY
19 // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 //
26
27
1dd85bd @mikeabdullah Split KSWebLocation pasteboard handling out to a seperate file so you ca...
mikeabdullah authored
28 #import <Foundation/Foundation.h>
b0ca2e7 @mikeabdullah Please welcome a new arrival, KSWebLocation.
mikeabdullah authored
29
30
31 /* The NSPasteboardReading protocol enables instances of a class to be created from pasteboard data by using the -readObjectsForClasses:options: method of NSPasteboard. The Cocoa framework classes NSString, NSAttributedString, NSURL, NSColor, NSSound, NSImage, and NSPasteboardItem implement this protocol. The protocol can also be implemented by custom application classes for use with -readObjectsForClasses:options:
32 */
33
34
35 @interface KSWebLocation : NSObject <NSCopying, NSCoding>
36 {
1dd85bd @mikeabdullah Split KSWebLocation pasteboard handling out to a seperate file so you ca...
mikeabdullah authored
37 @private
b0ca2e7 @mikeabdullah Please welcome a new arrival, KSWebLocation.
mikeabdullah authored
38 NSURL *_URL;
39 NSString *_title;
40 }
41
42 #pragma mark Init
43 + (id)webLocationWithURL:(NSURL *)URL;
44 + (id)webLocationWithURL:(NSURL *)URL title:(NSString *)title;
8421cd5 @mikeabdullah -initWithURL: convenience method.
mikeabdullah authored
45 - (id)initWithURL:(NSURL *)URL;
b0ca2e7 @mikeabdullah Please welcome a new arrival, KSWebLocation.
mikeabdullah authored
46 - (id)initWithURL:(NSURL *)URL title:(NSString *)title; // Designated initializer
47
48
49 #pragma mark Accessors
50 @property(nonatomic, copy, readonly) NSURL *URL;
51 @property(nonatomic, copy, readonly) NSString *title;
52
53
54 #pragma mark Equality
55 - (BOOL)isEqualToWebLocation:(KSWebLocation *)aWebLocation;
56
57
1dd85bd @mikeabdullah Split KSWebLocation pasteboard handling out to a seperate file so you ca...
mikeabdullah authored
58 @end
b0ca2e7 @mikeabdullah Please welcome a new arrival, KSWebLocation.
mikeabdullah authored
59
60
1dd85bd @mikeabdullah Split KSWebLocation pasteboard handling out to a seperate file so you ca...
mikeabdullah authored
61 #pragma mark -
b0ca2e7 @mikeabdullah Please welcome a new arrival, KSWebLocation.
mikeabdullah authored
62
63
64 @interface KSWebLocation (WeblocFiles)
65 + (id)webLocationWithContentsOfWeblocFile:(NSURL *)weblocURL;
66 - (id)initWithContentsOfWeblocFile:(NSURL *)weblocURL;
67 @end
Something went wrong with that request. Please try again.