Dot syntax
Dot syntax
- Subject: Dot syntax
- From: John Dalbec <email@hidden>
- Date: Tue, 17 Jun 2008 21:51:35 -0400
I've been playing with Core Data and the syntax I use to access a Core
Data attribute. In Mac OS X 10.4 I used syntax like:
[a valueForKeyPath @"b.selection.c"]
where b is a NSObjectController bound to a Core Data entity with Cocoa
Bindings and c is an attribute of that entity. In Mac OS X 10.5 I'm
able to define
@property (retain) NSObjectController *b;
and now I can use syntax like:
[a.b.selection valueForKey @"c"]
Is there any way to take the last step so that I can use syntax like:
a.b.selection.c
to access the same attribute? Do I have to subclass
NSObjectController and NSManagedObject?
Thanks,
John
_______________________________________________
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