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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:28:10+00:00 2026-05-31T16:28:10+00:00

I have a very simple application test in which I want to drag and

  • 0

I have a very simple application test in which I want to drag and drop files in a NSImageView object.

I can already get the list of files from this action, but now I want to store this data in an array to be accessed in the View using data bindings. The only code I have that works fine with data bindings, tough, has an array in AppDelegate that I access using an Array Controller. But then, my data is inside a class I created to the NSImageView called “DropView”, which extends “NSImageView” class and handles the drop action.

How can I pass the array information to make the bindings possible?

Any suggestion is welcome. Thanks!

  • 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-31T16:28:11+00:00Added an answer on May 31, 2026 at 4:28 pm

    I decided to use a singleton in a bigger project. In this smaller one I did like this:

    1 – Add AppDelegate reference to the subclass (m file):

    #import "AppDelegate.h"

    2 – Call a method declared in the AppDelegate passing all the information needed like this:

    [[NSApp delegate] doSomething:someInformation];

    3 – Set all the information in the method used.

    4 – Make the bindings in the interface.

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

Sidebar

Related Questions

I have written very very simple console application which supports some command line options.
I have this scala application which is very simple . All that it does
I have setup a very simple test application to try RESTeasy on Jboss AS
I have a very simple MVVM Light application which has a textblock and a
I have a simple test page in my Silverlight 4 application in which I'm
I have created a very simple ASP.NET application with a web.config file, which contains
I have written a VERY simple MVC application which just displays a single string
I have a very simple application and I cannot make the WebView to show
I have written a very simple application to update my twitter status on a
I have a very simple .net application for testing SMTP on .net. But i

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.