BWSplitView and PyObjc

I am trying to use Brandon Walkin BWSplitView from BWToolkit in a Cocoa PyObjc project. When I run the project, I get the following error message:

NSInvalidUnarchiveOperationException - *** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (BWSplitView)

Does this mean that his toolkit is incompatible with the PyObc project, so should I just use the default interface builder views? BWToolkit seems pretty perfect for my program, and I plan to use it elsewhere in my interface.

+3
source share
3 answers

, , BWSplitView nib/xib, . nib, (, BWSplitView). - , BWSplitView . Objective-C BWToolkit, BWSplitView . PyObjC , ( , Cocoa). , BWToolkit , ( , /Library/Frameworks ). , , objc.loadBundle, NSClassFromString .

/System/Library/Framework , Apple. , Apple (, ). Thrid-party, , /Library/Frameworks, ~/Library/Frameworks Content/Framework, .

+5

, :
 1. http://github.com/jrydberg/pyobjc-bwtoolkitframework/tree/master
 2. , BWToolkit.framework /System/Library/Frameworks ( , BWToolkit )

3. BWToolkitFramework main.py

0

We had a similar message:

*** Terminating app due to uncaught exception ‘NSInvalidUnarchiveOperationException’, reason: ‘*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (MKMapView)’

In our case, this was due to a wandering entry in the settings "Search paths in the database" in the settings of the target assembly. When this entry was cleared, the problem disappeared.

0
source

Source: https://habr.com/ru/post/1708436/


All Articles