I'm trying to create come custom views with attributes exhibited in this screen 
shot snippet:

files.me.com/michaelacrawford/iy4bhj

I'm looking for suggestions on how I might accomplish some of these effects.  
Here are some ideas I've come up with on my own, some of which I have already 
tried and failed with.  I'd like feedback as to whether or not you think my 
approach will work.

First of all, I'm pretty sure I will need layer back views in order to get the 
clipping (or lack thereof) I want, as well as the shadow effect for the buttons.

For the rounded corners on the app window, I was thinking of creating a 
borderless window and then using cornerRadius property of the layer-backed 
content-view of my main window.

This will require me to provide a replacement for the traffic-light buttons 
that are usually in the upper-left corner along with their standard 
window-manager behaviors, since borderless windows do not sport these elements.

In experiments I've performed thus far, the custom bitmap that provides the 
hatch pattern along the bottom of the view obscures the little diagonal lines 
indicating that the window can be resized by click-dragging the lower-right 
corner.  I will have to draw those lines myself.

As for the hatch pattern, an alternative to using the bitmap image would be for 
me to draw the hatch pattern along with the colors myself.  This way, as the 
main window is resized, the pattern is redrawn as needed.  Currently, I'm using 
NSDrawThreePartImage to get the repeating patter to stretch when the main 
windows is resized.

My first experiment with the big round button has failed in that it is being 
clipped both on the top and the bottom.  On the bottom it is being clipped by 
the app window.  I wasn't too worried about that because I have not yet written 
the code for the borderless window.  The top of the button crosses over the 
upper border of the super-view and is being clipped.  This surprised me as I 
have layer backed views turned on for the button, its super-view, and the view 
containing the button and its super-view.

For the custom views involved I'm setting the masksToBounds property to NO.  
What else do I need to do in order to display clipping by the super-view's 
bounding rectangle?

-Michael
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to