• 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: programatically updating UI for NSArrayContoller/NSTableView combo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: programatically updating UI for NSArrayContoller/NSTableView combo


  • Subject: Re: programatically updating UI for NSArrayContoller/NSTableView combo
  • From: Russell Gray <email@hidden>
  • Date: Sat, 9 Jan 2010 19:19:58 +1100

OK, so i checked out the link, and tried the following calls:

[subscriptions insertObject:subscriptionInfo atIndex:[subscriptions count]];

that didn't work, so I tried the following:

[subscriptionsArrayController willChangeValueForKey:@"subscriptions"];
[subscriptions insertObject:subscriptionInfo atIndex:[subscriptions count]];
[subscriptionsArrayController didChangeValueForKey:@"subscriptions"];

still, no good, so I also tried:

[subscriptionsArrayController willChangeValueForKey:@"arrangedObjects"];
[subscriptions insertObject:subscriptionInfo atIndex:[subscriptions count]];
[subscriptionsArrayController didChangeValueForKey:@"arrangedObjects"];

Am I totally missing something here?

Russell

On 09/01/2010, at 8:30 AM, mmalc Crawford wrote:

>
> On Jan 8, 2010, at 1:10 pm, Russell Gray wrote:
>
>> I am having trouble trying to get a tableView to update its contents, when bound to an NSArrayController - but only when new objects are added. removal, and updating of current objects works fine.
>>
> <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
> "Programmatic modifications to arrays not noticed by table view"
>
> mmalc
>

_______________________________________________

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: programatically updating UI for NSArrayContoller/NSTableView combo
      • From: Quincey Morris <email@hidden>
References: 
 >programatically updating UI for NSArrayContoller/NSTableView combo (From: Russell Gray <email@hidden>)
 >Re: programatically updating UI for NSArrayContoller/NSTableView combo (From: mmalc Crawford <email@hidden>)

  • Prev by Date: Re: NSFilesPromisePboardType
  • Next by Date: Re: programatically updating UI for NSArrayContoller/NSTableView combo
  • Previous by thread: Re: programatically updating UI for NSArrayContoller/NSTableView combo
  • Next by thread: Re: programatically updating UI for NSArrayContoller/NSTableView combo
  • Index(es):
    • Date
    • Thread