RE: NSPanel shown as sheet comes up partially transparent
RE: NSPanel shown as sheet comes up partially transparent
- Subject: RE: NSPanel shown as sheet comes up partially transparent
- From: "Michael Latta" <email@hidden>
- Date: Wed, 25 Oct 2006 00:20:19 -0700
Look in the apple guidelines for when a sheet should be partially
transparent. I imagine the system is doing what it is supposed to do. My
Mac is turned off at the moment or I would look. But, could it be that you
are not setting it up as a modal sheet?
Michael
>
> This is weird.
>
> So, my application has a main window, and at a certain point, I want to
> show an NSPanel as a sheet.
>
> So, I fire up the sheet (loaded from a separate nib file) with
> beginSheet:modalForWindow:modalDelegate:didEndSelector:contexInfo and then
> use runModalForWindow: to run it as a modal dialog.
>
> And my NSPanel comes up partially transparent -- looks like about 0.8 on
> the alphaValue ???
>
> Perhaps I accidentally set something in IB? I can't see any
> "trasparency"
> settings for NSPanel in IB.
>
> Perhaps the isOpaque or alphaValue on the NSPanel is screwed up.
> Printing
> both values shows "YES" and "1.0" respectively, as expected.
>
> So does anybody have any idea why my panel is showing up partially
> transparent? And if the answer is "it's supposed to do that", is there
> any
> way to stop it? I show a print panel right after my panel goes away, and
> the latter is most certainly not partially transparent -- the contrast is
> jarring.
>
> ??
>
> thanks,
> marc.
_______________________________________________
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