NewsBlur/clients/ios/Other Sources/Overshare Kit/OSKMicrobloggingTextView.h
2014-05-19 13:33:42 -07:00

50 lines
1.5 KiB
Objective-C
Executable file

//
// OSKTextView.h
// Based on JTSTextView by Jared Sinclair
//
// Created by Jared Sinclair on 10/26/13.
// Copyright (c) 2013 Nice Boy LLC. All rights reserved.
//
#import "OSKUITextViewSubstitute.h"
@import UIKit;
#import "OSKSyntaxHighlighting.h"
#import "OSKTextViewAttachment.h"
/// ------------------------------------------------------------
/// OSKMicrobloggingTextViewAttachmentsDelegate
/// ------------------------------------------------------------
@class OSKMicrobloggingTextView;
@protocol OSKMicrobloggingTextViewAttachmentsDelegate <NSObject>
- (BOOL)textView:(OSKMicrobloggingTextView *)textView shouldAllowAttachmentsToBeEdited:(OSKTextViewAttachment *)attachment;
- (void)textViewDidTapRemoveAttachment:(OSKMicrobloggingTextView *)textView;
@optional
- (BOOL)textViewShouldUseBorderedAttachmentView:(OSKMicrobloggingTextView *)textView;
@end
/// ------------------------------------------------------------
/// OSKTextView
/// ------------------------------------------------------------
@interface OSKMicrobloggingTextView : OSKUITextViewSubstitute
@property (weak, nonatomic, readwrite) id <OSKMicrobloggingTextViewAttachmentsDelegate> oskAttachmentsDelegate;
@property (strong, nonatomic, readwrite) OSKTextViewAttachment *oskAttachment;
@property (assign, nonatomic, readwrite) OSKSyntaxHighlighting syntaxHighlighting;
@property (strong, nonatomic, readonly) NSArray *detectedLinks; // array of OSKTwitterTextEntities
- (void)removeAttachment;
@end