Re: CoreData mutableSetValueForKey does NOT return a NSMutableSet
Re: CoreData mutableSetValueForKey does NOT return a NSMutableSet
- Subject: Re: CoreData mutableSetValueForKey does NOT return a NSMutableSet
- From: Steve Israelson <email@hidden>
- Date: Fri, 8 Jun 2007 10:19:46 -0700
In reality all I really want is to get a count of items in a to many
relationship after filtering.
The ONLY reason I need this is because when I am configuring my UI
that has a table in it, I want the table to be sized so it shows all
of its elements, no more and no less. There is no way I have found
that I can get the count of items in the table or in the array
controller since they return 0, and since forcing the array
controller to load by calling fetchWithRequest does not use the
filter and the items are not sorted correctly causing the table to
redraw several times.
I guess ultimately, all I need is a table that is precisely the
correct height for its items.
If you want to know why, this is to make a display exactly like
spotlight.
On 8-Jun-07, at 9:58 AM, mmalc Crawford wrote:
On Jun 8, 2007, at 9:53 AM, Steve Israelson wrote:
But, for some reason the set returned does not respond to
allObjects since it is not a member of the NSSet class but some
other private class.
Is this a know issue?
It's not an issue, it's a feature.
<http://developer.apple.com/documentation/Cocoa/Reference/
Foundation/Protocols/NSKeyValueCoding_Protocol/Reference/
Reference.html#//apple_ref/occ/instm/NSObject/mutableSetValueForKey:>
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdUsingMOs.html>
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden