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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:20:24+00:00 2026-06-01T06:20:24+00:00

I have read all the docs I can get my hands on and google’d

  • 0

I have read all the docs I can get my hands on and google’d everything I can, however, I am misunderstanding a fundamental aspect of either object-oriented programming, Cocoa, or both. I have a window that is declared in MyDelegate.h:

@property (assign) IBOutlet NSWindow *dataWindow; 

And is synthesized in MyDelegate.m:

@synthesize dataWindow = _dataWindow;

How do I access this window from other classes? For example, I want to use a separate class for a drawer the will have _datawindow as its parent.

  • 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-01T06:20:25+00:00Added an answer on June 1, 2026 at 6:20 am

    You can access it through you MyDelegate class.

    MyDelegate *myDelegate = ...;
    //MyDelegate *delegate = (MyDelegate*)[[NSApplication sharedApplication] delegate];
    NSWindow *window = myDelegate.dataWindow;
    

    Don’t forget to import MyDelegate header to your class

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

Sidebar

Related Questions

I have read lots of Autofac docs/wikis which indicate I can get a list
I have read in Chapter 4 of the NHibernate docs that all of a
I have read quite a lot of R docs, but I can't find anything
I've read through all of the Spring 3 Web docs: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/spring-web.html but have been
I have already read all the previous similar posts but I couldn't find a
Okay guys, I have read through all the other posts and question on jQuery
I just want what my title says.I have already read all the previous similar
I have read a lot about soft deletes and archive and saw all the
First of all let me tell you that i have read the following questions
To create a daemon I have read somewhere that in order to close all

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.