discuss-gnustep
[Top][All Lists]
Advanced

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

Re: GNUMail and Pantomime maintenance release


From: Philippe Roussel
Subject: Re: GNUMail and Pantomime maintenance release
Date: Tue, 08 Nov 2011 18:18:30 +0100

Le mardi 08 novembre 2011 à 17:43 +0100, Wolfgang Lux a écrit :
> Philippe Roussel wrote:
> 
> > 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.
> 
> Maybe you could make your view a subview of the app icon's content
> view rather than replacing the content view? In that case you'd
> probably want to remove the original app icon image by calling
> setImage: nil on the existing content view.
> 
> I haven't tested whether this works, though.

Well, thanks for the idea, I will test it when I find the time.

Philippe





reply via email to

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