Browse files

deleted notes intermediate change

  • Loading branch information...
1 parent 05d0b99 commit dc55df216c9bea1f951036b1d4cdb9cca01bd101 Zachary Schneirov committed Nov 30, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 FrozenNotation.h
  2. +1 −1 NotationController.m
View
2 FrozenNotation.h
@@ -16,7 +16,7 @@
NSMutableData *notesData;
NotationPrefs *prefs;
}
-- (id)initWithNotes:(NSMutableArray*)notes deletedNotes:(NSMutableArray*)antiNotes prefs:(NotationPrefs*)prefs;
+- (id)initWithNotes:(NSMutableArray*)notes deletedNotes:(NSMutableSet*)antiNotes prefs:(NotationPrefs*)prefs;
+ (NSData*)frozenDataWithExistingNotes:(NSMutableArray*)notes
deletedNotes:(NSMutableSet*)antiNotes
prefs:(NotationPrefs*)prefs;
View
2 NotationController.m
@@ -1284,7 +1284,7 @@ - (void)removeNote:(NoteObject*)aNoteObject {
- (void)_addDeletedNote:(NoteObject*)aNote {
//currently coupled to -[allNotes removeObjectIdenticalTo:]
- [deletedNotes addObject:[[[DeletedNoteObject alloc] initWithExistingObject:aNoteObject] autorelease]];
+ [deletedNotes addObject:[[[DeletedNoteObject alloc] initWithExistingObject:aNote] autorelease]];
}
- (void)_registerDeletionUndoForNote:(NoteObject*)aNote {

0 comments on commit dc55df2

Please sign in to comment.