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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:38:08+00:00 2026-05-13T22:38:08+00:00

I’ve got an application with an NSLevelIndicator Object on it that’s refusing to update.

  • 0

I’ve got an application with an NSLevelIndicator Object on it that’s refusing to update.

I have a timer that’s shoved off during init and updates the value of the NSLevelIndicator using its setIntValue method. Whilst the code executes without any exceptions, the NSLevelIndicator never visually updates. I have some other labels on the window that are updating through this timer, so I know that it is executing.

I’ve tried using all of the setTypeValue methods (String, straight value and double with appropriate variables being assigned in each). I even tried linking the “setStringValue” action through interface builder from the NSLevelIndicator to a label representation on the window to no avail. It still sits at its initial value (0).

I noticed that setIntValue (and all the other setTypeValue methods) are undocumented in Apple’s documentation for NSLevelIndicator – so I’m wondering if I’m approaching this wrong.

Does anyone have any clue what the proper way to set an NSLevelIndicator’s value from code is?

  • 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-13T22:38:09+00:00Added an answer on May 13, 2026 at 10:38 pm

    setIntValue should work, so it sounds like your IBOutlet for the NSLevelIndicator isn’t set properly – most likely its value is nil.

    This is probably due to your outlet not being connected in IB, as Johan Kool suggested.

    One thing worth mentioning, however, is that IBOutlets don’t yet have a valid value at the time your initializer is called – they’re hooked up after the initializer returns and shouldn’t be referenced until your instance receives the awakeFromNib message.

    You mentioned your timer is set up from your initializer – if you happen to be passing your instance’s NSLevelIndicator pointer to the timer as its userInfo parameter, the userInfo will have the wrong value (nil) since it isn’t yet initialized when the timer is created.

    Regardless of whether you use userInfo this way, anything that depends on IBOutlet values should be set up from within awakeFromNib rather than init.

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

Sidebar

Ask A Question

Stats

  • Questions 377k
  • Answers 377k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Link You need to run a repair on the “Microsoft… May 14, 2026 at 9:03 pm
  • Editorial Team
    Editorial Team added an answer Just start up SSH tunnel and use the local port… May 14, 2026 at 9:03 pm
  • Editorial Team
    Editorial Team added an answer If $target is intended to refer to the h6.class element,… May 14, 2026 at 9:03 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.