Accessing NSArray objects with a key path
Accessing NSArray objects with a key path
- Subject: Accessing NSArray objects with a key path
- From: email@hidden
- Date: Wed, 30 Mar 2005 13:32:29 -0600 (CST)
- Importance: Normal
Hello,
I have an NSTableView that is being managed by an NSArrayController. The
table columns all bind to different keys, like @"arrangedObjects.key1".
My problem is that I want @"arrangedObjects.key1" to return an NSArray and
I want the table column to display only, say, the first object. Something
to the effect of @"arrangedObjects.key1.objectAtIndex:0" or just
@"arrangedObjects.key1.0".
Is this kind of operation possible? Is there some array operator like
@max or @count that I am missing? I could write a custom formatter for
the column to pick off the part of the array I need but it seems like
there should be an easier way with the key paths. I have looked all over
the documentation and old list threads but can't find any answers.
Thanks!
Ryan
_______________________________________________
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