Keary,  

You made me question what I thought I knew, so I went back and changed my 
method returning the number of rows (views) to log its operation so I could 
make sure it was returning 16 as it should. And of course I found it was 
returning 0.

What I previously didn’t know is that the table loads its data as soon as you 
set the data source property. It never occurred to me the table data would be 
loaded before execution of windowDidLoadFromNib ever finished, so I was 
creating stuff in the wrong order. Once I rearranged that function body to set 
the table’s delegate and data source last, after creating everything else 
including all the demo views, everything worked as expected.

So thanks for the good advice!  

--  

Charles


On Sunday, October 5, 2014 at 9:51, Keary Suska wrote:

> On Oct 4, 2014, at 8:49 PM, Charles Jenkins <cejw...@gmail.com 
> (mailto:cejw...@gmail.com)> wrote:
>  
> Sometimes the most obvious issue is the culprit--is the delegate outlet set? 
> If so, are any other delegate methods being called? Note that you might not 
> get a call for certain delegate methods if there is no data to show--i.e. if 
> the table view doesn't otherwise believe it has data to show, either via 
> bindings or data source methods.

_______________________________________________

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

Reply via email to