what does "property with 'weak' attribute must be of object type" really mean?

Viewed 9638

I have this in my interface:

@property (nonatomic, weak) NSTimeInterval *timeStamp;

Which my logic told me, I need a time stamp object, that only is going to be used by this class within the context of its instantiation, so "weak" seemed to be logical to me-- but XCode tells me "property with 'weak' attribute must be of object type"... If I just do:

@property (nonatomic) NSTimeInterval *timeStamp;

Then the error goes away, but I am not sure I understand why...

1 Answers
Related