• 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: Robert Cerny <email@hidden>
  • Date: Mon, 23 Feb 2004 19:41:54 +0100

Hi,
no, you're not alone. The functions you're talking about are new to 10.3 and the documentation is not completed yet. Everybody believe that it will improve sometimes. The good part is that some clever folks already made a few samples which can help you. Check mmalc cotrller samples: http://homepage.mac.com/mmalc/CocoaExamples/controllers.html

HTH
Robert

On 23.2.2004, at 16:52, rudy_norff wrote:

Hello,

I am trying to sort a TableView using the Panther methods. I already figured out how to sort somehow.

- (void)tableView:(NSTableView *)tableView sortDescriptorsDidChange:(NSArray *)oldSortDescriptors {
// arTasks is my Mutable Array
[arTasks sortUsingDescriptors: [tableView sortDescriptors]];
[self saveData]; // this just saves my array into a plist
[tableView reloadData];
}

By the way, is this the right way of doing things? And another one: I'm still just a beginner, but sometimes I feel left
alone in the dark by Apples documentation and examples. Am I the only one feeling like this? This becomes especially true to me
when I look at the table sorting example above!
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

Does anybody have an idea to why this is happening? By the way: for every column I used the sort selector compare: in interface builder, this should work, right?

thanks for your answers in advance!
- rudy



bis denne
rudy

email@hidden www.mactunes.de
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Table sorting in panther
      • From: Scott Anguish <email@hidden>
References: 
 >Table sorting in panther (From: rudy_norff <email@hidden>)

  • Prev by Date: Re: Position of the selection cursor in an NSTextField
  • Next by Date: Re: daemon processes at boot time
  • Previous by thread: Table sorting in panther
  • Next by thread: Re: Table sorting in panther
  • Index(es):
    • Date
    • Thread