• 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
Loop through NSTableView to set NSCell state
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Loop through NSTableView to set NSCell state


  • Subject: Loop through NSTableView to set NSCell state
  • From: Onar Vikingstad <email@hidden>
  • Date: Sun, 14 Apr 2002 16:28:10 +0200

I have been trying to find a way to loop through a NSTableView, row by row, to check the stringValue of one of the columns up against the contents of an array I have. If the array-contents match the stringValue it's just supposed to check the NSButtonCell with setNextState.

I assume this can be done with using an enumerator, but how? I have tried fiddling with doing a selectAll on the NSTableView, creating an selectedRowEnumerator out of that, and then selecting the first row and start looping through, going down the table row by row. But this feels like an awfully hard approach, and there must be an easier way!

Hope someone will give me some suggestions or sample code to get me on the right track here...



Kind regards,
Onar Vikingstad
_______________________________________________
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: Loop through NSTableView to set NSCell state
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Calling IB Actions In PB
  • Next by Date: Re: Calling IB Actions In PB
  • Previous by thread: Re: NSTextView question
  • Next by thread: Re: Loop through NSTableView to set NSCell state
  • Index(es):
    • Date
    • Thread