• 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: The best way to hide views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The best way to hide views


  • Subject: Re: The best way to hide views
  • From: Wesley Miaw <email@hidden>
  • Date: Sat, 22 Mar 2003 20:00:34 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, in my case, I have a situation where a single view is used to display various bodies of text. One of these text bodies is an index, and when that is shown, I want a second NSScrollView to appear that contains the content that the index points to. When other text bodies are shown (e.g. glossaries) I do not want the content shown. So I hide the second NSScrollView and resize the first NSScrollView (containing the glossary).

1) I don't want to disable the second view because that eats up valuable real estate.
2) It doesn't make sense to put either the index or the content into a drawer--they are not formatted in a way that would make sense.
3) These different bodies of text already show up under a larger NSTabViewItem that groups the subject material of this text into a single tab.
4) I want to reuse the single layout, instead of duplicating work (from an objects point of view).

I suppose a collapsed split view might work, but I don't want users to have a "split view" where there really isn't one (i.e. the text shown is not the index and content). It would certainly be weird to see a split view marker that you can't open up.

On Saturday, March 22, 2003, at 05:21 PM, email@hidden wrote:

I know that hiding views has been discussed may times in this forum.
Why are people wanting to hide views rather than disabling them or
putting them in collapsed split views or tab views or drawers ?

What are the issues ?
Why is programatically hiding a view considered better than using one
of the built-in almost no code required techniques ?
- --
Wesley Miaw, Wesley Miaw Consulting
http://www.wesman.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE+fQc1Qv4agqRAk2kRAqYKAKCgRFb7LADxEkDXxi0KIQw1Zuw/yACfXgM8
QX7mIEpzwMM50Hbs+qkAa88=
=HnSS
-----END PGP SIGNATURE-----
_______________________________________________
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.

  • Prev by Date: Re: Is it a bug in the AppKit code or a lack of clear explanation in the documentation of NSOpenPanel?
  • Next by Date: Re: GUI Objects on the fly
  • Previous by thread: Re: Is it a bug in the AppKit code or a lack of clear explanation in the documentation of NSOpenPanel?
  • Next by thread: iCal-style calendar control
  • Index(es):
    • Date
    • Thread