NSPanel shown as sheet comes up partially transparent

  • 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.
  • 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.
  • So isn't Apple in violation of its own guidelines then, as the Print and
    Page Layout panels both come up fully opaque??

      I'll look for those docs, thanks.

      marc.

    On 10/25/06, Michael Latta <lattam...> wrote:
    >
    > 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.8on
    >> 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.
    >
    >
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today