-
Notifications
You must be signed in to change notification settings - Fork 1
/
MNLineNumberingTextView.h
52 lines (34 loc) · 1.17 KB
/
MNLineNumberingTextView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// MNLineNumberingRulerView.h
//
//
// Created by Masatoshi Nishikata on 29/10/05.
// Copyright 2005 Masatoshi Nishikata. All rights reserved.
// http://homepage.mac.com/mnishikata/iblog/
//ORIGINAL
//
// MyTextView.m
// LineNumbering
//
// Created by Koen van der Drift on Sat May 01 2004.
// Copyright (c) 2004 Koen van der Drift. All rights reserved.
//
/*
LineNumberingRulerView shows paragraph number, line number and character number.
Furthermore, it can handle bookmarks like debug marker in Xcode.
Bookmarks are embedded to return code as an attribute 'MarkerAttributeName' (Bool value YES as NSNumber).
As a default text view saving process using RTFFromRange... , the bookmark attribute is not saved.
If you want to save them, extract that attribute and save separatory.
*/
#import <Cocoa/Cocoa.h>
@class MNLineNumberingRulerView;
@class MNLineNumberingTextStorage;
@interface MNLineNumberingTextView : NSTextView {
}
-(void)toggleGutterVisiblity;
// Show and Hide gutter (ruler view).
-(void)jumpTo;
// Show 'Jump To...' sheet
- (void)textStorageDidProcessEditing:(NSNotification *)aNotification;
-(int)paragraphNumberAtIndex:(int)index;
@end