It is a warning to indicate that an inconsistency has been detected in the
- When the native NSOutlineView is first referenced in .NET, it is
referenced as a Monobjc.Cocoa.NSTableView (maybe as an outlet or anything
else). The native reference is associated to a Monobjc.Cocoa.NSTableView
- When accessing the reference later, a Monobjc.Cocoa. NSOutlineView wrapper
is requested, but the cache only contains a Monobjc.Cocoa.NSTableView
wrapper. This forces the bridge to create a new wrapper for the native
reference, hence the warning.
The main philosophy behind the cache is provide a one-to-one mapping between
native references and wrappers. This warning only says that there is
In order to solve the issue, you have to find the part of code that
reference the NSOutlineView as a Monobjc.Cocoa.NSTableView in order to make
the cache happy.
Regards, Laurent Etiemble.
2010/5/12 Mario De Clippeleir <mari...@sydec.be>
> Whenever i open up a new window with NSOutlineView i get the following
> warning :
> 634092576138931220 [WARN ] ObjectiveCRuntime - Cannot safely cast cached
> object. The cache contains an instance of class 'NSTableView' and the class
> 'NSTableView' is not assignable to the class linked to
> 'Monobjc.Cocoa.NSOutlineView'. The class hierarchy of the cache instance is:
> -> NSTableView -> NSControl -> NSView -> NSResponder -> NSObject.
> How should i treat this ?