• 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: Custom NSViews not highlighting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom NSViews not highlighting


  • Subject: Re: Custom NSViews not highlighting
  • From: Charles Steinman <email@hidden>
  • Date: Sat, 13 Oct 2007 21:59:26 -0700 (PDT)

--- Development <email@hidden> wrote:

> -(void)highlight
> {
> 	[self lockFocus];
> 		[[NSColor yellowColor]set];
> 		NSFrameRect([self bounds]);
> 	[self unlockFocus];
> }

Drawing in NSViews is supposed to be done from
drawRect:. Move the drawing code into there and simply
mark the view as needing display when it needs to be
updated.

Cheers,
Chuck


      ____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
_______________________________________________

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: 
 >Custom NSViews not highlighting (From: Development <email@hidden>)

  • Prev by Date: Custom NSViews not highlighting
  • Next by Date: Validation error in a relationship? (in coredata)
  • Previous by thread: Custom NSViews not highlighting
  • Next by thread: Validation error in a relationship? (in coredata)
  • Index(es):
    • Date
    • Thread