• 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: Doing a NSFetchRequest on a single NSManagedObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Doing a NSFetchRequest on a single NSManagedObject


  • Subject: Re: Doing a NSFetchRequest on a single NSManagedObject
  • From: Charilaos Skiadas <email@hidden>
  • Date: Sat, 6 Aug 2005 13:21:36 -0500


On Aug 6, 2005, at 1:13 PM, mmalcolm crawford wrote:


On Aug 6, 2005, at 11:02 AM, Andrew Sage wrote:


Project* project = [projectArrayController selection];

[...]

predicate = [NSPredicate predicateWithFormat:@"(project = %@)", project];


<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSObjectController.html#// apple_ref/doc/uid/20002044-BBCIDIEB>

In other words, you probably want [project valueForKey:@"self"] unless I am mistaken.
And you probably want to check to make sure that there is no multiple selection etc.
mmalc


Haris


_______________________________________________ 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: Doing a NSFetchRequest on a single NSManagedObject
      • From: mmalcolm crawford <email@hidden>
References: 
 >Doing a NSFetchRequest on a single NSManagedObject (From: Andrew Sage <email@hidden>)
 >Re: Doing a NSFetchRequest on a single NSManagedObject (From: Charilaos Skiadas <email@hidden>)
 >Re: Doing a NSFetchRequest on a single NSManagedObject (From: Andrew Sage <email@hidden>)
 >Re: Doing a NSFetchRequest on a single NSManagedObject (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Doing a NSFetchRequest on a single NSManagedObject
  • Next by Date: Re: Doing a NSFetchRequest on a single NSManagedObject
  • Previous by thread: Re: Doing a NSFetchRequest on a single NSManagedObject
  • Next by thread: Re: Doing a NSFetchRequest on a single NSManagedObject
  • Index(es):
    • Date
    • Thread