• 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: AwakeFromNib called twice for sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AwakeFromNib called twice for sheet


  • Subject: Re: AwakeFromNib called twice for sheet
  • From: Koen van der Drift <email@hidden>
  • Date: Sat, 12 May 2012 18:07:49 -0400

On May 12, 2012, at 3:53 PM, Kyle Sluder wrote:

> t would be good for you to understand why this is happening.
>
> When building a view-based table in IB, the NSTableCellView instances you see are actually contained within embedded nibs. This makes sense, because nibs are the standard mechanism by which Cocoa archives and instantiates view instances.

Yes, I discovered that as well by putting a NSLog() inside awakeFromNib, it fired about eight times, which is the number of views that are visible in the tableview.

Glad I choose wisely to solve it.  I also found the WWDC 2011 video on View based tableviews, which has a lot of info. I am still struggling a bit with the layout and appearance of all the textviews inside the NSTableCellView, but I'm sure I'll get that figured out.

- Koen.
_______________________________________________

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: 
 >AwakeFromNib called twice for sheet (From: Koen van der Drift <email@hidden>)
 >Re: AwakeFromNib called twice for sheet (From: Koen van der Drift <email@hidden>)
 >Re: AwakeFromNib called twice for sheet (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: mutableBytes Creates Autoreleased Objects
  • Next by Date: multi-window document best practices?
  • Previous by thread: Re: AwakeFromNib called twice for sheet
  • Next by thread: Re: AwakeFromNib called twice for sheet
  • Index(es):
    • Date
    • Thread