• 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: John Stiles <email@hidden>
  • Date: Thu, 4 Sep 2003 14:21:02 -0700

On Wednesday, September 3, 2003, at 09:06 PM, Nick Zitzmann wrote:


On Wednesday, September 3, 2003, at 05:46 PM, John Stiles wrote:

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...

I checked out this app. The NSTableView of checkboxes was the huge scrolly list under one of the tabs, right? That was cool, but I don't think it's appropriate for my app. The "common case" for my app is going to be between zero and two checkboxes. Having a scrolly list-box with two (or zero) items in it looks a bit silly.

I might check out the NSMatrix when I get more free time, though.
_______________________________________________
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: Simple way to find out baseline for NSAttributedString?
  • Next by Date: Re: Generating Unique ID
  • Previous by thread: Re: Hiding an NSControl
  • Next by thread: Re: Hiding an NSControl
  • Index(es):
    • Date
    • Thread