I have a class CustomToolbarItem which inherits from NSToolbarItem. From within the CustomToolbarItem class itself, during initialisation, can I get a reference to the NSWindow instance to which it is added?
I have tried adding the following code to AwakeFromNib
but the view is null.
var window = View.Window;