• 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: Dynamically adding a derived attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Dynamically adding a derived attribute (From: Lachlan Deck <email@hidden>)
 >Re: Dynamically adding a derived attribute (From: Chuck Hill <email@hidden>)
 >Re: Dynamically adding a derived attribute (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: Dynamically adding a derived attribute
  • Next by Date: Re: Multiple clients in single DB
  • Previous by thread: Re: Dynamically adding a derived attribute
  • Next by thread: Re: Dynamically adding a derived attribute
  • Index(es):
    • Date
    • Thread