Wie überprüfe (und speichere) ich den Status eines RadioButtons?

  • Wie überprüfe (und speichere) ich den Status eines RadioButtons?

    Mein Lösungsansatz ist Folgendem:

    Quellcode

    1. int rbtnState = [aRadioButton state];


    Aber die hierbei verwendete Methode scheint garkeinen Integerwert zurückzugeben, wie ich ursprünglich aufgrund der Dokumentation angenommen hatte...:
    state

    Returns the receiver’s state.

    - (NSInteger)state

    Return Value
    The receiver’s state (for possible values, see “NSCellStateValue”).

    Discussion
    Cells can have two or three states. If the receiver has two states, it returns either NSOffState (the normal or unpressed state) or NSOnState (the alternate or pressed state). If it has three, it may also return NSMixedState, indicating the feature is in effect somewhere.

    To check whether the receiver uses the mixed state, use the method allowsMixedState.

    Note that the value state returns may not be the same value you passed into setState:.

    Availability
    Available in Mac OS X v10.0 and later.
    See Also
    – setState:
    – setAllowsMixedState:

    Declared In
    NSCell.h

    (Mac OS X 10.6 Core Library > NSCell Class Reference)

    Kann mir jemand dabei weiterhelfen?
    Wer schreibt schon Signaturen... Ich brauch' keine Signatur...