Re: NSTableView registerNib:forIdentifier: - multiple IDs in a single NIB
Re: NSTableView registerNib:forIdentifier: - multiple IDs in a single NIB
- Subject: Re: NSTableView registerNib:forIdentifier: - multiple IDs in a single NIB
- From: Quincey Morris <email@hidden>
- Date: Thu, 14 Jan 2016 15:05:01 -0800
- Feedback-id: 167118m:167118agrif8a:167118sEQbkgXpg7:SMTPCORP
On Jan 14, 2016, at 14:38 , Alex Kac <email@hidden> wrote:
>
> I can’t seem to get a good answer to if this should work or not (having multiple cellViews in one NIB).
No. There are 2 top level objects in your nib, but there’s nothing that tells the table view machinery which one to use. (Normally, you’d use outlets in File’s Owner to tell them apart, or iterate through them yourself, looking for — say — a view tag. But there’s nothing that going to make NSTableView do that.)
Instead, you should use two NIBs with different names and one view each.
_______________________________________________
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