Re: NSCell bezel drawing
Re: NSCell bezel drawing
- Subject: Re: NSCell bezel drawing
- From: Keith Duncan <email@hidden>
- Date: Fri, 6 Jul 2007 03:18:04 +0100
Nothing prevents you from creating an NSSearchFieldCell
That was another solution I was working with but I didn't like calling
the private method on the NSTextFieldCell, 'cos its, you know,
private. But you're right there's nothing wrong with a control using
more than one cell for its drawing.
Of course, if something looks like a search field, you might as well
actually use a search field (since if it looks like a search field,
it should behave like one, and at that point, you've basically got a
search field).
The control I'm constructing actually has nothing to do with
NSSearchFieldCell or NSTextFieldCell. Its a week view that displays
the capitalized (localized) first letter of each weekday allowing the
user to enable/disable the alarm for each respective day without
having to employ an array of checkboxes. Before I applied the bezel
effect it just looked like a image drawn on the window background but
the bezel adds the depth required to make it actually look like a
control.
It turns out that all I had to do to get my bezier path bezel to look
right was to indent the white background path by a single pixel in the
x-axis.
- Keith
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden