From fa58b0aad05af0350046092c21e6bbf0d5ac10de Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 5 Jan 2011 22:20:36 -0500 Subject: [PATCH] Formally define BSSourceViewDelegate as a protocol. --- Source/BSSourceView.h | 11 +++++++++-- Source/BreakpointController.h | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Source/BSSourceView.h b/Source/BSSourceView.h index f4332db..811f834 100644 --- a/Source/BSSourceView.h +++ b/Source/BSSourceView.h @@ -18,6 +18,8 @@ #import "BSLineNumberView.h" #import "BSSourceViewTextView.h" +@protocol BSSourceViewDelegate; + @interface BSSourceView : NSView { BSLineNumberView* numberView; @@ -27,7 +29,7 @@ NSString* file; int markedLine; - id delegate; + id delegate; } @property(readwrite, assign) BSLineNumberView* numberView; @@ -43,7 +45,12 @@ @end -@interface NSObject (BSSourceViewDelegate) +// Delegate //////////////////////////////////////////////////////////////////// + +@protocol BSSourceViewDelegate +@optional + +// Notifies the delegate that the gutter was clicked at a certain line. - (void)gutterClickedAtLine:(int)line forFile:(NSString*)file; // Whether to accept a file drop. diff --git a/Source/BreakpointController.h b/Source/BreakpointController.h index f4fed51..95b635a 100644 --- a/Source/BreakpointController.h +++ b/Source/BreakpointController.h @@ -18,7 +18,7 @@ #import "BreakpointManager.h" #import "BSSourceView.h" -@interface BreakpointController : NSWindowController +@interface BreakpointController : NSWindowController { BreakpointManager* manager; -- 2.22.5