• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
accessor generation???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: accessor generation???
      • From: Lance Bland <email@hidden>
    • Re: accessor generation???
      • From: Phillip Mills <email@hidden>
  • Prev by Date: NSURL + proxy or firewall
  • Next by Date: Re: NSURL + proxy or firewall
  • Previous by thread: Re: NSURL + proxy or firewall
  • Next by thread: Re: accessor generation???
  • Index(es):
    • Date
    • Thread