Re: NSMatrix doesn't highlight correctly
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.