NSArrayControler
NSArrayControler
- Subject: NSArrayControler
- From: Neto <email@hidden>
- Date: Sun, 28 May 2006 19:12:44 -0300
Hi.
I'm a newbie at Cocoa and I searched the list without success...so if
someone could help...I think its pretty easy what I need...
I have a NSArrayController with two columns: Date and Name.
I need to sort by date and make only the most recent ten entries shown.
I was able to sort with:
NSSortDescriptor* aSortDesc = [[NSSortDescriptor alloc]
initWithKey:@"gdate" ascending:NO];
[myArrayController setSortDescriptors:[NSArray
arrayWithObject:aSortDesc]];
But how do I get only the last 10 entries?
I tried to use NSPredicate with @"count" but I can't figure out how
to define the last ten entries using predicateWithFormat...
Thanks!
neto
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden