From 8819fd5fd71f6c2a510557ec0ccda22f19db9c4c Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Mon, 15 Oct 2012 02:55:04 +0100 Subject: [PATCH] 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. --- Tools/nib2cib/NSMatrix.j | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/nib2cib/NSMatrix.j b/Tools/nib2cib/NSMatrix.j index 4f061a52e..f3d09cdd0 100644 --- a/Tools/nib2cib/NSMatrix.j +++ b/Tools/nib2cib/NSMatrix.j @@ -82,6 +82,7 @@ var NSMatrixRadioModeMask = 0x40000000, [self setBackgroundColor:backgroundColor]; self.isa = [CPView class]; + NIB_CONNECTION_EQUIVALENCY_TABLE[[self UID]] = radioGroup; } else {