mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-04 16:12:58 +00:00
Improve nib2cib support for NSMatrix based radio groups.
Without this fix, a matrix with a target-action pair would crash when the cib was loaded due to the matrix having been replaced with a `CPView` (which cannot take a target-action pair). Now if the matrix is for radio buttons, the action connection for the matrix is made to the `CPRadioGroup` instead and works as expected when radio selections are made.
This commit is contained in:
1 parent
9c2cb393c2
commit
8819fd5fd7
1 file changed
+1
@@ -82,6 +82,7 @@ var NSMatrixRadioModeMask = 0x40000000,
|
||||
[self setBackgroundColor:backgroundColor];
|
||||
|
||||
self.isa = [CPView class];
|
||||
NIB_CONNECTION_EQUIVALENCY_TABLE[[self UID]] = radioGroup;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user