• 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
Re: What type of view for a simple editable list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What type of view for a simple editable list?


  • Subject: Re: What type of view for a simple editable list?
  • From: Daniel Todd Currie <email@hidden>
  • Date: Tue, 17 Feb 2004 23:34:41 -0800

Without knowing more details, I would probably use a NSTableView. I like how tables have row selection (easy deletion) and how they inherently store their data in an array. However, it sounds to me like you have already decided that the NSTextView will offer a better user experience. You could try subclassing NSTableView to get it to create items when you click in the blank space at the bottom, but I think this would generally be confusing to the user.

I find that a good interface is more often what "feels" right, than what "is" right according to some blanket standard. Some people will like your app, some will hate it; you can't please everyone. This is why there are so many different web browsers, mail clients, etc.

Trust yourself to make an application that people will enjoy using.

-- Daniel Currie


On 2004 Feb 17, at 21:31, Jerry Krinock wrote:

Hi,

In my application I want to give the user a field in which to enter an
arbitrary number of short words or phrases, for example:

brocolli
peanut butter
CD-ROM

So I made an NSTextView which seems to work pretty well; after reading in
the textStorage I separate each line into a separate string using
componentsSeparatedByString at "\n", which gives me an NSArray of strings,
which is what I want.

But then I thought, gee this is inappropriate to use this text-oriented
field when the user is actually giving me a list of items. So, I made an
NSTableView with one column. This seems more "appropriate", but it looks
like there is no way for the user to type in more items. I'd have to put a
"Add New Item" button which would add an empty string to the data source,
which the user would then click on to edit.

So now I think I had it right the first time with the NSTextView.

Am I missing something? What kind of view would you use for something like
this?

Jerry Krinock
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >What type of view for a simple editable list? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: display an image in a button
  • Next by Date: Re: How to make borderless window resizable
  • Previous by thread: Re: What type of view for a simple editable list?
  • Next by thread: XetSystemUIMode
  • Index(es):
    • Date
    • Thread