@class BSLineNumberRulerView;
@protocol BSSourceViewDelegate;
+// A BSSourceView is a view that contains an NSTextView that also has a line
+// number ruler. This class wraps synchronization management between the text
+// field and the line numbmering and marker drawing.
+//
+// Rather than setting the string of the text view directly, use the provided
+// methods to load from a file path or to load a string as a virtual file.
@interface BSSourceView : NSView
{
@private
BSLineNumberRulerView* ruler_;
NSScrollView* scrollView_;
+ // Set of Breakpoint objects.
NSSet* markers_;
NSString* file;
id<BSSourceViewDelegate> delegate;
}
-@property (assign) NSTextView* textView;
-@property (assign) NSScrollView* scrollView;
+@property (readonly) NSTextView* textView;
+@property (readonly) NSScrollView* scrollView;
@property (retain) NSSet* markers;
@property (nonatomic, assign) NSString* file;
@property (assign) int markedLine;