»(page 578) The use of the CountAndSet struct to return a pair of values from a method will fail with ARC. Change it to return a dictionary instead. (which is what it really should have done in the first place. mea culpa)«
But yes, to use a dictionary, you’d wrap the NSUInteger into an NSNumber and put it in there.
For this example, going from weak to strong is OK. If your deployment target is 10.7 or beyond, you can use weak references for everything except the text view. By default desktop OS X has weak references to views in the nib, as opposed to iOS which has strong references (at least until the latest Xcode versions, where it flips the other way ). When you have setters/getters, the nib loading machinery will vector through those, so you can get whatever memory management semantics you want. Just remember to release references to stuff in the nib (or nil them under ARC) if you’re going to be wanting to free the stuff loaded from the nib.