Re: A GNUstep template to replace WMText dockapp

Patrick CARDONA <[email protected]> Sun, 22 Mar 2026 18:50:00 +0100
Newsgroups gmane.comp.lib.gnustep.general
Message-ID <df4e68c177493fb552f25e21033227d0@pi500>
Hello,

I fixed the non-refreshing icon issue:

I moved:
> // Set the custom icon image for the app
>   [NSApp setApplicationIconImage: iconImage];

to the end of 'drawRepOnIcon', just before:
> [rep release];

Now this is fixed, and as I can reduce the delay of the timer loop to 
1.0, I get a precise Icon content as expected.

Going now to the next stage... ;-)

On 2026-03-21 23:58:18 +0100 Patrick CARDONA <[email protected]> 
wrote:

> Hello,
> 
> Thanks to Richard, I was able to fix the autorelease issue. The app 
> is 
> building and running  without segfault now.
> 
> To base the demo on a concrete example, I try to get and to display 
> uptime in 
> the AppIcon.
> 
> According to the log, the loop seems to work as expected, but after a 
> correct 
> first init state, the appIcon does not refresh its content as 
> expected.
> 

> (...)

Kind Regards,
Patrick

-- 
Patrick Cardona - Pi500 - GNU/Linux aarch64 (Debian 13.4)
Xorg (1:7.7+24) - libcairo2 (1.18.4-1+rpt1 arm64) - Window Maker 
(0.96.0-4)
GWorkspace (1.1.0 - 02 2025) - Theme: AGNOSTEP - Classic - MUA: 
GNUMail (1.4.0 - rev.947)