• 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: publiclook <email@hidden>
  • Date: Sat, 22 Mar 2003 14:08:36 -0500

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 ?


On Saturday, March 22, 2003, at 08:32 AM, Koen van der Drift wrote:

Does anybody have any good ideas that do not involve moving it outside
the viewing area of the window? (the view is being repositioned/resized
as its hidden so the move away solution would not be the best).

One thing I once did to hide a button is set its frame size to zero:

[myView setFrameSize: NSZeroSize];


Not sure if that will work in your situation.

- Koen.
_______________________________________________
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: 
 >Re: The best way to hide views. (From: Koen van der Drift <email@hidden>)

  • Prev by Date: NSImage not using NSImageRep when drawing to NSPSAndPDFGraphicsContext
  • Next by Date: Paste or Drag PDF Data into NSTextView
  • Previous by thread: Re: The best way to hide views.
  • Next by thread: Re: The best way to hide views.
  • Index(es):
    • Date
    • Thread