That would be a derived attribute-- not what I want.... I want an attribute
that has the same ivar declaration, set/query methods, and additions to
-dealloc as any other ivar... and I want it generated automatically when I
derive the source code.
The only differences between it and a normal class attribute is:
- it can't be used as a locking attribute
- it doesn't call -willChange/-willRead when accessed/set
b.bum
Derek Eide wrote:
> yes... basically, after you've created your EO from the EOModeler, add your
> attribute into the code that it creates.
>
> eg. (added code)
> -----------------------------------------------
> String fullName;
>
> /**
> * Returns the value of fullName
> *
> * @return the value of fullName
> */
> public String getFullName() {
> String fullName;
> if (middleName != null) {
> fullName = firstName + " " + middleName + " " + lastName;
> }
> else {
> fullName = firstName + " " + lastName;
> }
> return fullName;
> }
> -----------------------------------------------