• 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
Core data accessor and KVC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core data accessor and KVC


  • Subject: Core data accessor and KVC
  • From: AurĂ©lien HugelĂ© <email@hidden>
  • Date: Tue, 29 Nov 2005 16:54:51 +0100

Hi !

suppose i have an entity Email, with an attributed "sender" of type string. sender is the email address like "email@hidden".
is it possible to run a fetch request with a predicate like : @"sender.lowercaseString IN %@",aListOfEmailAddresses ?
i would like to get all emails object where sender, as a lower case string, in is a list of addresses.


i'm surprised to be able to use valueForKeyPath:@"lowercaseString" on an NSArray of NSString, but not being able to do the same thing with core data.

must i implement an accessor like "lowercasedSender" in my Email entity class ??

it could be damn useful...

thanks
_______________________________________________
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


  • Prev by Date: Re: Is Apple's singleton sample code correct?
  • Next by Date: Re: timers and event loops
  • Previous by thread: NSArrayController replace and observeValueForKeyPath:
  • Next by thread: Queston about thread viewer
  • Index(es):
    • Date
    • Thread