• 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: Toggling Visibility for NSPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toggling Visibility for NSPanel


  • Subject: Re: Toggling Visibility for NSPanel
  • From: "R.L. Grigg" <email@hidden>
  • Date: Fri, 26 Oct 2007 11:27:19 -0700

On Oct 24, 2007, at 8:38 PM, Jason Barker wrote:

I've spent a decent amount of time trying to get a panel to close
programatically but the solution escapes me. I'm sure this is a simple
thing but [utilityPanel setVisible: NO] gives a warning when I compile
and then I get an error 'selector not recognized' when I actually run
my app and try to close my panel.

If I have a panel with an outlet to it in my AppController object,
what message can I send the panel to close/hide it? And how can I show
it when I want to make it visible again?

Simple. Just use [myPanel setIsVisible:(BOOL)];

Russ


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Toggling Visibility for NSPanel (From: "Jason Barker" <email@hidden>)

  • Prev by Date: Re: NSTokenField in NSScrollView
  • Next by Date: webView:didReceiveIcon:forFrame not called in Leopard
  • Previous by thread: Re: Toggling Visibility for NSPanel
  • Next by thread: Bindings Problem: [change valueForKey:NSKeyValueChangeIndexesKey] always returns NULL!!
  • Index(es):
    • Date
    • Thread