Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 483 Vote(s) - 3.45 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create NSRadioButton Group in Xcode 7 OSX

#1
I was following [this tutorial][1] on how to create radio button group. But it seems Radio Group is no longer available in the Xcode 7 library and I didn't find much information about it. How do I create something like this:

![enter image description here][2]

Thanks very much.


[1]:

[To see links please register here]

[2]:
Reply

#2
Quoting from the [Xcode 7 release notes][1]:

> The template for Radio buttons in the Interface Builder object library is now implemented as individual NSButton objects, rather than the older NSMatrix, which is discouraged on OS X v10.8 and later. Radio buttons automatically act as a group (selecting one button will unselect all other related buttons) when they have the same superview and -action method. (16965941)

So drag individual radio buttons and make sure you connect them all to the same outlet!

[1]:

[To see links please register here]

Reply

#3
This way of doing radio button groups is "soft deprecated", follow what Xcode 7 says when selecting a radio button:

![Xcode 7 radio button][1]


[1]:

Reply

#4
Thanks to Eric's advice, I went back and placed the radio buttons in the same superview and it worked. ![enter image description here][1]


[1]:
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through