• 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
tableview multiple selected loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tableview multiple selected loop


  • Subject: tableview multiple selected loop
  • From: Amy Gibbs <email@hidden>
  • Date: Tue, 27 Jul 2010 08:53:03 +0100

Hi,

If i've got multiple rows selected in a table view, and I want to do something with each of them, do I need some kind of loop in my code, or will cocoa automatically run the code for each selected row? I can't find any kind of while, foreach type of loop example anywhere?

Thanks

(Background:
I've got a table showing instances of a product entity. I want to link those to an instance of a kit entity. they are set up as a many to many relationship in the datamodel. The kit instance is selected in another table. I want to loop through all of the selected products, and add the relationship to the selected kit)
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: tableview multiple selected loop
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: How to fastly get the active window's title?
  • Next by Date: Re: How to fastly get the active window's title?
  • Previous by thread: Re: How to fastly get the active window's title?
  • Next by thread: Re: tableview multiple selected loop
  • Index(es):
    • Date
    • Thread