• 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: Applying a Drop Shadow to an NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applying a Drop Shadow to an NSView


  • Subject: Re: Applying a Drop Shadow to an NSView
  • From: Tom Burns <email@hidden>
  • Date: Tue, 15 Aug 2006 22:43:45 -0400

Is there example code available that accomplishes this? I am in fact implementing drawRect but would have no clue where to start with this particular effect.

--Tom

On Aug 15, 2006, at 4:26 PM, August Trometer wrote:

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
  • Follow-Ups:
    • Re: Applying a Drop Shadow to an NSView
      • From: August Trometer <email@hidden>
References: 
 >Applying a Drop Shadow to an NSView (From: Tom Burns <email@hidden>)
 >Re: Applying a Drop Shadow to an NSView (From: August Trometer <email@hidden>)

  • Prev by Date: Newbie Question on Style
  • Next by Date: Re: Cocoa binding and threads.
  • Previous by thread: Re: Applying a Drop Shadow to an NSView
  • Next by thread: Re: Applying a Drop Shadow to an NSView
  • Index(es):
    • Date
    • Thread