Re: AwakeFromNib called twice for sheet

2012-05-12 Thread Koen van der Drift
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 mech

Re: AwakeFromNib called twice for sheet

2012-05-12 Thread Kyle Sluder
On May 12, 2012, at 6:26 AM, Koen van der Drift wrote: > I solved it by using windowDidLoad instead of awakeFromNib. It 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 embedd

Re: AwakeFromNib called twice for sheet

2012-05-12 Thread Jens Alfke
On May 12, 2012, at 5:01 AM, Koen van der Drift wrote: > But after the search when the table is displayed, awakeFromNib is called > again for the sheet, and all my data is gone. -awakeFromNib is called for each object in a loaded nib … including the nib 'owner' object. That means it's possible

Re: AwakeFromNib called twice for sheet

2012-05-12 Thread Koen van der Drift
I solved it by using windowDidLoad instead of awakeFromNib. - Koen. On May 12, 2012, at 8:01 AM, Koen van der Drift wrote: > Hi, > > My app (OSX) has a sheet to obtain data from a server and display them in an > NSTableView. So far I was using a Cell based table and it worked fine. > Yesterd

AwakeFromNib called twice for sheet

2012-05-12 Thread Koen van der Drift
Hi, My app (OSX) has a sheet to obtain data from a server and display them in an NSTableView. So far I was using a Cell based table and it worked fine. Yesterday I decided to make the table view based, following the instruction by Apple