• 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: NSMatrix doesn't highlight correctly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMatrix doesn't highlight correctly


  • Subject: Re: NSMatrix doesn't highlight correctly
  • From: Eric Forget <email@hidden>
  • Date: Thu, 11 Mar 2004 12:43:21 -0500

> - (void)drawInteriorWithFrame:(NSRect)frame inView:(NSView *)controlView
> {
> if ([self isHighlighted] && ([ self image] != nil)) {
> [[NSColor selectedControlColor] set];
> NSRectFill (frame);
> } else {
> [[NSColor whiteColor] set];
> NSRectFill (frame);
> }
>
> [super drawInteriorWithFrame:frame inView:controlView];
> }
>
> What am I missing here?

Try adding:

- (BOOL)isSelectable
{
return YES;
}

Eric
___________________________________________________________________

Eric Forget Cafederic
email@hidden <http://www.cafederic.com/>

Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSMatrix doesn't highlight correctly
      • From: Michael Becker <email@hidden>
References: 
 >NSMatrix doesn't highlight correctly (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: Updating multiple NSViews[solved]
  • Next by Date: I want the NSProgressIndicator to stand still!!!
  • Previous by thread: NSMatrix doesn't highlight correctly
  • Next by thread: Re: NSMatrix doesn't highlight correctly
  • Index(es):
    • Date
    • Thread