Skip to content

Commit

Permalink
Merge /Users/Jonathan/Documents/Computing/source/KosmicTask/fragaria
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Mitchell committed Apr 27, 2013
2 parents c4512dc + 59e3868 commit 8d2232a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SMLSyntaxColouring.m
Original file line number Diff line number Diff line change
Expand Up @@ -2164,7 +2164,7 @@ - (NSUndoManager *)undoManagerForTextView:(NSTextView *)aTextView
*/
- (void)mgsTextDidPaste:(NSNotification *)aNotification
{
{
// send out document delegate notifications
[self performDocumentDelegateSelector:_cmd withObject:aNotification];
}
Expand Down
5 changes: 4 additions & 1 deletion SMLTextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,11 @@ -(void)paste:(id)sender
// let super paste
[super paste:sender];

// add the NSTextView to the info dict
NSDictionary *info = @{@"NSTextView": self};

// send paste notification
NSNotification *note = [NSNotification notificationWithName:@"MGSTextDidPasteNotification" object:self];
NSNotification *note = [NSNotification notificationWithName:@"MGSTextDidPasteNotification" object:self userInfo:info];
[[NSNotificationCenter defaultCenter] postNotification:note];

// inform delegate of Fragaria paste
Expand Down

0 comments on commit 8d2232a

Please sign in to comment.