Re: AwakeFromNib called twice for sheet
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