Re: Can you @synthesize simple arrays?
Re: Can you @synthesize simple arrays?
- Subject: Re: Can you @synthesize simple arrays?
- From: Ken Thomases <email@hidden>
- Date: Tue, 18 Nov 2008 17:59:36 -0600
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 (email@hidden)
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:
This email sent to email@hidden