Re: A Challenge WAS Accessor method idioms...
Re: A Challenge WAS Accessor method idioms...
- Subject: Re: A Challenge WAS Accessor method idioms...
- From: Matt Neuburg <email@hidden>
- Date: Thu, 24 Mar 2005 17:03:18 -0800
On Thu, 24 Mar 2005 14:11:21 -0500, John Brownlow <email@hidden>
said:
>I'm a HUGE fan of Accessorizer but here is 50+ lines for a single
>array. Let's say I have ten arrays, not at all unlikely... now it's 500
>lines of mechanical code that I haven't ever read. Yuk. And I am
>completely reliant on the genius of Accessorizer because believe me I
>am NOT going to type those 500 lines myself and neither is anyone else.
>
>There are cases where it makes a lot of sense, especially when you are
>implementing something that is a bit off kilter. But in my own
>experience stuff like this below actually makes your code harder to
>maintain.
>- (unsigned int) countOfThings;
>- (id) objectInThingsAtIndex: (unsigned int)index;
>- (void) insertObject: (id)anObject inThingsAtIndex: (unsigned
>int)index;
>- (void) removeObjectFromThingsAtIndex: (unsigned int)index;
>- (void) replaceObjectInThingsAtIndex: (unsigned int)index withObject:
Isn't this what macros are for? Take the metaobject MPWFoundation ball and
run with it, as it were... m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden