• 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: NSTableView registerNib:forIdentifier: - multiple IDs in a single NIB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTableView registerNib:forIdentifier: - multiple IDs in a single NIB
      • From: Alex Kac <email@hidden>
References: 
 >NSTableView registerNib:forIdentifier: - multiple IDs in a single NIB (From: Alex Kac <email@hidden>)

  • Prev by Date: Re: drawRect: wrong scale in a programmatically created window
  • Next by Date: Re: NSTableView registerNib:forIdentifier: - multiple IDs in a single NIB
  • Previous by thread: NSTableView registerNib:forIdentifier: - multiple IDs in a single NIB
  • Next by thread: Re: NSTableView registerNib:forIdentifier: - multiple IDs in a single NIB
  • Index(es):
    • Date
    • Thread