Re: Special Borders
Re: Special Borders
- Subject: Re: Special Borders
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 18 Jul 2005 07:32:49 -0700
On Jul 17, 2005, at 9:35 AM, Coleman Nitroy wrote:
In creating our projects UI we noticed that certain iApps (iTunes,
iPhoto, etc...) have a different border-type around the interface
elements. For example the border around any of the box's in iTunes
like the Now Playing album artwork box is different then any border-
type you can give to a NSBox or other views. We also noticed some
3rd party apps like Delicious Library seem to use this border-type
as well. We want to join in the club ;-)
This border has no corner pixel, a darker grey on top, a light
almost white grey on the bottom and, the left and right has a
medium grey. Inside this is a solid darker grey. Its like a simple
1px shadow is being cast around the view.
( Our artist's representation of how this border looks: http://
cole.nitroy.com/Files/Temp/specialBorder.jpg )
The only way I can see to implement this in our app would be to
make a containing NSBox and have manually draw this border.
Is there a simple easy way of doing this and I am overcomplicating
things? I have scoured all over IB, and the NSView documentation
and cannot find anything. I have pried around in the nib files of
some of the iApps and do not see any red flags.
Apple doesn't provide any public way to draw those borders. If I
were in your shoes, I'd just draw it using NSRectFillListWithGrays();
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
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