• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSCell bezel drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


PNG image



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

References: 
 >NSCell bezel drawing (From: Keith Duncan <email@hidden>)
 >Re: NSCell bezel drawing (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: NSCell bezel drawing
  • Next by Date: Re: Binding Across Nibs
  • Previous by thread: Re: NSCell bezel drawing
  • Next by thread: Accesing a file from a remote machine
  • Index(es):
    • Date
    • Thread