• 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: setHidden Category
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setHidden Category


  • Subject: Re: setHidden Category
  • From: Ondra Cada <email@hidden>
  • Date: Fri, 12 May 2006 17:45:11 +0200

Matthew,

On 12.5.2006, at 17:06, Matthew Weinstein wrote:

I'm wondering if someone has a [NSView setHidden:] category for Jaguar that they'd be willing to share. My open source qualitative program has now stopped functioning for Jaguar users (don't know why I didn't notice the version on setHidden).

I am afraid that setHidden *functionally equivalent to Panther's* just was not possible (without serious poseAsClassing or ISA- swizzling or similar hackery).


In Jaguar, to hide a view you have to (a) remove it from superview (which is swell until you need it to autoresize), or (b) move it to some surely-out-of-superview-bounds position (which is all right only for views which do not receive input and cannot become first responders), or (c) override lotta methods (not for the view to be hidden, but rather for its superview -- and that is not easy, and cannot be done from a category without serious hacking).

Perhaps there's some reasonable (d), but I can't think of one offhand.

(Note also that hiding views is generally considered a bad UI: the user should see what it in stock for him, disabled if not applicable at the moment, in tabview if there are more modes. I haste to add there still are cases when hiding is all right, just am pointing out that one should consider twice before hiding views :))
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >setHidden Category (From: Matthew Weinstein <email@hidden>)

  • Prev by Date: Re: Subviews becoming blurry or "chopped up"
  • Next by Date: AuthorizationExecuteWithPrivileges retains file handles
  • Previous by thread: setHidden Category
  • Next by thread: AuthorizationExecuteWithPrivileges retains file handles
  • Index(es):
    • Date
    • Thread