accessor generation???
accessor generation???
- Subject: accessor generation???
- From: Ondra Cada <email@hidden>
- Date: Fri, 5 Jul 2002 13:52:40 +0200
Well, finally my curiosity made me to write this...
What is it about all the "accessor generators", "accessor creation macros"
, and what-you-have, which positively swarm here?
Perhaps the problem is that I use some wrong design principles, but in 15+
years of object programming in ObjC I've needed plain accessors of type
-blah { return blah; }
-(void)setBlah:b { [blah autorelease]; blah=[b retain]; }
so rarely, that using a generator for them would be utterly ridiculous: in
long-time average, perhaps one of twenty or thirty my property variables
needed such an accessor. In vast majority of cases there is more complex
behaviour encapsulated (ie. my API-level "accessors" rarely map directly
to property variables), and the behaviour differs for different classes
considerably...
I feel it somewhat strange: does that mean my programming style differs so
much from the one of majority of others?
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.