• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adding Shadow to NSTextFieldCell text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Adding Shadow to NSTextFieldCell text
      • From: Sean Willson <email@hidden>
  • Prev by Date: Re: Generating Scrolling Text
  • Next by Date: Re: Generating Scrolling Text
  • Previous by thread: Adding Shadow to NSTextFieldCell text
  • Next by thread: Re: Adding Shadow to NSTextFieldCell text
  • Index(es):
    • Date
    • Thread