Le mardi 08 novembre 2011 à 09:25 -0600, Germán Arias a écrit : > On 2011-11-08 03:13:00 -0600 Wolfgang Lux <[email protected]> wrote: > > > Fred Kiefer wrote: > > > >> On 08.11.2011 06:54, Germán Arias wrote: > >>> There are some minor changes in GNUMail (like a dot at AppIcon when > >>> GNUMail is hidden), > >> > >> This sounds like a nice little feature. Should we add this for all GNUstep > >> applications? > > > > Maybe I'm misunderstanding the change in GNUMail, but we already draw a dot > > into the app icon when an application is hidden. > > > > Wolfgang > > > > Yes. I add this because the AppIcon in GNUMail isn't the normal AppIcon. This > is an > instance of a class into GNUMail because it should manage the number of > unread mails, > but Ludovic forgot add the dot when the app is hidden.
Maybe there is no need to duplicate the code. For SimpleAgenda I used the code from another application that replaces the content view of the appicon with my own view. This way I can draw what I want in the view and the appicon window draws the dot when the app is hidden. This solution isn't perfect either (well, I don't know how to do it better) because a -mouseDown:(NSEvent *) is needed in the view class for the appicon to be movable. Maybe I missed something. http://coyote.octets.fr/simpleagenda/browser/trunk/AppController.m#L283 and http://coyote.octets.fr/simpleagenda/browser/trunk/AppController.m#L17 If somebody has a nicer solution to this problem, I'm all ears. Philippe _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
