Re: Doing a NSFetchRequest on a single NSManagedObject
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