How to draw Metal-Background?
How to draw Metal-Background?
- Subject: How to draw Metal-Background?
- From: Alexander Spohr <email@hidden>
- Date: Thu, 15 Jan 2004 17:15:28 +0100
hi list,
i have a tableview-subclass. it should draw it's rows in the metal
style if it is inactive (not key).
currently i am doing this (draws lightGrayColor):
- (void)highlightSelectionInClipRect:(NSRect)clipRect
{
[super highlightSelectionInClipRect:clipRect];
if([[self window] firstResponder] != self)
{
[[NSColor lightGrayColor] set];
NSRectFill(clipRect);
}
}
now i tried to use NSDrawWindowBackground:
- (void)highlightSelectionInClipRect:(NSRect)clipRect
{
[super highlightSelectionInClipRect:clipRect];
if([[self window] firstResponder] != self)
{
NSDrawWindowBackground(clipRect);
}
}
but this throws a lot strange stuff....
2004-01-15 17:11:07.852 SomeApp[6180] *** -[NSNextStepFrame
contentAlpha]: selector not recognized
2004-01-15 17:11:07.862 SomeApp[6180] Exception raised during posting
of notification. Ignored. exception: *** -[NSNextStepFrame
contentAlpha]: selector not recognized
2004-01-15 17:11:08.200 SomeApp[6180] *** -[NSNextStepFrame
contentAlpha]: selector not recognized
2004-01-15 17:11:08.209 SomeApp[6180] *** -[NSNextStepFrame
contentAlpha]: selector not recognized
*** malloc[6180]: Deallocation of a pointer not malloced: 0xbfffe130;
This could be a double free(), or free() called with the middle of an
allocated block; Try setting environment variable MallocHelp to see
tools to help debug
*** malloc[6180]: Deallocation of a pointer not malloced: 0xbfffe2a0;
This could be a double free(), or free() called with the middle of an
allocated block; Try setting environment variable MallocHelp to see
tools to help debug
*** malloc[6180]: Deallocation of a pointer not malloced: 0xbfffe410;
This could be a double free(), or free() called with the middle of an
allocated block; Try setting environment variable MallocHelp to see
tools to help debug
2004-01-15 17:11:11.595 SomeApp[6180] *** -[NSNextStepFrame
contentAlpha]: selector not recognized
2004-01-15 17:11:11.595 SomeApp[6180] *** -[NSNextStepFrame
contentAlpha]: selector not recognized
(the mallocs may appear because the views are not drawn)
any idea how i could get my background drawn with apples metal-style?
atze
_______________________________________________
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.