Hi i have to implement save movie file into custom folder, for this i am using NSSavepanel. I am new in NSSavepanel so i am not getting idea that how i add AVCaptureMovieFileOutput object to NSSavePanel
My code is
-(void)doSaveDocument
{
NSSavePanel *savePanel = [NSSavePanel savePanel];
[savePanel setTitle:@"Save image"];
[savePanel setNameFieldStringValue:@"AnnotatedImage.mov"];
if([savePanel runModal] == NSFileHandlingPanelOKButton)
{
[self takeScreenRecording:rect saveAtPath:[savePanel URL]];
[[NSWorkspace sharedWorkspace] openURL:[savePanel URL]];
[mMovieFileOutput startRecordingToOutputFileURL:[savePanel URL] recordingDelegate:self];
}
}