• 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
NSShadow and clipping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSShadow and clipping


  • Subject: NSShadow and clipping
  • From: Eric Forget <email@hidden>
  • Date: Tue, 02 Mar 2004 21:24:45 -0500

Hi,

I have a hard time with NSShadow. I have two problems related with clipping.

1) If I need to constraint drawing an image or a shading (gradient) inside a
non rectangular path, as far as I know, my sole solution is to use clipping
from the the path. Unfortunately, this same clipping prevent the drawing of
the shadow around the my drawing since the whole clipping is filled. I would
have thought that NSShadow will use the clipping at the moment of the -set.

2) It seems that NSShadow draw the shadow only for the thing effectively
drawn, which cause another problem. If the shape that has a shadow is
complete scrolled out except its shadow, it becomes impossible to draw the
shadow.

I've tried to draw all my element in a temporary NSImage. Unfortunately,
this seems a bad idea since NSImage keeps a bitmap: when zooming or printing
the result is still at 72 dpi.

Is there any other solutions?

Thanks,

Eric

___________________________________________________________________

Eric Forget Cafederic
email@hidden <http://www.cafederic.com/>

Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: NSView subclass monitoring events?
  • Next by Date: Re: NSView subclass monitoring events?
  • Previous by thread: Re: NSView subclass monitoring events?
  • Next by thread: Manual binding & NSOutline
  • Index(es):
    • Date
    • Thread