• 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: Table sorting in panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Table sorting in panther (From: rudy_norff <email@hidden>)

  • Prev by Date: Re: IBOutlet does not initialize. Newbie Q.
  • Next by Date: NSSearchField search template through IB
  • Previous by thread: Re: Table sorting in panther
  • Next by thread: IBOutlet does not initialize. Newbie Q.
  • Index(es):
    • Date
    • Thread