On 4/4/07, Isaiah Beerbower <[EMAIL PROTECTED]> wrote:
Yen-Ju Chen wrote: > On 4/4/07, Isaiah Beerbower <[EMAIL PROTECTED]> wrote: >> Yen-Ju Chen wrote: >> > On 4/4/07, Isaiah Beerbower <[EMAIL PROTECTED]> wrote: >> >> Yen-Ju Chen wrote: >> >> > It you look at the implementation, >> >> > what you need is an GNUstep application which: >> >> > 1. have no main menu. >> >> > 2. have no icon window >> >> > 3. advertise its service >> >> > 4. application terminates when the last window is closed. >> >> > All of them can be done with GNUstep. >> >> >> >> If, however, we make our own version of NSApplication and >> >> NSApplicationMain() we can give services the behavior that we want, >> that >> >> much easier. Instead of creating an application in just the right >> way to >> >> fit in, a service would act that way by default. >> > >> > NSApplication does much more things. >> > So if we can use NSApplication to get the same result, why make our >> own ? >> >> We can subclass NSApplication and change only what we want to be >> changed. :) > > Then let's clarify what is the goal first. > Which part of NSApplication do we need to subclass in order to reach > your proposal ? > I already have my suggestions. > What else is missing ? Nothing as far as I know. I would however expound upon #3. There should be a standard way to publish its service. This however would be better as a group discussion, as I don't think I have a firm grasp of *how* the services are intended to work internally.
A short answer for #3 is that you put a dictionary of service in properly list of each application and GNUstep will figure that out. :D Anyway, you can read document regarding Service on Cocoa. It works the same way as GNUstep. Yen-Ju
If all services are to be document oriented, there should also be some integration with the Etoile document class. I'm not sure that this is the way its planned though... (i.e. this is the way I think it should be, but I'm not sure what the general opinion is; if any) Isaiah Beerbower _______________________________________________ Etoile-discuss mailing list [email protected] https://mail.gna.org/listinfo/etoile-discuss
_______________________________________________ Etoile-discuss mailing list [email protected] https://mail.gna.org/listinfo/etoile-discuss
