Re: Text shadows in NSTextView
Re: Text shadows in NSTextView
- Subject: Re: Text shadows in NSTextView
- From: Nik Youdale <email@hidden>
- Date: Mon, 16 Jan 2006 18:02:18 +1100
Oh fantastic!
Thanks alot!
Nik
On 16/01/2006, at 5:58 PM, Casey Fleser wrote:
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