• 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 Lombardo <email@hidden>
  • Date: Fri, 05 Sep 2003 11:19:26 +0800

> At 5:46 PM -0700 9/3/03, John Stiles wrote:
>> The implementation is just a nib with four checkboxes, and I'm
>> "hiding" and "showing" the ones I don't need and then shrinking the
>> window to compensate for the missing items.
>
> Another approach would be to use an NSMatrix of checkbox cells. You
> can add and remove cells at will.

NSMatrix has my vote, too. The only thing that I think gets most matrix
newbies is figuring out which control in the matrix was clicked. Because the
sender is the matrix, rather then the control, you just need
[sender selectedCell]
And everything is peachy :)

>On 4/9/03 7:54, "Henry McGilton" <email@hidden> wrote:
> I concur with Alastair's post on this subject. In general, you should
> give very careful consideration to hiding controls, and instead think of
> enabling and disabling them as required. Use analogies with your real
> everyday world --- you would expect that the furniture in your living
> room stays in the same positions whether the lights are on or off, or
> whether the time is morning or afternoon, and so on.

I agree that software shouldn't confuse the user, but auto-rearranging
furniture would be awesome!

John
_______________________________________________
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: Andy Lee <email@hidden>)

  • Prev by Date: Re: programmatically decompress lzw data
  • Next by Date: Re: Subclassing dictionaries?
  • Previous by thread: Re: Hiding an NSControl
  • Next by thread: Re: Hiding an NSControl
  • Index(es):
    • Date
    • Thread