Hi all…
Im trying to understand why this builds and runs ok:
While this builds OK but fails on running. (Xcode complains about BAD_ACCESS or something like that.)
NSCalendar *myCalendar;
myCalendar = [NSCalendar alloc];
myCalendar = [myCalendar initWithCalendarIdentifier:NSGregorianCalendar];
Is it not the same principle as
[code]NSDate *myDate;
myDate = [NSDate alloc];
myDate = [myDate init];
// the same as:
NSDate *myDate = [[NSDate alloc] init];
[/code]
Which compiles and runs just the same.
What am i missing here ?
Regards
Dennis