• 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: Hiding an NSControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding an NSControl


  • Subject: Re: Hiding an NSControl
  • From: Wade Tregaskis <email@hidden>
  • Date: Thu, 4 Sep 2003 17:18:18 +1000

But it's all implemented with the same nib. I am implementing a window that can display a message, an arbitrary number of checkboxes (up to a hard limit, in my case 4), and two buttons. How many checkboxes we actually need depends on the situation--it depends on stuff I'm reading from a data file. It won't be confusing at all.

I did something like this in HenWen (see my Web page) by using an NSArray data source with NSDictionary objects in the NSArray, and set up an NSTableView data source that used this array. The list of check boxes is completely dynamic, and is in fact based on information read in from a data file.

So using NSTableView is probably the best way of doing what you want to do...

And in terms of user expectations, it's better than having discrete checkboxes appear or disappear, in any circumstance, as users are quite comfortable with the fact that tables have a varying number of rows. Plus, they lend themselves a little better to representing sets of data, in most cases.

That's not to say hiding a few checkboxes is bad... if the window resizes itself to take into account the empty space, and/or changes significantly in title/content/etc, then user's will have little trouble disassociating the various appearances, and there won't be any confusion.

Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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: 
 >Re: Hiding an NSControl (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Split Buttons: How do I make em?
  • Next by Date: Re: Newbie question: forcing data format during saveDocumentTo:
  • Previous by thread: Re: Hiding an NSControl
  • Next by thread: Re: Hiding an NSControl
  • Index(es):
    • Date
    • Thread