Crash in setTextColor
Crash in setTextColor
- Subject: Crash in setTextColor
- From: Steve Palmer <email@hidden>
- Date: Sun, 18 Apr 2004 09:31:11 -0700
One of my users found a strange bug. In my application, I have an
NSTableView where I set the colour of rows within:
-(void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell
forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
{
...
[aCell setTextColor:newColor];
If newColor is one of the primary colours then everything works fine.
If he selects a colour from the colour wheel rather than from the list
of colours provided in the Apple group then it crashes. As a test, I
picked Carnation as a colour from the Color Picker window via a Color
Well in my preferences window and I got the following exception:
#0 0x908311f4 in objc_msgSend
#1 0x92e5a044 in -[NSCalibratedWhiteColor isEqual:]
#2 0x92e24ca8 in -[NSTextFieldCell setTextColor:]
#3 0x0068aab8 in -[AppController
tableView:willDisplayCell:forTableColumn:row:] at AppController.m:1402
I've done an archive search and a web search and I can find no record
of this problem or of any limitations on the type of colours that can
be used with setTextColor on a table cell. Does this sound familiar to
anybody?
Thanks!
- Steve
_______________________________________________
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.