2 ms·
Heh, as a person that loves Cocoa but doesn't own an iOS device (ok, I do have an iPod touch I got for free with my MBP), initializers like that are all over my
by natesm 15y ago
Heh, as a person that loves Cocoa but doesn't own an iOS device (ok, I do have an iPod touch I got for free with my MBP), initializers like that are all over my code.
- Greenisus 15y agoinitializers should look like that. the problem is this: title = aTitle; he should say self.title instead to avoid memory issues.
- natesm 15y agoOh, what I meant is that on the Mac we can use garbage collection, so it's not always a problem. I don't really like the property dot syntax though, I always use the `setProperty:` form for consistency (is it a struct or an object? why is the = operator sending an Obj-C message?)