Skip to content

Xamarin Mac NSTableView views/cells outlets are always null

Notifications You must be signed in to change notification settings

github1337/XamarinMacNSTableViewTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

I'm having trouble getting custom NSTableView Cells/Views in my Xamarin Mac project to work. The cells are rendered but their outlets are always null, even after AwakeFromNib.

I have tried the following:

  • NSTableCellView in Table View XIB
  • NSView in Table View XIB
  • NSView custom instantiation etc.

e.g. tableView.MakeView("Entry", null); in GetViewForItem after tableView.RegisterNib(new NSNib("Entry", NSBundle.MainBundle), "Entry"); or NSBundle.MainBundle.LoadNibNamed(name, null, out arr); Both didn't work.

Here's a Git repo with everything I tried https://github.com/github1337/XamarinMacNSTableViewTest

The console output shows that the outlets are null.

Any help to get this working would be much appreciated. Thanks in advance!

About

Xamarin Mac NSTableView views/cells outlets are always null

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages