On 5 Jun 2013, at 11:41, Slex Sangiuliano <alex2...@hotmail.com> wrote:
> + gregorian = [[NSCalendar alloc] > initWithCalendarIdentifier:NSGregorianCalendar]; > + dateFormatter = [[NSDateFormatter alloc] init]; > + [dateFormatter setDateFormat:@"dd/MM/yyyy HH:mm"]; > + shortDayName = [dateFormatter shortWeekdaySymbols]; If this isn't using ARC, then you will need to put corresponding -release messages in -dealloc. > + [gregorian release]; > + [dateFormatter release]; Destroying them every second is probably not what you want to do... David On 5 Jun 2013, at 11:41, Slex Sangiuliano <alex2...@hotmail.com> wrote: > + gregorian = [[NSCalendar alloc] > initWithCalendarIdentifier:NSGregorianCalendar]; > + dateFormatter = [[NSDateFormatter alloc] init]; > + [dateFormatter setDateFormat:@"dd/MM/yyyy HH:mm"]; > + shortDayName = [dateFormatter shortWeekdaySymbols]; If this isn't using ARC, then you will need to put corresponding -release messages in -dealloc. > + [gregorian release]; > + [dateFormatter release]; Destroying them every second is probably not what you want to do... David _______________________________________________ Etoile-dev mailing list Etoile-dev@gna.org https://mail.gna.org/listinfo/etoile-dev