Updated comments

This commit is contained in:
michael starke
2014-12-17 16:05:55 +01:00
parent 692ade2110
commit 23b3325514

View File

@@ -143,17 +143,19 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey
} }
- (void)saveDocumentAs:(id)sender { - (void)saveDocumentAs:(id)sender {
/* take a look at NSEditor Protocoll commitEding, as NSDocument supports that */ /* FIXME: Use controllers for bindings to enable NSEditorRegistration. NSDocument supports this! */
[[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentWillSaveNotification object:self]; [[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentWillSaveNotification object:self];
[super saveDocumentAs:sender]; [super saveDocumentAs:sender];
} }
- (void)saveDocument:(id)sender { - (void)saveDocument:(id)sender {
/* FIXME: Use controllers for bindings to enable NSEditorRegistration. NSDocument supports this! */
[[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentWillSaveNotification object:self]; [[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentWillSaveNotification object:self];
[super saveDocument:sender]; [super saveDocument:sender];
} }
- (void)saveDocumentTo:(id)sender { - (void)saveDocumentTo:(id)sender {
/* FIXME: Use controllers for bindings to enable NSEditorRegistration. NSDocument supports this! */
[[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentWillSaveNotification object:self]; [[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentWillSaveNotification object:self];
[super saveDocumentTo:sender]; [super saveDocumentTo:sender];
} }