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: Wolfgang Lux
Subject: Re: GNUMail and Pantomime maintenance release
Date: Tue, 8 Nov 2011 17:43:02 +0100

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.

Wolfgang




reply via email to

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