• 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
Dot syntax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Grand Central Details
  • Next by Date: File System Notifications
  • Previous by thread: Re: Where to store document window specific setup data
  • Next by thread: re: Dot syntax
  • Index(es):
    • Date
    • Thread