• 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: View-based NSTableView strange scrolling behavior.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: View-based NSTableView strange scrolling behavior.


  • Subject: Re: View-based NSTableView strange scrolling behavior.
  • From: Dmitriy Balakirev <email@hidden>
  • Date: Fri, 02 Nov 2012 06:30:07 +0400

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 <email@hidden> написал(а):

>
> 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


  • Follow-Ups:
    • Re: View-based NSTableView strange scrolling behavior.
      • From: Fritz Anderson <email@hidden>
References: 
 >View-based NSTableView strange scrolling behavior. (From: Dmitriy Balakirev <email@hidden>)
 >Re: View-based NSTableView strange scrolling behavior. (From: Graham Cox <email@hidden>)
 >Re: View-based NSTableView strange scrolling behavior. (From: Dmitriy Balakirev <email@hidden>)
 >Re: View-based NSTableView strange scrolling behavior. (From: Graham Cox <email@hidden>)
 >Re: View-based NSTableView strange scrolling behavior. (From: Dmitriy Balakirev <email@hidden>)
 >Re: View-based NSTableView strange scrolling behavior. (From: Graham Cox <email@hidden>)

  • Prev by Date: Macro challenge with variable arguments
  • Next by Date: Re: Macro challenge with variable arguments
  • Previous by thread: Re: View-based NSTableView strange scrolling behavior.
  • Next by thread: Re: View-based NSTableView strange scrolling behavior.
  • Index(es):
    • Date
    • Thread