• 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
Re: Class generator script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class generator script


  • Subject: Re: Class generator script
  • From: Ondra Cada <email@hidden>
  • Date: Sun, 2 May 2004 22:12:15 +0200

Adam,

On 2.5.2004, at 21:33, Adam wrote:

> Hmm, perhaps then I am missing something. I am talking about "model"
> classes that I am creating by hand. I have a class with 10 variables
> that need a constructor, and getters and setters. Can IB do this for
> me?

First, consider refactoring: I *DO NOT* say your design is wrong for I
don't know it, but *generally* in Cocoa you make a lot less number of
classes than elsewhere. Consider using such great things like property
lists (dictionary/array nested structures) or so.

If you really need to, there is a number of accessor generators (just
search Versiontracker; for one, I believe some nice scripts for that
are part of TextExtras, which is a tool I *do* recommend anyway), or
you can use your own macros (which brings its own advantages and
drawbacks both).

Myself, I've found I'm happiest writing my accessors myself, but I
*VERY* heavily use property lists for engine.
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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: Class generator script
      • From: Adam <email@hidden>
References: 
 >Class generator script (From: Adam <email@hidden>)
 >Re: Class generator script (From: Adam <email@hidden>)

  • Prev by Date: Re: Class generator script
  • Next by Date: Question about dataWithPDFInsideRect
  • Previous by thread: Re: Class generator script
  • Next by thread: Re: Class generator script
  • Index(es):
    • Date
    • Thread