Yeah that worked.  Quirky is the word.

On Sep 11, 2008, at 10:42 AM, Keary Suska wrote:

9/11/08 10:29 AM, also sprach [EMAIL PROTECTED]:

I have two entities, "Reels" and "Scenes".  Reels have many Scenes;
reels have an "isHidden" attribute.  The array controller I'm having
trouble with fetches scenes that are in reels that are not hidden,
thus it's fetch predicate (in IB, and I've done this programatically)
is "reel.isHidden == NO".

When I open a document, the ArrayController finds the correct scenes,
the ones in unhidden reels.  If I hide one reel and show another (by
clicking checkboxes bound to the isHidden attribute on reels, the
array controller persists in showing the scenes for the hidden reel
(this is the problem).  The array controller refuses to find the
scenes in the unhidden reel no matter how many times I order it to
fetch: or fetchWithRequest:
UNTIL I save the document, at which time the array controller realizes
what's been going on and fetches the correct scenes.

IIRC, this is expected behavior. Quirky, perhaps. What you probably want is to apply the predicate also as a filter predicate. OTOH this should cause
the behavior you want

Jamie Hardt
The Sound Department
http://www.soundepartment.com/
http://www.imdb.com/name/nm0362504/

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to