• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can a table insert be implemented with an exclusive "addition row"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can a table insert be implemented with an exclusive "addition row"?


  • Subject: Can a table insert be implemented with an exclusive "addition row"?
  • From: Daryle Walker <email@hidden>
  • Date: Sat, 16 Apr 2016 21:40:09 -0400

I haven’t done this; I’m just wondering if it’s possible.

Imagine a NSTableView with an extra row at the bottom.  (If there are no records, the extra row would be the table’s sole row.)  One of the columns has a grey-out string of “Add new name…” or something similar.  If the user confirms new text in that cell, the row will become a real one in the table (in the last position) and a new extra row will appear below it ready for new input.  (If the row was at the bottom of the view, the view will scroll the new extra row up into visibility.)  It seems like a cooler alternative to having a “+” button lying around somewhere in the window.  But would implementing it require too many heroic measures over using a button?

—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Can a table insert be implemented with an exclusive "addition row"?
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Creating a series of sequenced files
  • Next by Date: Asynchronous compatibility of NSDocument read/write methods
  • Previous by thread: SASL on OS X
  • Next by thread: Re: Can a table insert be implemented with an exclusive "addition row"?
  • Index(es):
    • Date
    • Thread