Re: Beveled outline around a view(BevelBox): How to?
Re: Beveled outline around a view(BevelBox): How to?
- Subject: Re: Beveled outline around a view(BevelBox): How to?
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 19 Apr 2005 15:21:18 -0700
On Apr 18, 2005, at 1:48 PM, John Fox wrote:
Hello Nice Cocoa-nuts:
iTunes and iPhoto have a nice beveled outline to their views that
I'd like to implement. Poking around in the nib file, I see a
custom class called BevelBox, which I suppose is an NSBox subclass.
Can someone give me an idea to draw this type of effect? I've used
NSFrameRect() in other parts to good effect to draw a colored line
around an NSRect, but I clearly need something more specific.
Looks like it could be done fairly easily with NSRectFillListWithGrays
(). You'll probably need to spend a bit of time examining it with
Pixie.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden