julius wrote:
My question is Why did Cocoa developers make NSArray count return NSUInteger?
It's impossible to answer with certainty. The person or persons who made that decision are not on this list (AFAIK). Nor have they documented the rationale behind their design decisions for posterity.
Several hypotheses have been proposed. The simplest one is that the returned type is consistent with the parameter types of all the other methods that have an index parameter.
You have countered with reasons why the various hypotheses are not compelling (in your opinion). Others have countered with reasons why your reasons are not compelling (in their opinion). Your taste is not theirs, nor is theirs yours.
In a practical sense, none of this matters. The decision was made long, long ago. It is what it is. You're too late to save that sheep from drowning.
-- GG _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com