mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-21 05:45:13 +00:00
50 lines
1.5 KiB
Objective-C
Executable file
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
|
|
|
|
|
|
|
|
|