FROM : August Trometer
DATE : Tue Aug 15 22:26:21 2006
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
DATE : Tue Aug 15 22:26:21 2006
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
| Related mails | Author | Date |
|---|---|---|
| Tom Burns | Aug 15, 21:28 | |
| August Trometer | Aug 15, 22:26 | |
| Tom Burns | Aug 16, 04:43 | |
| August Trometer | Aug 16, 05:02 | |
| George Orthwein | Aug 16, 06:03 |






Cocoa mail archive

