• 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
Re: Reference to entity name in NSPredicate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reference to entity name in NSPredicate?


  • Subject: Re: Reference to entity name in NSPredicate?
  • From: Scott Stevenson <email@hidden>
  • Date: Tue, 15 Nov 2005 15:35:38 -0800


On Nov 15, 2005, at 3:07 PM, Z Rosen wrote:

Now, say I want to exclude the blue_ folders. It would be nice if I could just say:

NSPredicate *blueFolderPredicate = [ NSPredicate predicateWithFormat:@"entity.name LIKE %@", @"blue_folder" ];
[ allMyFolders setFetchPredicate:[ NSCompoundPredicate notPredicateWithSubpredicate:blueFolderPredicate ] ];


.. but (of course) entity is not a valid key.


Any ideas?

Create an attribute that describes the type of each instance.


- Scott

--
http://theocacao.com/


_______________________________________________ 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
  • Follow-Ups:
    • Re: Reference to entity name in NSPredicate?
      • From: Z Rosen <email@hidden>
References: 
 >Reference to entity name in NSPredicate? (From: Z Rosen <email@hidden>)

  • Prev by Date: Re: Dictionary to an invisible file
  • Next by Date: Re: Maximum file name length?
  • Previous by thread: Reference to entity name in NSPredicate?
  • Next by thread: Re: Reference to entity name in NSPredicate?
  • Index(es):
    • Date
    • Thread