Re: Dynamically adding a derived attribute
Re: Dynamically adding a derived attribute
- Subject: Re: Dynamically adding a derived attribute
- From: Ray Kiddy <email@hidden>
- Date: Wed, 25 Apr 2007 22:47:52 -0700
On Apr 25, 2007, at 10:09 PM, Lachlan Deck wrote:
Hi Chuck,
On 26/04/2007, at 2:52 PM, Chuck Hill wrote:
This is how I have always done it:
// Remove as class property
NSMutableArray classProperties = new NSMutableArray
(columnEntity.classProperties());
classProperties.removeObject(dataAccessNotifications);
columnEntity.setClassProperties(classProperties);
is dataAccessNotifications the key for the columns you want to remove?
Lachlan -
Weird as it may seem, I think you want to pass in an array of the
attributes. Use classProperties(), put that into a mutable array,
remove the ones you want to remove, and give that array to
setClassProperties().
I should probably try this, but then, you could try it also. Since
you seem so quick with the send button. :-)
- ray
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40ganymede.org
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden