How your explain that: After run that simple app works improperly. Then, I press Home button - now that same app works very properly? What magic happens when I press Home (End)?
In real code the scroll behavior is exactly the same. 02.11.2012, в 6:14, Graham Cox <graham....@bigpond.com> написал(а): > > On 02/11/2012, at 1:08 PM, Dmitriy Balakirev <dmitriy.balaki...@gmail.com> > 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com