Oct 6 2009
MonoTouch and null
Remember. Setting variables to null doesn’t necessarily mean null. I had an Enum variable that I would set once. So I’d declare it:
Values MyValue = null;
Then, in the natural order of things I’d check to see if it was null and assign it the current value if it was. But, oddly enough it was never null. I forgot in obj-c (or c in general) unless you specifically set a pointer it’s pointing at god knows what. So I added a None value to my enum and made sure to set it up as such:
Values MyValue = Values.None;
Mar 06, 2010 @ 17:46:08
Ha I beat yer mytown rite aid score
Mar 23, 2010 @ 22:47:47
Yeah, they changed the API and I just haven’t bothered to update my code. Got bored with being able to own the whole thing.