You're reading the error backwards: It says you're trying to assign an integer to an object variable. So you're correct that the variable is an object pointer, but YES is not a pointer to an NSDate object, it is a BOOL value (which is a kind of integer).
Up vote 0 down vote favorite share g+ share fb share tw.
I declare "extern NSDate *chooseDate" in my "global. H" file. I include this file in my "blueview" and in blueview I add the line "NSDate *chooseDate = YES".
I get the warning message as shown in the title. I have read up on this, and I understand that the warning is saying that I am trying to assign an object to an integer. The part I don't get is that I am declaring chooseDate as an NSDate in both files.
I don't understand how either is an integer. The funny part is that my program works correctly, I am just trying to get rid of this warning. Any help would be greatly appreciated.
Objective-c link|improve this question asked May 8 '11 at 21:26tombuarts405 78% accept rate.
3 YES is an integer (1). You get a warning for assigning an integer to an object variable. – ughoavgfhw May 8 '11 at 21:27.
You know, sometimes the answer is so easy you don't see it. I just removed the "YES" and the warning is no more. Thanks.
– tombuarts May 8 '11 at 22:25.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.