discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Associating bundle directories with app


From: Ivan Vučica
Subject: Re: Associating bundle directories with app
Date: Tue, 25 Jan 2011 21:41:12 +0100



On Sun, Jan 23, 2011 at 14:30, David Chisnall <theraven@sucs.org> wrote:

Perhaps NSApplication would be a better place for this?  A lot of applications won't touch NSWorkspace in normal operation, but they will all use NSApplication (or UIApplication, in the future...).  The NSWorkspace code, called by make_services, would then:

1) Look in the cache and check that all apps in the cache still exist.
2) Scan Applications directories for new apps and add them to the cache.

This would mean that anything using NSWorkspace would see all apps that were either installed in their normal locations, or had been explicitly launched at least once by the user from another location.


This sounds great! However, perhaps checking standard directories for applications and reading all Info.plists is not wise for performance reasons; perhaps leaving that task to make_services  would be a good idea, while just making sure that cached apps exist, and that currently running app is registered?

-- 
Regards,

Ivan Vučica


reply via email to

[Prev in Thread] Current Thread [Next in Thread]