Re: NSTableView how to sort rows after modify datasource array
Re: NSTableView how to sort rows after modify datasource array
- Subject: Re: NSTableView how to sort rows after modify datasource array
- From: Peter <email@hidden>
- Date: Fri, 12 Oct 2012 10:15:40 +0200
Am 02.10.2012 um 11:56 schrieb Евсеев Алексей:
> sorry for my english
>
> I have a form with NSTableView and two button "add" and "remove"
>
> "Add" button add's item into datasource array. And new row will show only after restart program.
>
> "Remove" button remove item from array. While select another rows deleted rows will empty but visible.
>
> how i may reload table data. I test table.reload that no visible effect.
>
[myTableView reloadData]
if you are using a data source - which is what your message suggests.
If you switch to an NSArrayController it will do that auto-magically for you.
> Thank you.
> Aleksey.
> _______________________________________________
>
> 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
>
_______________________________________________
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