I have NSDate property
In .h
...
@interface MyAppDelegate : NSObject <UIApplicationDelegate> {
...
NSDate *pageStartDate;
...
}
...
@property (nonatomic, retain) NSDate *pageStartDate;
...
In .m
...
-(void)myMethod
{
...
// set date of start showing page
NSDate *tempStartDate = [NSDate date];
[tempStartDate retain];
pageStartDate = tempStartDate;
[tempStartDate release];
...
}
...
After running this code the [tempStartDate retainCount]
= 1 - is it normal?
If I write self.pageStartDate = tempStartDate
than [pageStartDate retainCount]
= 2.
Is there right use of NSDate, or not is?