Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView
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