Re: Custom NSViews not highlighting
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