• 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: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView


  • Subject: Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView
  • From: Graham Cox <email@hidden>
  • Date: Fri, 26 Jun 2009 12:00:38 +1000


On 26/06/2009, at 11:33 AM, Peter Zegelin wrote:

I always thought awakeFromNib would get called first. But in this case not so. So can anyone suggest why, and a workaround?


This sounds a bit odd, and I can't say why. But I can offer a workaround:

-(int)numberOfRowsInTableView:(NSTableView *)tableView{

	if( numColumns == 0 )
		return myDataSize / 8;
        else
		return myDataSize/numColumns;
}


;-)

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


References: 
 >NSViewController awakeFromNib and NSTableView numberOfRowsInTableView (From: Peter Zegelin <email@hidden>)

  • Prev by Date: Re: Substituting characters in a UITextField
  • Next by Date: Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView
  • Previous by thread: Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView
  • Next by thread: Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView
  • Index(es):
    • Date
    • Thread