Good day.
I am writing a Mac application for viewing photos and I can’t implement double-click file opening.
I know that there is an app delegate method:
- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename
and that when the user opens the file by double clicking, it works before the method:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
and later method:
- (void)applicationWillFinishLaunching:(NSNotification *)aNotification
But how to correctly use them so that the file opens when the application is completely closed (unloaded from memory)?
Help me please.