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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:25:18+00:00 2026-06-01T18:25:18+00:00

I am developing a document based cocoa app. The startup interface is modeled after

  • 0

I am developing a document based cocoa app.
The startup interface is modeled after GarageBand: A welcome screen is displayed, which shows one of two alternating views (switched through a segmented control): “Create New Project” and “Browse Recent Projects”. Each of this views is controlled by a dedicated NSViewController (in this case NewProjectViewController and RecentProjectsViewController).

To achieve this, I subclassed NSDocumentController so as to show this “Welcome screen” on startup instead of creating an empty document (An empty document doesn’t make sense in my app until the user specifies certain minimum settings).

After launch/initial document creation, if the user chooses “Create New Project…” (i.e., new document), I display a window that reuses the same interface as the “New Project” tab in the Welcome screen, by instantiating the same NewProjectViewController and adding its view to the window.

In both cases, the view controller’ view is created from a .xib. The view controller itself is instantiated programatically and its view is added to a preexisting subview of the window using -addSubview:.

The view for NewProjectViewController contains several editable NSTextField instances, and other controls.

The problem:
All the NSTextField instances in the view controller’s view will accept text input only the first time; From the second time on that the view is displayed, attempting to edit the text will produce the system alert sound. The text can be selected (highlighted), but not changed. Also, the text can be changed programmatically.

The other controls (popup buttons) can be changed without problem.

I have tried showing the “New Document” window from the beginning (instead of the Welcome screen), but the result is the same: The first time it works, the second it doesn’t.

Is this a first responder problem?

  • 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-06-01T18:25:19+00:00Added an answer on June 1, 2026 at 6:25 pm

    OK, I fixed it (although I still don’t know exactly why it wasn’t working).

    I changed both prompts (‘Welcome’ screen and ‘New Project’ window) to run as modal windows.

    The ‘Welcome’ window calls -[NSApp abortModal] on ‘Quit’ and -[NSApp stopModal] on ‘Choose’.
    The ‘New Project’ window calls -[NSApp abortModal] on ‘Cancel’ and -[NSApp stopModal] on ‘Create’.

    On the Document controller’s side, I inspect each window controller to see what exactly the user selected and act accordingly (create a new document, open a recent document, do nothing, quit the app, etc.)

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

Sidebar

Related Questions

We are developing an application which needs to interact with the active document in
I'm developing a multi-document application. Currently it uses MDI which is quite convenient for
I'm developing a Ruby programming tutorial which I'd like to document with Yard .
I'm developing a firefox extension based on this tutorial which is a FF 2.0
I have a HTML document which I am developing a .js file for. My
I'm developing a Cocoa/Objective C application that reads the active document from any application
I am developing a document based application for Mac OS X. It's a kind
I am currently developing a document store in Mongo DB which contains a complete
I'm developing a customized document library in the SharePoint 2007 environment. What I'm doing
I'm developing a large C++ program and I've now decided to document it with

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.