Re: screensaver background color
Re: screensaver background color
- Subject: Re: screensaver background color
- From: David Hill <email@hidden>
- Date: Thu, 08 Jul 2004 20:33:23 -0500
Hi,
I'm not entirely sure what your problem is but you may be running into a
problem with your superview drawing black for you. The ScreenSaverView
doesn't default to opaque so that means that Cocoa will ask the superview to
draw first (with black) and then ask your view to drawRect:.
Override isOpaque in your ScreenSaverView subclass to return YES and see if
that helps.
Dave
On 7/8/04 8:05 PM, "Rhon Fitzwater" <email@hidden> wrote:
>
I haven't received much response at all to this other then a few
>
suggestions from Andreas. I have not been able to get this what I want
>
working at all. Can someone please tell me how I can change the
>
default black background of a screen saver to another color.
>
>
Any help at all would be appreciated.
>
>
Thank you,
>
>
-Rhon Fitzwater
>
On Jul 8, 2004, at 3:23 PM, Rhon Fitzwater wrote:
>
>
> Adding the code below to my drawRect: method does not work. Does
>
> anyone else have any other suggestions?
>
>
>
> [[self window] setAlphaValue:0.7];
>
> [[NSColor blueColor] set];
>
> NSRectFillUsingOperation(rect, NSCompositeCopy);
>
>
>
> My window is still semi-transparent and black instead of blue.
>
>
>
> Thanks,
>
>
>
> -Rhon
>
> On Jul 8, 2004, at 9:24 AM, Rhon Fitzwater wrote:
>
>
>
>> I am still not having any luck. Does anyone have any suggestions?
>
>>
>
>> Thanks,
>
>>
>
>> -Rhon
>
>> On Jul 7, 2004, at 6:50 PM, Rhon Fitzwater wrote:
>
>>
>
>>> how can I change the default screensaver background color (black) to
>
>>> something else, say blue? I tried doing this:
>
>>> [self setBackgroundColor:[NSColor blueColor]];
>
>>>
>
>>> but get a warning saying the screensaver view may not respond to that
>
>>> line of code, which it doesnt. Is there something that I am missing?
>
>>>
>
>>> Thanks,
>
>>>
>
>>> -Rhon
>
>>>
>
>>> [demime 0.98b removed an attachment of type
>
>>> application/pkcs7-signature which had a name of smime.p7s]
>
>>> _______________________________________________
>
>>> 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.
>
>>
>
>> [demime 0.98b removed an attachment of type
>
>> application/pkcs7-signature which had a name of smime.p7s]
>
>> _______________________________________________
>
>> 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.
>
>
>
> [demime 0.98b removed an attachment of type
>
> application/pkcs7-signature which had a name of smime.p7s]
>
> _______________________________________________
>
> 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.
>
>
[demime 0.98b removed an attachment of type application/pkcs7-signature which
>
had a name of smime.p7s]
>
_______________________________________________
>
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.
_______________________________________________
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.