• 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: Calling a method on objects in an NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling a method on objects in an NSArray


  • Subject: Re: Calling a method on objects in an NSArray
  • From: Matt Gillette <email@hidden>
  • Date: Thu, 13 May 2004 10:49:39 -0700

David,

From the documentation of NSArray1:

NSArrays makeObjectsPerformSelector: and
makeObjectsPerformSelector:withObject: methods let you send messages to
all objects in the array. To act on the array as a whole, a variety of
other methods are defined. You can create a sorted version of the array
(sortedArrayUsingSelector: and sortedArrayUsingFunction:context:) 

1. http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSArray.html#//apple_ref/occ/cl/NSArray

Matt

On May 13, 2004, at 9:23 AM, David Piasecki wrote:

> Is it possible, as in some other languages, to call a method on all
> objects in an array via one line of code (no loops)?
>
> David
> _______________________________________________
> 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.
_______________________________________________
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.


References: 
 >Calling a method on objects in an NSArray (From: "David Piasecki" <email@hidden>)

  • Prev by Date: [ANN] Searchable Cocoa-Dev Web Archive
  • Next by Date: Re: Calling a method on objects in an NSArray
  • Previous by thread: Re: Calling a method on objects in an NSArray
  • Next by thread: Re: Calling a method on objects in an NSArray
  • Index(es):
    • Date
    • Thread