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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:15:52+00:00 2026-05-16T14:15:52+00:00

In my application I open a sheet window for user input. Because the window

  • 0

In my application I open a sheet window for user input. Because the window is complex and has a few textfields and a few buttons I created a separate controller for it (InputWindowController).

When the sheet is closed I want to receive some values from the InputWindowController but I don’t know how. In all samples I found the controls in the sheet are connected to Outlets in the main controller but that is not what I want. If I do like that I don’t need a separate controller.

Also I am not exactly sure what the ContextInfo is for. You can set it right before the sheet should open and you can receive it when it is closed. If I could change the contextInfo in the sheet while it is open it really would help a lot.

  • 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-16T14:15:53+00:00Added an answer on May 16, 2026 at 2:15 pm

    When the sheet is closed I want to receive some values from the InputWindowController but I don’t know how.

    Give the InputWindowController a property for a delegate, and a protocol specifying the method that that delegate must implement. Have that method be the way that the InputWindowController communicates the end of the sheet back to the object that wanted to run the sheet.

    I would suggest making a model object that holds whatever values are displayed and editable in the sheet. Give the InputWindowController a property by which to hold one such model object. Then, when the object that wanted to run the sheet receives the InputWindowController’s notification that the sheet has ended, the object that wanted to run the sheet asks the InputWindowController for the model object.

    Alternatively, the object that wants to run the sheet can set up key-value observing on the model object before invoking the InputWindowController. That way, it will receive (and be able to save and make undoable) those changes to the model object’s properties as they happen; then, there is nothing further to do at the end of the sheet.

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

Sidebar

Related Questions

I've application to open popup window to print page. function printHTML(urlPath) { var printPopUp
In my OSX Application I am using a sheet to allow the user to
I need to let users of an application open a folder by clicking a
When no users have the any pages in an application open, it will unload
I am running my Android application but Open 3GLES shows some error can you
I need to paste a string of text to whichever application is open, and
I have a 64 bit Enterprice SuSE 11 I have an application which open
var doc = w.document; doc.open('application/CSV','replace'); doc.charset = utf-8; doc.write(all,hello); doc.close(); if(doc.execCommand(SaveAs,null,file.csv)) { window.alert(saved );
When we open NUnit application it loads the assemblies that are loaded in it
I have built an open-source application from the source code. Unfortunately, the original executable

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.