Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toggling Visibility for NSPanel



I tried -close which works (but it doesn't show up in the code
completion list). Both -orderOut and -makeKeyAndOrderFront yield the
'selector not recognized' error. Is there something else I can try?

Thanks,
Jason

On 10/24/07, Nick Zitzmann <email@hidden> wrote:
>
> On Oct 24, 2007, at 9: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.
>
> -isVisible and -setVisible: are for views, not windows.
>
> > 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?
>
> -close or -orderOut:.
>
> > And how can I show
> > it when I want to make it visible again?
>
> -makeKeyAndOrderFront: unless you don't want it to be the key view.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
>
>
>
>
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.