Re: How to tell if a Panel is Open [solved]
Re: How to tell if a Panel is Open [solved]
- Subject: Re: How to tell if a Panel is Open [solved]
- From: Scott Ribe <email@hidden>
- Date: Fri, 12 Jun 2009 07:30:35 -0600
- Thread-topic: How to tell if a Panel is Open [solved]
> Thanks to those who helped me with this question. The solution was to
> use NSWindow's -attachedSheet method, and (in my case), check for
> nil. If nil, there is no attached sheet; if not nil, there is an
> attached sheet.
Yes there's a call for that so you don't need to carry around a state
variable to remember when you've put up a sheet.
But you still seem to have gotten 2 controllers instantiated on 1 window,
and this is going to cause you other problems in the future. So you probably
still need to figure out why your first technique was failing.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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