• 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: Text shadows in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text shadows in NSTextView


  • Subject: Re: Text shadows in NSTextView
  • From: Casey Fleser <email@hidden>
  • Date: Mon, 16 Jan 2006 00:58:16 -0600

For an NSTextView something like this will add a shadow to the text:

[[textView textStorage] addAttributes:
[NSDictionary dictionaryWithObject: yourShadow forKey: NSShadowAttributeName]
range: NSMakeRange(0, [[textView textStorage] length])]



Where yourShadow is an NSShadow * configured however you like.

Casey

On Jan 15, 2006, at 7:01 PM, Nik Youdale wrote:

Hi,

I have been searching for a way to make the text in a text view shadowed, but am unable to find a way. How can this be done?? There doesnt seem to be any method in NSText or NSTextView to set the shadow of the text. I'm assuming somehow you set the shadow of the text with the NSShadow class, but thats only a guess.

Cheers

- Nik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40griffintechnology.com


This email sent to email@hidden


_______________________________________________ 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: Text shadows in NSTextView
      • From: Nik Youdale <email@hidden>
References: 
 >Text shadows in NSTextView (From: Nik Youdale <email@hidden>)

  • Prev by Date: Re: create a graph with cocoa
  • Next by Date: Re: Text shadows in NSTextView
  • Previous by thread: Re: Text shadows in NSTextView
  • Next by thread: Re: Text shadows in NSTextView
  • Index(es):
    • Date
    • Thread