How to select a button in a matrix of push button (Cocoa) ?

Ask a Question related to Mac Programming, Design and Development.

  1. #1

    Default How to select a button in a matrix of push button (Cocoa) ?

    The radion button was created with Interface Builder.
    How to make a default (selected) button in this matrix ?
    Alain Birtz Guest

  2. Similar Questions and Discussions

    1. Edit, Update, Cancel Push button question
      I have a Edit, Update, Cancel column in my datagrid form modifying the data in each row. These buttons are of type PushButton rather than...
    2. toggle states in fc push button component?
      i am using the fc push button component in flash mx, but i would like to be able to on press for the button to stay pressed, until pressed again,...
    3. [COCOA] Dynamic button?
      In article <1fzrife.s6p9421wrpd7mN%usenet@mile23.com>, usenet@mile23.com (Paul Mitchum) wrote: This will only work if the button actually...
    4. Problems with Push Button Event in DataGrid
      ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????...
    5. Popup Window on Button Push
      Can anyone tell me how I can open a new browser window when a button is pressed? I tried adding an <a href=...> encapsulating the button, but it...
  3. #2

    Default Re: How to select a button in a matrix of push button (Cocoa) ?

    [email]abz@videotron.ca[/email] (Alain Birtz) wrote in message news:<abz-2807030845040001@192.168.1.3>...
    > The radion button was created with Interface Builder.
    > How to make a default (selected) button in this matrix ?
    If I am understanding you correctly, you just need to send the matrix
    a

    - (void)selectCellAtRow:(int)row column:(int)column

    message to select the radio button at a given row and column in a
    matrix. If you don't want to deal with rows & columns you can also use

    - (BOOL)selectCellWithTag:(int)anInt

    assuming that you set up tags for each radio button in IB.

    Michael
    Michael Milvich Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139