Re: View-based NSTableView strange scrolling behavior.
Re: View-based NSTableView strange scrolling behavior.
- Subject: Re: View-based NSTableView strange scrolling behavior.
- From: Graham Cox <email@hidden>
- Date: Fri, 02 Nov 2012 13:14:55 +1100
On 02/11/2012, at 1:08 PM, Dmitriy Balakirev <email@hidden> wrote:
> - (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView {
> return 1000;
> }
> is the only code added to the cocoa application template. Then I drop table to window, set number of columns to 10 and connect app delegate as table datasource.
> But question not about how to implement nstableview datasource. It is about why table view properly scroll (using keyboard arrow keys) ONLY AFTER I press Home or End buttons.
Well, your datasource MUST implement the MANDATORY methods. If it doesn't the table will not behave properly. You seem to think it doesn't matter that your datasource is wrong; I suggest it is entirely the reason for your problems. If you don't implement things as they are required to be implemented, you can't ignore that fact and still expect things to work.
You must also be ignoring warnings either at compile and/or run time that your datasource is insufficient, which are trying to tell you what the problem is.
--Graham
_______________________________________________
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