[OGo-Developer] reload contents of page when clicking a tab?

Sebastian Reitenbach developer@opengroupware.org
Fri, 13 Apr 2007 19:00:10 +0200


Hi,
> 
> If you always want to refresh you can do this:
> 
>    - (NSArray *)myCalls {
>      if (self->myCalls == nil)
>         .... calculate them
>      return self->myCalls;
>    }
> 
>    - (void)sleep {
>      [self->myClass release]; self->myCalls = nil;
>      [super sleep];
>    }
> 
> Its not exactly recommended because accessor methods should not have  
> side effects, but its used that way in a lot of places nevertheless ...
> 
works like a charm, thanks a lot.

sebastian