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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:17:41+00:00 2026-06-11T04:17:41+00:00

So, this is my case : One NSBox Inside this, there is an NSTextField

  • 0

So, this is my case :

  • One NSBox
  • Inside this, there is an NSTextField

What I want to do is :

  • Programmatically manage to position the textField in the box (e.g. top left, top right, center, etc).

I’ve tried doing it with NSTextField‘s bounds or frame, but I don’t think I can make it…

Any ideas?

  • 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-11T04:17:43+00:00Added an answer on June 11, 2026 at 4:17 am

    If I understood your question correctly, do you just want to make sure the NSTextField is always in the top left, center, or whatever, when the view is resized? If so, then you can use struts and springs for that. If you just want to move the text field, then changing the frame should work. Ex, if you have a text field called foo, you can set the whole frame:

    [foo setFrame: CGRectMake(desiredX,desiredY,foo.bounds.size.width,foo.bounds.size.height)];
    

    or just its origin (effectively repositioning it):

    [foo setFrameOrigin: CGPointMake(desiredX, desiredY)];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider this case: public Class1 { public static final String ONE = ABC; public
Essentially, I am just creating two classes where one class, in this case class
I have a switch statement similar to this one: switch (number) { case 1:
How to do a case-insensitive where in NHibernate Linq query? e.g. //note this one
In my situation, there is one case in which I need to make sure
Today I was testing something at work place and came across this one Case
I normally associate a package to an appender. But in this one case, this
This case is a bit complex, I hope I will simplify it well. My
In this case the character is ^ . For example in the following format
In this case, the source of the text is from a winforms textbox. I'm

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.