Re: Dual purpose panel
Re: Dual purpose panel
- Subject: Re: Dual purpose panel
- From: matt neuburg <email@hidden>
- Date: Wed, 19 May 2004 08:27:20 -0700
On Tue, 18 May 2004 21:09:26 -0500, Tony Cate <email@hidden> said:
>
I have a panel I would like to let the user display as
>
either a sheet or inspector. Once displayed as a sheet
>
though, it responds to isSheet with a yes and it won't
>
display properly as a panel. How do I tell the window it's
>
not a sheet?
This is just a guess (meaning I am typing this reply without testing in
Xcode first), but it rather sounds like the problem is that you are reusing
the same copy of the panel. Instead, put the panel in a nib of its own and
set it to release when closed. In this way, every time you show the panel
you are creating a completely new instance of it. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.