• 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: Custom Shadow on an NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Shadow on an NSWindow


  • Subject: Re: Custom Shadow on an NSWindow
  • From: Drarok Ithaqua <email@hidden>
  • Date: Mon, 19 Feb 2007 00:22:08 +0000

So there's no chance of a custom colour or radius? I'm sure I've seen apps that do the radius.

On 18 Feb 2007, at 6:52 pm, infinite labs wrote:

On 2/18/07, Drarok Ithaqua <email@hidden> wrote:
Hi list, I'm looking to drop a custom shadow on my window, but I'm
totally stuck.

I am assuming that NSShadow is used for this, but I guess this may
not be the case.

Is it possible to set a custom shadow on an NSWindow? I can't see any
way to achieve this.

The system creates the shadow under a window based on its actual shape, including irregular shapes (ie when using a background with an alpha). You may disable it, but that's all, at least for documented APIs.

NSShadow is used to create shadows in view you make. You may paint it
on the content view of a trasparent window without a shadow of its own
to create a custom-shaped shadow.

- ev

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Custom Shadow on an NSWindow (From: Drarok Ithaqua <email@hidden>)

  • Prev by Date: Re: Printing crash
  • Next by Date: Preventing beach balls
  • Previous by thread: Custom Shadow on an NSWindow
  • Next by thread: Re: Custom Shadow on an NSWindow
  • Index(es):
    • Date
    • Thread