On 17 Aug 2008, at 11:06 pm, Jason Wiggins wrote:


On 16/08/2008, at 11:26 PM, Graham Cox wrote:

OK, very simple: it was set in the nib. I didn't realise that presetting this in the nib was possible, so I must have set it up that way more or less by accident. OK, my understanding has improved... (Thanks!)


Hi, I have been following this thread and was wondering how you actually set the sort descriptor in the nib. I've looked at the bindings tab and tried different things but haven't yet got it to work.

I'm not using bindings - not sure in what way that would be different.

Set a sort descriptor for a column by entering a key and selector in the relevant fields of the inspector (if you just enter a key, it enters 'compare:' as the selector for you, but you can change it).

To set the initial sort descriptor click on the column header until it highlights - simple as that. However to get to that point you may have to click through several levels of the selection hierarchy - in my case my table is within a custom view within a split view so getting the column to highlight takes about six clicks, which is why it eluded me for a while there.

hth,

Graham
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to