Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6855187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:43:33+00:00 2026-05-27T01:43:33+00:00

I have an entity Tag (in core data) that have some attributes and a

  • 0

I have an entity Tag (in core data) that have some attributes and a to-many relationship named “aliases”.

My ArrayController is “bind” in Xcode to:

Parameters->Managed Object Context = File's Owner.managedObjectContext

It work OK for all Attributes, the others columns present the correct values.

In one column I try to “display” this to-many relationship. If I do it naively and bind the Value of my NSTableColumn to my ArrayController.arrangedObjects.aliases (like all other attributes) I get this on the screen:

Relationship fault for (),
name aliases, isOptional 1, isTransient 0, entity Tag,
renamingIdentifier aliases, validation predicates ( ), warnings ( ),
versionHashModifier (null), destination entity TagAlias,
inverseRelationship tag, minCount 0, maxCount 0 on 0x10053db10

It seems to be some kind of CoreData proxy for the relationship…

I then build a subclass of NSValueTransformer:

@interface tagAliasesToStringTransformer : NSValueTransformer

+ (Class)transformedValueClass;
+ (BOOL)allowsReverseTransformation;
- (id)transformedValue:(id)value;

@end

and tried to use it as a Value Transformer in the binding. But I’m lost in my implementation:

@implementation tagAliasesToStringTransformer

+ (Class)transformedValueClass {
    return [NSString class];
}

+ (BOOL)allowsReverseTransformation {
    return NO;
}

- (id)transformedValue:(id)value {

    if (value == nil) return nil;

    ...
}

@end

In the method transformedValue:, value is of class ‘_NSFaultingMutableSet’ and I don’t know how to get a Set/Array of the aliases or anything useful.

The goal is to build a NSString of the concatenation of each alias. Something like:

aTag : alias1 alias2 alias3 …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:43:34+00:00Added an answer on May 27, 2026 at 1:43 am

    I found the solution:

    _NSFaultingMutableSet is actually a kind of NSSet, so by doing something like this:

    - (id)transformedValue:(id)value {
        if (value == nil) return nil;
    
        NSArray *tags = [value allObjects];
        for (Tag *tag in tags) {
            ...
        }
    }
    

    you get access to all the entity.

    Don’t know why it’s obvious now and not one week ago… getting out of newbie zone ?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using CoreData, I have an entity Bookmark, that has an to-many relationship named 'tags'
I have a Tag and an Article object with a many-to-many relationship using Entity
I have an Core Data entity called Album; an album has a relationship to
I have entity Unit and Tag , each with to-many relation to other. I
I have an Entity result of List<string> GetTagsData that I need to somehow bind
I have entities Post and Tag , where there is a many-to-many relationship between
In my Core Data managed object model, I have an entity Foo with a
I have a Song Entity and a Tag entity and they have a many
I have an entity named Tag with a navigation property (collection) named Articles .
I have entity Problem mapped using many-to-many to entity Tag (Problem has a list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.