• 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
Binding NSTreeController to NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding NSTreeController to NSArray


  • Subject: Binding NSTreeController to NSArray
  • From: Caleb Cannon <email@hidden>
  • Date: Fri, 16 Feb 2007 03:58:57 -0800

I'm binding the outline column of an NSOutlineView to an NSTreeController. The tree controller is in turn bound to an NSArray that I create using a fetch request.

What is the proper way to inform the tree controller that the contentArray has been updated? I've tried using

[self willChangeValueForKey:@"filteredTitles"];
[self willDidChangeValueForKey:@"filteredTitles"];

in succession but it seems that the object count is not being updated along with with content:

*** NSTimer discarding exception '*** -[NSCFArray objectAtIndex:]: index (80) beyond bounds (80)' that raised during firing of timer with target 146b930 and selector '_sendPartialString'

filteredTitles is a function in my app delegate that executes the fetch request and returns an NSArray.

- (NSArray *)filteredTitles { ... }

Thanks,
Caleb
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Binding NSTreeController to NSArray
      • From: John Harte <email@hidden>
  • Prev by Date: scrollRectToVisible:
  • Next by Date: Re: Binding Master to Detail in a NSTableView With CoreData
  • Previous by thread: scrollRectToVisible:
  • Next by thread: Re: Binding NSTreeController to NSArray
  • Index(es):
    • Date
    • Thread