• 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: A Stack of Editors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A Stack of Editors


  • Subject: Re: A Stack of Editors
  • From: Charles Jenkins <email@hidden>
  • Date: Mon, 06 Oct 2014 08:13:11 -0400

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 <email@hidden (mailto:email@hidden)> 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 (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


References: 
 >A Stack of Editors (From: Charles Jenkins <email@hidden>)
 >Re: A Stack of Editors (From: John Joyce <email@hidden>)
 >Re: A Stack of Editors (From: Charles Jenkins <email@hidden>)
 >Re: A Stack of Editors (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Validate NSDocument on Quit
  • Next by Date: Obtaining class of key at runtime
  • Previous by thread: Re: A Stack of Editors
  • Next by thread: kanban board, story map
  • Index(es):
    • Date
    • Thread