How to get more items in "Open Recent" menu ?

I have seen applications with more then 10 items in their "Open Recent" menu, how do they do that ?
NSRecentDocumentsLimit key in the defaults of the application.
You can type in

defaults write
application_domain_name NSRecentDocumentsLimit my_new_limit
As a developer, you can also change the defaults programmatically in your application:
[[NSUserDefaults standardUserDefaults] setInteger:
my_new_limit forKey:@"NSRecentDocumentsLimit"];
[[NSUserDefaults standardUserDefaults] synchronize];
The number of items in the "Open recent" menu is controller by the