Permalink
Browse files

initial import.

  • Loading branch information...
1 parent b7a10c3 commit 9f0623f8c5982b57cc57dfe681a0565cbf27c9b6 Igor Sutton committed Jul 13, 2010
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
View
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>com.yourcompany.${PRODUCT_NAME:rfc1034Identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>FMWK</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>NSPrincipalClass</key>
+ <string></string>
+</dict>
+</plist>
View
140 TKPost.h
@@ -0,0 +1,140 @@
+//
+//
+// This file is part of TumblrKit
+//
+// TumblrKit is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Foobar is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with TumblrKit. If not, see <http://www.gnu.org/licenses/>.
+//
+// TKPost.h by Igor Sutton on 7/12/10.
+//
+
+#import <Cocoa/Cocoa.h>
+
+typedef enum {
+ TKPostTypeAll,
+ TKPostTypeRegular,
+ TKPostTypeLink,
+ TKPostTypeQuote,
+ TKPostTypePhoto,
+ TKPostTypeConversation,
+ TKPostTypeVideo,
+ TKPostTypeAudio,
+ TKPostTypeAnswer
+} TKPostType;
+
+typedef enum {
+ TKPostFormatHTML,
+ TKPostFormatMarkdown
+} TKPostFormat;
+
+typedef enum {
+ TKPostFilterHTML,
+ TKPostFilterText,
+ TKPostFilterNone
+} TKPostFilter;
+
+@interface TKPost : NSObject {
+ NSNumber *postId;
+ NSString *url;
+ NSString *slug;
+ NSDate *date;
+ NSString *reblogKey;
+ TKPostType type;
+ TKPostFormat format;
+}
+
+@property (nonatomic,copy) NSNumber *postId;
+@property (nonatomic,copy) NSString *url;
+@property (nonatomic,copy) NSString *slug;
+@property (nonatomic,copy) NSDate *date;
+@property (nonatomic,copy) NSString *reblogKey;
+@property (nonatomic,assign) TKPostType type;
+@property (nonatomic,assign) TKPostFormat format;
+
++ (id)postWithAttributes:(NSDictionary *)attributeDict;
+
+- (id)initWithAttributes:(NSDictionary *)attributeDict;
+
+@end
+
+@interface TKPostRegular : TKPost
+{
+ NSMutableString *title;
+ NSMutableString *body;
+}
+
+- (NSString *)title;
+- (void)setTitle:(NSString *)aTitle;
+- (NSString *)body;
+- (void)setBody:(NSString *)aBody;
+- (void)appendToTitle:(NSString *)string;
+- (void)appendToBody:(NSString *)string;
+
+@end
+
+@interface TKPostLink : TKPost
+{
+ NSMutableString *text;
+ NSURL *URL;
+}
+
+@property (nonatomic,copy) NSURL *URL;
+
+- (NSString *)text;
+- (void)setText:(NSString *)aText;
+- (void)appendToText:(NSString *)string;
+- (void)setURLWithString:(NSString *)URLString;
+
+@end
+
+@interface TKPostQuote : TKPost
+{
+ NSMutableString *text;
+ NSMutableString *source;
+}
+
+- (NSString *)text;
+- (void)setText:(NSString *)aText;
+- (NSString *)source;
+- (void)setSource:(NSString *)aSource;
+- (void)appendToText:(NSString *)string;
+- (void)appendToSource:(NSString *)string;
+
+@end
+
+@interface TKPostPhoto : TKPost
+{
+ NSMutableString *caption;
+ NSUInteger width;
+ NSUInteger height;
+}
+
+@property (assign) NSUInteger width;
+@property (assign) NSUInteger height;
+
+- (NSString *)caption;
+- (void)setCaption:(NSString *)aCaption;
+- (void)appendToCaption:(NSString *)string;
+
+@end
+
+@interface TKPostConversation : TKPost
+{
+ NSMutableString *text;
+}
+
+- (NSString *)text;
+- (void)setText:(NSString *)aText;
+- (void)appendToText:(NSString *)string;
+
+@end
Oops, something went wrong.

0 comments on commit 9f0623f

Please sign in to comment.