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 6160687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:20:53+00:00 2026-05-23T21:20:53+00:00

I am trying to make a GUI for a simple hex editor that I

  • 0

I am trying to make a GUI for a simple hex editor that I have made. But I can’t enable any of the default menu items (i.e. “Open…”, “Save”, etc) No matter what I do they are always grayed out and un clickable.

I have tried to link the “Open…” menu item to the First Responder Object’s received action openDocument: as well as making a new class name FileMenuController.m that only has one method -(IBAction)openDocument:(id)sender; I am new to Xcode, Interface Builder, and Objective-C and at a loss for how to proceed.

Note: This is not a document based application.

Thanks for the help!

  • 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-23T21:20:53+00:00Added an answer on May 23, 2026 at 9:20 pm

    You’ve got the right idea. There are two ways to enable menu items, as described in Enabling Menu Items. With automatic enabling, the system will check the responder chain looking for objects that implement the action for each item in the menu. If it finds a responder with an appropriate action, it enables that menu item.

    So, you’ve connected your menu item to the first responder, and you’ve implemented the same action in your FileMenuController class. Other things you need to do are:

    • Make sure that FileMenuController inherits from NSResponder, so that it can be part of the responder chain
    • Create an instance of FileMenuController and make sure that it’s part of the responder chain.

    In truth, you probably don’t want a separate object just to manage the File menu. Instead, you’d normally put your -openDocument: action in your application delegate, since that’s always part of the responder chain and because opening a document is something that the application does (as opposed to, say, a window or view). Other commands in the same menu, like Save, Save As, Close, and Print would be implemented not by the app delegate but by the document, window controller, or whatever object manages the document/file. This way, the Open command will pretty much always be enabled (since the app delegate is pretty much always in the responder chain), but Save, Close, and Print will only be enabled when there’s a document available to handle those commands.

    For completeness, the other way to manage menu item enabling is the manual way, where you specifically set the enabled/disabled status of each item. I don’t think this is what you want for this task, though.

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

Sidebar

Related Questions

i'm trying to make a simple GUI with QT 4.6. i made a separete
I am trying to make a simple GUI, but am running into some errors.
I am trying to make a gui with Glade 3 (gtk) and ruby but
Trying to make a make generic select control that I can dynamically add elements
I am trying to build a simple menu-based GUI with J2ME. The menu entries
I'm trying to make a small Flash game that has a GUI, which is
I'm trying to make a simple GUI calculator in Python with Tkinter. However the
Im trying to make a simple downloader, but i cant make it to update
i am trying to make a very simple program that invert the pixels position
Hey i'm trying to make a very simple GUI using SFML, and i want

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.