• 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: NSTextField: mystery line drawing outside focus ring?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField: mystery line drawing outside focus ring?


  • Subject: Re: NSTextField: mystery line drawing outside focus ring?
  • From: Steve Christensen <email@hidden>
  • Date: Thu, 27 Sep 2007 07:23:29 -0700

On Sep 27, 2007, at 7:04 AM, Steve Christensen wrote:

On Sep 26, 2007, at 11:43 PM, Ken Ferry wrote:

This looks like a symptom of treating the rect passed to drawRect: as
if it is the bounds of the view.

Does your custom view draw a border around itself? Are you drawing
the border around the rect passed to drawRect:? That won't work -
that rectangle is a region within the view that is dirty and should be
redrawn. You likely want to position the border with respect to [self
bounds].

All my custom view does is fill itself with a particular color. The NSTextFields are subviews of my custom view, but they are not custom classes themselves.

OK, it's still early in the AM so what Ken said didn't sink in until after sending my reply. Yeah, I'm drawing a border in my custom view and was using the passed in rect. Using [view bounds] fixed it. Thanks for the help!


steve

_______________________________________________

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: 
 >NSTextField: mystery line drawing outside focus ring? (From: Steve Christensen <email@hidden>)
 >Re: NSTextField: mystery line drawing outside focus ring? (From: "Ken Ferry" <email@hidden>)
 >Re: NSTextField: mystery line drawing outside focus ring? (From: Steve Christensen <email@hidden>)

  • Prev by Date: Re: NSTextField: mystery line drawing outside focus ring?
  • Next by Date: Re: [Moderator] unacceptable behavior
  • Previous by thread: Re: NSTextField: mystery line drawing outside focus ring?
  • Next by thread: compiling ffplay.c
  • Index(es):
    • Date
    • Thread