On Nov 17, 2008, at 11:15 AM, Michael Ash wrote:

I'd recommend either using an NSArray even though you don't want to,
or writing accessors with indexes that you'd call like this:

[self setMyString:@"foo" atIndex:3];
[self myIntegerAtIndex:4];

Actually, this is a perfect example of where the KVC indexed accessors for to-many properties are appropriate.

http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/AccessorConventions.html#/ /apple_ref/doc/uid/20002174-178830-BAJEDEFB


Also, search for the word "weapons" on these pages:

http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/WhatAreBindings.html#/ /apple_ref/doc/uid/20002372-181136

http://homepage.mac.com/mmalc/CocoaExamples/controllers.html


It's a shame, though, that Objective-C 2.0 declared properties don't support this convention.


Cheers,
Ken

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to