Re: Reference to entity name in NSPredicate?
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