//
//  SMLTextViewPrivate.h
//  Fragaria
//
//  Created by Daniele Cattaneo on 26/02/15.
//
//

#import <Cocoa/Cocoa.h>
#import "SMLTextView.h"
#import "SMLAutoCompleteDelegate.h"


@interface SMLTextView ()


/** The autocomplete delegate for this text view. This property is private
 * because it is set to an internal object when MGSFragaria's autocomplete
 * delegate is set to nil. */
@property (weak) id<SMLAutoCompleteDelegate> autocompleteDelegate;

/** The controller which manages the accessory user interface for this text
 * view. */
@property (readonly) MGSExtraInterfaceController *interfaceController;

/** Instances of this class will perform syntax highlighting in text views. */
@property (readonly) SMLSyntaxColouring *syntaxColouring;


@end

//
//  SMLTextViewPrivate.h
//  Fragaria
//
//  Created by Daniele Cattaneo on 26/02/15.
//
//

#import <Cocoa/Cocoa.h>
#import "SMLTextView.h"
#import "SMLAutoCompleteDelegate.h"


@interface SMLTextView ()


/** The autocomplete delegate for this text view. This property is private
 * because it is set to an internal object when MGSFragaria's autocomplete
 * delegate is set to nil. */
@property id<SMLAutoCompleteDelegate> autocompleteDelegate;

/** The controller which manages the accessory user interface for this text
 * view. */
@property (readonly) MGSExtraInterfaceController *interfaceController;

/** Instances of this class will perform syntax highlighting in text views. */
@property (readonly) SMLSyntaxColouring *syntaxColouring;


@end

--- 
+++ 
@@ -17,7 +17,7 @@
 /** The autocomplete delegate for this text view. This property is private
  * because it is set to an internal object when MGSFragaria's autocomplete
  * delegate is set to nil. */
-@property id<SMLAutoCompleteDelegate> autocompleteDelegate;
+@property (weak) id<SMLAutoCompleteDelegate> autocompleteDelegate;
 
 /** The controller which manages the accessory user interface for this text
  * view. */
Use weak attribute for the autocompleteDelegate property of SMLTextView.
