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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:55:41+00:00 2026-05-23T08:55:41+00:00

Background: I’m building a view-based NSTableView-esque control in Cocoa/Objective-C that offers the ease of

  • 0

Background:

I’m building a view-based NSTableView-esque control in Cocoa/Objective-C that offers the ease of use of a UITableView in terms of being able to layout a view in Interface Builder, rather than attempting to subclass NSCell. Its also smart with its resources, in that it adopts a similar reusable cell paradigm like UITableView. This is, of course, all done inside of an NSScrollView.

I’ve got most of the tricky view swapping figured out, and working. When scrolling, if a view is completely clipped, it is added to a pool of unused views. Similarly, if an undisplayed view comes into the viewable area, it attempts to grab a view from the unused pool, and if none are available, it creates a new one from the nib holding the view prototype.

Similar solutions out there do exist, but I like tinkering around and am enjoying implementing it myself 🙂 . However, I don’t know of a solution that handles this issue, and I need some advice!

The issue:

Say, for example, that each view contains a text field. If the text field is being edited, and the user begins to scroll, I’d like for that cell to not be released into the pool so that it doesn’t “lose focus”, or “give focus” to a newly displayed view that reuses the released one. Is there an intelligent way to mark a view as being edited without requiring the programmer who created the custom view to intercept events, and mark it as such?

Thank you for the assistance!

  • 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-23T08:55:41+00:00Added an answer on May 23, 2026 at 8:55 am

    Your view controller could conform to the NSEditorRegistration informal protocol. It is designed to handle exactly this issue.

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

Sidebar

Related Questions

Background & Objective: I have a UISplitViewController based iPad app - till now it
Background: At my company we are developing a bunch applications that are using the
Background I am writing and using a very simple CGI-based (Perl) content management tool
Background This is only my second PyQt4 project. Developing a Windows app that has
Background I have a basic HTML page with an iframe that points to a
Background My project is urgent and requires that I iterate a large XML file
Background: I've wrote a small library that is able to create asp.net controls from
Background I've got an NSOutlineView that shows TrainingGroup entities. Each TrainingGroup represents a folder
Background information first: We are using a strongly-typed DataSet to manage transaction files. That
Background Use Ajax to fire an event to the web server when a list

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.