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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:10:48+00:00 2026-06-04T17:10:48+00:00

I have a basic project that contains nothing but an NSForm . All i’m

  • 0

I have a basic project that contains nothing but an NSForm. All i’m trying to do is add some rows to it. From my understanding, I should be able to do this somehow like the following:

- (void) awakeFromNib
{
    NSLog(@"Test: %p", form);
    [form addEntry: @"Hello World 1"];
    [form addEntry: @"Hello World 2"];
    [form addEntry: @"Hello World 3"];

    [form sizeToCells];
}

I have confirmed that my form is not null (the test print shows its address), but my form still contains nothing but the two default entries that are displayed when I drag an NSForm onto my view.

enter image description here

Where am I going wrong?

  • 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-04T17:10:49+00:00Added an answer on June 4, 2026 at 5:10 pm

    I’ve just spent a while playing about with this, and it seems the problem is doing it in awakeFromNib:.

    In a sample project, I made an outlet for the NSForm in my app delegate class. Then I pasted your code into applicationDidFinishLaunching:. It worked (albeit with a graphical glitch in the cell that was selected by default).

    If your really need the logic to go in awakeFromNib:, could you maybe put it in its own method and call it using performSelector:afterDelay:?

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

Sidebar

Related Questions

I have a django project, but for some reason basic jquery isn't working. <html>
Within a Visual Basic Project I have added a resource file (resx) that contains
I have a basic class that derived subclasses inherit from, it carries the basic
I have a VB6.0 project that contains the line Implements IObjectSafety I tried reopening
We have a framework that defines many interfaces and some basic default implementations. Let's
I have been trying to convert a web project that produces a war file
I have acquired a DLL that was created in Visual Basic from a third
I have a new django project project1 .It contains basic files of django(settings.py,urls.py,views.py).then I
I have a basic GWT Maven project going. I added SmartGWT and started playing
We have created a simple wix project for a basic windows application. Everything builds

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.