Re: Table sorting in panther
Re: Table sorting in panther
- Subject: Re: Table sorting in panther
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 23 Feb 2004 11:09:53 -0800
On Feb 23, 2004, at 7:52 AM, rudy_norff wrote:
The sorting works for all columns containing text. But when I select
a column with the content being a number (I have some Popupmenus in my
table) or when I select the column that contains booleans (I have
checkboxes in that column) then it just says something like this:
[NSFCBoolean length]: selector not recognized
Try setting a breakpoint on "-[NSException raise]", running the program
in the debugger, and attempting to reproduce the problem. Then the
debugger will break if it (or any other raised exception) occurs. You
might be doing something like this:
int sort(id objectOne, id objectTwo, void *context)
{
int objectOnesLength = [objectOne length];
...
}
... which assumes that "objectOne" is a certain type of object (like
NSString). If objectOne is really some other kind of object that
doesn't have an implementation of -length, like an NSNumber, then
that's the problem right there...
Nick Zitzmann
<
http://seiryu.home.comcast.net/>
<
http://www.freshlysqueezedsoftware.com/>
S/MIME signature available upon request
UNIX: Where /sbin/init is Job #1.
_______________________________________________
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.