discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Application roles - first steps


From: Stefan Urbanek
Subject: Re: Application roles - first steps
Date: Wed, 18 Feb 2004 21:31:09 +0100

Hi,

On 2004-02-18 01:26:31 +0100 Enrico Sersale <enrico@imago.ro> wrote:

On 2004-02-16 22:37:55 +0200 Stefan Urbanek <stefan@agentfarms.net> wrote:


<snip>

Do you mean to show the value for this new .plist key in the Contents and Tools inspectors?
If so, I can add this feature in 5 minutes...


I meant to add it to the viewer window (browser/icon view). Something like 
application filename transformation before displaying. So application name will 
be displayed as something like values of one of display[1-3]:

NSString *appFileName;
NSString *appRole;

appRole = [[appBundle infoDictionary] objectForKey:@"NSApplicationRole"];

display1 = appFileName;
display2 = [NSString stringWithFormat:@"%@ (%@)",
                        [appFileName stringByRemovingPathExtension],
                        appRole];
display3 = [NSString stringWithFormat:@"%@ (%@)",
                        appRole,
                        [appFileName stringByRemovingPathExtension]];

You can also add the role into inspector, if it is no problem (it should be 
shown there regardles of user preferences). However, the point of adding it 
directly to the viewer and enabling it by default was, that users can see that 
something like roles exists. For the time being, user defaults can be used to 
configure that, no need for preferences UI, if it is a problem.

Is that possible?

Stefan
--
http://stefan.agentfarms.net

First they ignore you, then they laugh at you, then they fight you, then you 
win.
- Mahatma Gandhi






reply via email to

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