• 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 Window not receiving "full" shadow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Window not receiving "full" shadow


  • Subject: Re: Custom Window not receiving "full" shadow
  • From: Francisco Tolmasky <email@hidden>
  • Date: Fri, 4 Sep 2009 18:45:48 -0700

So, I found this on cocoabuilder: http://www.cocoabuilder.com/archive/message/cocoa/2008/2/13/198777 , which suggests using this private API:

[window setValue:[NSNumber numberWithInt:10] forKey:@"shadowStyle"];

However, at least in my attempts, this did not seem to change my shadow, regardless the value I passed in.

On Sep 4, 2009, at 6:32 PM, Steven Degutis wrote:

Interestingly, after searching the NSWindow (and NSPanel) docs and google for like 5 minutes, I still can't figure out how to set this small shadow programmatically. Now I'm all curious! Anyone know?

--
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/


On Fri, Sep 4, 2009 at 8:21 PM, Steven Degutis <email@hidden > wrote:
Francisco,


Generally this less pronounced shadow is produced by giving an NSPanel the "Utility" style in IB. As I've never had to do it programmatically, I don't know what the relevant method would be to set this style, but I'm sure it's a style on the NSWindow class, not NSPanel.

--
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/

On Fri, Sep 4, 2009 at 8:16 PM, Francisco Tolmasky <email@hidden> wrote:
I am have a custom window look that I accomplish by having a borderless window with a view that paints its contents. This works fine, however, for some reason the shadow on this window is less pronounced than on normal aqua windows. I've included images below:


Normal window:




My Window:




I've called invalidateShadow several times but that didn't help. Is there some sort of window shadow style that I am supposed to set or something?


Thanks,

Francisco
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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







_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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 Window not receiving "full" shadow (From: Francisco Tolmasky <email@hidden>)
 >Re: Custom Window not receiving "full" shadow (From: Steven Degutis <email@hidden>)
 >Re: Custom Window not receiving "full" shadow (From: Steven Degutis <email@hidden>)

  • Prev by Date: Re: Custom Window not receiving "full" shadow
  • Next by Date: Re: Application main menu title behavior change in 10.6
  • Previous by thread: Re: Custom Window not receiving "full" shadow
  • Next by thread: Re: Custom Window not receiving "full" shadow
  • Index(es):
    • Date
    • Thread