Re: Drawing shadows under views
Re: Drawing shadows under views
- Subject: Re: Drawing shadows under views
- From: Jeremy Dronfield <email@hidden>
- Date: Tue, 17 Feb 2004 18:59:09 +0000
On 17 Feb 2004, at 6:20 pm, Ryan Bates wrote:
On Feb 17, 2004, at 9:10 AM, Jeremy Dronfield wrote:
I'm trying to implement fields similar to those used for editing
entries in Address Book and iCal. I've got the general view layout
set up and working, but I need guidance when it comes to drawing
drop-shadows under the individual fields (each one is an NSTextView
created programmatically). I can't find any guidance in the
documentation. Does anyone have any experience with this, and if so,
could they help me out?
In 10.3 you can use NSShadow to do this:
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSShadow.html
I read the NSShadow docs while trying to work out what to do. The docs
state that NSShadow can be applied as an attribute to text, but do not
mention any other use. In addition I went all up and down the
inheritance hierarchy looking for methods which would allow an NSShadow
to be applied to a view or control. No luck. How would you do it?
If you have access, there is a very nice example of drawing a raised
text field in one of the ADC TV sessions.
Unfortunately I don't have access.
-Jeremy
========================================
email@hidden
theLocustFarm.net:
- fractious fiction at
http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
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.