Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7595243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:37:35+00:00 2026-05-30T21:37:35+00:00

I am making an application where there are 32 Check Box, and a NSTextField.

  • 0

I am making an application where there are 32 Check Box, and a NSTextField.
If the user clicks on the NSTextField the buttons shall assume the value that describes the binary rappresentation of this number.
No problem receiving the “clicked” action on the NSTextField, but for the buttons I have declared an array of 32 NSButtons:

#import <Foundation/Foundation.h>


@interface Handler : NSObject 
{
    @private
    IBOutlet NSTextField* textField;
    IBOutlet NSButton* bits[32];     // here are the buttons
}

- (void)awakeFromNib;
- (void) setTextField : (int) value;
- (int) getTextField;
@end

But when I try to link a Check Box with the IBOutlet “bits”, I can’t do it for each member.
So I can only make that array of 32 pointers to NSButton to one box.
I also show an image:

Interface builder

This is a problem for me, do I have to manually declare 32 different outlets with 32 different names?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:37:37+00:00Added an answer on May 30, 2026 at 9:37 pm

    This is probably a good example of using an NSMatrix object.

    You can add one button to your interface and then with the button selected in Xcode 4 go to Editor > Embed In > Matrix. Then you can option drag on a corner of the button to expand it into a matrix.

    NSMatrix allows you to retrieve the cell values by searching for a given tag or by column/row coordinates.

    HOW TO:
    1) Embedding the NSButton object:

    Creating a button matrix

    2) Option-Drag any of the button corners to expand the matrix:

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making an application that involves controlling Safari from Applescript. Is there a
I'm making an application that contains button's and those buttons control an embedded browser.
Assume a blackboard type application. There are 2 Projects - ProjectA and ProjectB. User
EDITED: Java httpPost into .asp form I am making an application that will display
I'm making an application that will monitor the state of another process and restart
I am making an application where the user picks a file from: FilePicker.PickFile(filename) where
I need my application to check for internet connectivity on my user's computer. If
I'm new to Rails and making application where college members (teachers and students) can
Im making an application in cocoa and wanted to see if some strings in
I making an application with my own keyboard and I want to completely DISABLE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.