• 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: Programmatically selecting column header cell and triggering a sort
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically selecting column header cell and triggering a sort


  • Subject: Re: Programmatically selecting column header cell and triggering a sort
  • From: mmalc crawford <email@hidden>
  • Date: Sun, 19 Aug 2007 23:23:17 -0700


On Aug 19, 2007, at 10:48 PM, Alex Reynolds wrote:

I then, instead, tried to bind the "sortDescriptors" binding in the NSTableView to a NSArray object ("sortDescriptors") instantiated in my AppController:
mySorter = [[NSSortDescriptor alloc] initWithKey:@"myKey" ascending:YES];
sortDescriptors = [NSArray arrayWithObjects: mySorter];
[mySorter release];
This, unfortunately, prevents the data connected to myTableView from being displayed.


Normally the 'content', 'sortDescriptors', and 'selectionIndexes' are established automatically when you set up the table columns. If you bind any of these independently, you must bind them all...
<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>


mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Programmatically selecting column header cell and triggering a sort (From: Alex Reynolds <email@hidden>)
 >Re: Programmatically selecting column header cell and triggering a sort (From: Andrew Merenbach <email@hidden>)
 >Re: Programmatically selecting column header cell and triggering a sort (From: Alex Reynolds <email@hidden>)

  • Prev by Date: Re: Programmatically selecting column header cell and triggering a sort
  • Next by Date: Re: textStorage readFromURL does not like blanks
  • Previous by thread: Re: Programmatically selecting column header cell and triggering a sort
  • Next by thread: Control memory overhead : how releasing custom NSMannagedObject ?
  • Index(es):
    • Date
    • Thread