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

  • Home
  • SEARCH
  • 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 8057361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:00:28+00:00 2026-06-05T09:00:28+00:00

I am making an app for OS X using Cocoa for the graphical interface.

  • 0

I am making an app for OS X using Cocoa for the graphical interface. But my main algorithm was made in C++. The interface just shows some values of the algorithm in NSTextFields and NSLevelIndicator.

The screen needs to be refresh with the data from the algorithm in real time.

What i did is a NSThread that reads the data from the algorithm and put on screen. But I don’t think that it’s the proper way.

What are your suggestions?

  • 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-05T09:00:30+00:00Added an answer on June 5, 2026 at 9:00 am

    Generally, you should only update the GUI from the main thread. You can submit some work to the main thread with code like this:

    dispatch_async(dispatch_get_main_queue(), ^{
        [myTextField setStringValue:@"a new string"];
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a threaded forum app using django-mptt. Everything is up and running, but
I'm just getting started on making a board game using Cocoa/Objective-C. My plan is
Relatively new to C# and MVVM, but I'm making a WP7 app using the
I'm making an PhoneGap app using Jquery Mobile, but I have a little problem
im making an app using SDK 7 (aos 2.1). But my app refuses to
I have started making graphics for my Android app using Adobe Photoshop. But I
We're making an app using PHP and using some third party services that require
I am making an iPhone app using WSDL Web-Services, but I have no idea
I'm making an App using Adobe Flex/Air. I was wondering if there is any
I'm making an iOS app using AIR 3.1 and Flex 4.5.1, and if 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.