Re: Adding Shadow to NSTextFieldCell text
Re: Adding Shadow to NSTextFieldCell text
- Subject: Re: Adding Shadow to NSTextFieldCell text
- From: Konstantin Anoshkin <email@hidden>
- Date: Mon, 26 Dec 2005 11:11:29 +0300
First I can't seem to get the text to shadow properly without
losing some of
the underlying functionality of the cell. In order for me to get a
shadow to
appear I end up having to override the drawInteriorWithFrame:
method but...
Did you try the simplest hack:
- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)
controlView
{
[myShadow set];
[super drawInteriorWithFrame: cellFrame inView: controlView];
}
It should work unless the super's implementation saves/restores the
graphic context.
If it does, it's a lot of headache, though.
Konstantin.
------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
_______________________________________________
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