How to NOT have an application added to the finders recent items list when launched from NSWorkspace.
How to NOT have an application added to the finders recent items list when launched from NSWorkspace.
- Subject: How to NOT have an application added to the finders recent items list when launched from NSWorkspace.
- From: "Bruce Wittenmyer" <email@hidden>
- Date: Tue, 23 Dec 2003 14:05:19 -0800
- Thread-topic: How to NOT have an application added to the finders recent items list when launched from NSWorkspace.
I am launching a number of documents and applications using [NSWorkspace
launchApplication:foo] and I do NOT want them to be added to the Apple
recent items menu item.
I have tried to use NSUserDefaults to read in the
'com.apple.recentitems' plist, and then restore it after I launch the
applications, but the list is different than what is actually being
shown in the menu item. From the archives, it appears that is only
written upon user logout.
I can use Cocoa or Carbon - I've looked at LaunchServices, but don't see
how to do it there either. The closest was NavServices that has a
kNavDontAddRecents flag - but I don't want a NS dialog to come up.
Creative options welcome.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.