Re: Shadows
Re: Shadows
- Subject: Re: Shadows
- From: Gideon King <email@hidden>
- Date: Sun, 25 Nov 2001 23:39:08 +0800
Thanks for the tip on ASM - being able to turn it on and off during
drawing like that gives me exactly what I need - after changing the
parameters for Radius etc (see the source code for DeVercruesseASMView
from
http://asm.vercruesse.de if you don't know what I mean). And it's
fast - I had implemented my own version which works for my situation,
but isn't as fast as I would like, so it's probably better to go with
the Apple one if we can get it made public, rather than me sharing my
slow code (although if you want it, drop me a line and I'm happy to
share). I learned a lot about blur algorithms in the process
anyway... ;-)
It seems that a lot of people want to be able to put shadows behind
graphics and views - the question has been asked a lot of times on this
list. I have had this discussion with Apple before my support agreement
ran out, and they said to put in a feature request (I presume on
bugreporter/RadarWeb), but my support agreement ran out before I could
put it in. Is there somewhere else you can submit these requests even if
you don't have a paid support agreement, or could someone else who does
have access to RadarWeb please post a feature request for this?
In the meantime, if I am using an undocumented API like this, I'll want
to disable it if the user is running on a newer version of the OS - I
could use gestalt to tell me the OS version, & turn it off if I haven't
tested on that newer version of the OS. Is there a better way of telling
whether these particular functions:
CGSReadObjectFromCString, CGSSetGStateAttribute, CGSUniqueCString and
CGSSetGStateAttribute succeeded or failed (or ceased to exist)?
Thanks
Gideon
On Sunday, November 25, 2001, at 03:33 AM, Finlay Dobbie wrote:
>
On Saturday, November 24, 2001, at 06:18 pm, Russ White wrote:
>
>
> I've spent all Thanksgiving week learning Cocoa and I've made
>
> tremendous progress. I have the basics down finally and I'm ready to
>
> do some application stuff. One of the things I'd like to do is be able
>
> to draw shadows around a NSView (or any rectangle container). Seems
>
> like only NSWindows can have shadows.
>
>
>
> Does anybody know if there is a built-in shadow method?
>
>
There is, but it's private and the API will change in a future release.
>
For an example of how to do it, poke around in the source code to ASM
>
(Application Switcher Menu, http://asm.vercruesse.de).
>
>
I don't know if Apple plans on exposing this API in a future release.
>
If not, why not?
>
>
-- Finlay
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
References: | |
| >Re: Shadows (From: Finlay Dobbie <email@hidden>) |