Re: Applying a Drop Shadow to an NSView
Re: Applying a Drop Shadow to an NSView
- Subject: Re: Applying a Drop Shadow to an NSView
- From: August Trometer <email@hidden>
- Date: Tue, 15 Aug 2006 16:26:21 -0400
It is my understanding that you cannot (currently) give a view a
shadow. If, however, you are custom drawing using the view's drawRect:
method, you can drop the shadow during the drawing. For example, you
can do a fill with a shadow. This may or may not achieve the effect
you're looking for. You'll also run up against the view's bounds, so
you'll need to take that into account.
-- August
On Aug 15, 2006, at 3:28 PM, Tom Burns wrote:
I have a custom view that I would like to display with a shadow. The
custom view is a subview of an NSBox, so it seems to me that
subclassing NSBox would be the proper course of action.
unfortunately, I was unable to find any example code for applying
shadows to views themselves, as opposed to their contents. Does
anyone have any advice for approaching this problem?
--Tom
_______________________________________________
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