• 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: Search Array for Variable in Object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Search Array for Variable in Object


  • Subject: Re: Search Array for Variable in Object
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 5 Dec 2005 14:59:22 -0800


On Dec 5, 2005, at 1:19 PM, Steve Gran wrote:

Unfortunately it looks as if the predicate needs to search for the object only, let's say in this case it's "myObject3" or some portion of the name of myObject (again in this case myObject3), and will then return a new Array that contains myObject3. But it doesn't appear to have the ability to look inside the object and search instance variables of an object.

I'm not sure how you reach that conclusion? You can use key-paths to specify a property...
The example given in "Using Predicates with Relationships" shows "department.name like %@"; to filter an array you could use something like:
"myObject3 like [cd] 'WhatIWant'"

mmalc

_______________________________________________
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
References: 
 >Re: Search Array for Variable in Object (From: Steve Gran <email@hidden>)

  • Prev by Date: +[NSData dataWithContentsOfURL:] leaks memory?
  • Next by Date: MEETING: Chicago - CAWUG December 6th
  • Previous by thread: Re: Search Array for Variable in Object
  • Next by thread: Re: Search Array for Variable in Object
  • Index(es):
    • Date
    • Thread