Re: Changing values of an array of objects.
Re: Changing values of an array of objects.
- Subject: Re: Changing values of an array of objects.
- From: Chuck Hill <email@hidden>
- Date: Fri, 18 Jul 2003 14:32:24 -0700
- Organization: Global Village Consulting, Inc.
The NSArray docs state this for takeValueForKey:
This method invokes takeValueForKeyPath on each element in this array
with the arguments value and key For example, if key is "firstName"
and value is "Unknown", this method sets the firstName property of
each element to "Unknown".
Hence:
nsa.takeValueForKey(value,key);
Try it!
Chuck
Ricardo Strausz wrote:
Hola!
If I have an array of objects (say, nsa = displayGroup.allObjects()) and
I want to change homogeneously a value in all of them (say,
eo.takeValueForKey(value,key)),
can I use nsa.makeObjectsPerformSelector(takeValueForKey,{value,key})
insteed of a for() loop??
If some one have experience in this, I will appreciate any comment.
Dino
http://homepage.mac.com/strausz
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.