#import "BPNoteWriter.h" #import "BPNoteDocument.h" #import "BPDocumentViewManager.h" #import "BPMailSender.h" @implementation BPNoteWriter - (IBAction)writeNewNote:(id)sender { BPNoteDocument *newNote = [[[BPNoteDocument alloc] initWithBodyText:@""] autorelease]; // set icon //NSImage *img = [NSImage imageNamed:@"note.gif"]; //[newNote setIcon:img]; // make document editable [newNote setEditable:YES]; // open the new email editing window [docViewManager openStandaloneViewerForDocument:newNote]; } - (void)sendNoteAsEmail:(BPNoteDocument *)note { [mailSender writeNewEmailWithSubject:[note generateLabel] body:[note body] to:[NSArray array] cc:[NSArray array] attachments:[note attachments]]; } @end