discuss-gnustep
[Top][All Lists]
Advanced

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

NSCalendarDate ?


From: Marko Mikulicic
Subject: NSCalendarDate ?
Date: Sat, 25 Aug 2001 03:26:16 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801

Hello,


I tried subclassing NSCalendarDate (in a gstep-db app, for customized datatyping), and I found that the NSCalendarClass is hard-wired inside
instance creation method of NSCalendarClass (instead of using "self").

Anyone knows why it does not send [self alloc] ... ?

Thanks

Marko



the offending method:

NSCalendarDate.m:

+ (id) dateWithYear: (int)year
              month: (unsigned int)month
                day: (unsigned int)day
               hour: (unsigned int)hour
             minute: (unsigned int)minute
             second: (unsigned int)second
           timeZone: (NSTimeZone *)aTimeZone
{
  NSCalendarDate *d = [[NSCalendarDate alloc] initWithYear: year
                                                     month: month
                                                       day: day
                                                      hour: hour
                                                    minute: minute
                                                    second: second
                                                  timeZone: aTimeZone];
  return AUTORELEASE(d);
}




reply via email to

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