ユーザーがゴミ箱を空にしたときに、私のココア アプリはどのように通知を受け取りますか。これは私がこれまでに持っているものです:
NSNotificationCenter *notCenter = [[NSWorkspace sharedWorkspace]
notificationCenter];
AppDelegate *mainController = [[AppDelegate alloc] init];
[notCenter addObserver:mainController
selector:@selector(handleTrashEmpty)
name:NSWorkspaceRecycleOperation object:nil];
しかし、ユーザーがゴミ箱を空にしても何も表示されない場合。このコードが機能しない理由はありますか?