3

I have two NSMatrix radio controls in different places in my app. I am developing on 10.8, using the 10.8 SDK and targeting 10.7. The matrixes work perfectly on my development computer, but when I test on a Mac running 10.7, neither matrix appears. I've checked the auto-layout struts, I've made sure they aren't set to hidden. They're just not appearing at all.

colincameron
  • 2,696
  • 4
  • 23
  • 46

2 Answers2

2

I was having a similar problem, but in my UI from three NSMatrix radio controls in different places (different views in different xib's) two were displayed correctly on 10.7, one not. I tried different things, in the end I deleted this NSMatrix and placed it again. I unchecked both "Automatically Resizes Cells" and "Auto Calculates Cell Size" in the size inspector. And very important: I checked all auto layout constraints in the whole view and made sure that all objects have vertical/horizontal spacing (between each other) or leading/trailing space to superview constraints, the top object a top space to superview and the bottom object a bottom space to superview constraint. Et voila, it's showing up finally also on 10.7!

Hope you can solve your problem in a similar way. Looks like NSMatrix is acting very diva-like on 10.7 with auto layout!

keeluu
  • 116
  • 2
  • 5
  • This worked a treat - I had to mess about with the constraints a bit as well, but my NSMatrixes are now visible on 10.7 - thanks again! – colincameron May 09 '13 at 11:12
0

Try to disable auto layout completely. Uncheck "Use Auto Layout" in the file inspector of the relevant nib. It did the trick for me.

mghez
  • 106
  • 1
  • 3
  • Thanks for the answer, but I'm using some of the features of Auto Layout and would rather keep it. I'll try disabling it to see if that helps, but I need a solution that lets me use it. – colincameron Apr 02 '13 at 21:31