• 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: "David Piasecki" <email@hidden>
  • Date: Thu, 13 May 2004 11:02:03 -0700

Yes, I just found it myself. Actually, IMHO, the manual isn't all that great, but I also can't stand overly-descriptive method names (i.e. makeObjectsPerformSelector or doThatThingThatYouDoWithThatOtherThing) in object oriented languages. Ah well... maybe I'll get used to it soon enough.

Unfortunately, makeObjectsPerformSelector:withObject only allows you to send a single object as a parameter, and that object must be an Obj-C object. I wanted to pass an NSSize structure. I'm working around it, but it's just kind of annoying.

David


On May 13, 2004, at 10:40 AM, Jonathan E. Jackel wrote:

makeObjectsPerformSelector:

RTM.

Jonathan

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.


  • Follow-Ups:
    • Re: Calling a method on objects in an NSArray
      • From: Clark Cox <email@hidden>
    • Re: Calling a method on objects in an NSArray
      • From: Allan Odgaard <email@hidden>
References: 
 >RE: Calling a method on objects in an NSArray (From: "Jonathan E. Jackel" <email@hidden>)

  • Prev by Date: Re: Calling a method on objects in an NSArray
  • Next by Date: [ANN] Searchable Cocoa-Dev Web Archive
  • 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