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

  • Home
  • SEARCH
  • 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 8074189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:34:22+00:00 2026-06-05T14:34:22+00:00

So far all the examples I can find are direct binding between Core Data

  • 0

So far all the examples I can find are direct binding between Core Data and NSArrayController. That means each NSArrayController maps exactly one entity.

Is there a way to customize what’s get populated into the NSArrayController?

For example, I have two entities:

FileMetaData
    ID
    FileName
    FileSize
    Owner(relationship m..1 to SystemUser)

SystemUser
    ID
    FirstName
    LastName
    Files(relationship 1..m to FileMetaData)

I have one NSArrayController to populate a tableview that has two column, one is “FileName”, and the other one is “UserName”. UserName comes from FirstName + Lastname in SystemUser entity. The NSArrayController is set to bind with FileMetaData.

What is the best way to do this? Thanks.

  • 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-06-05T14:34:23+00:00Added an answer on June 5, 2026 at 2:34 pm

    One way to easily get a UserName property (FirstName + LastName) is to define a category on the SystemUser class with a UserName method that returns the FirstName and LastName properties duly concatenated.

    Then in your various bindings you can bind to the UserName property. Typed directly into the browser, so not tested, a UISupport (or any other name) category SystemUser could look like this:

    // In SystemUser+UISupport.m
    
    - (NSString *)userName
    {
        return [NSString stringWithFormat: @"%@ %@", self.FirstName, self.LastName];
    }
    

    In order for the bindings to work if the FirstName or LastName properties change, you might want to implement this method, too:

    +(NSSet*)keyPathsForValuesAffectingUserName
    {
        return [NSSet setWithObjects: @"self.FirstName", @"self.LastName", nil];
    }
    

    Finally, for completeness, you can declare your new-fangled read-only property in the header file:

    // In SystemUser+UISupport.h
    
    @property (readonly) NSString *userName;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thus far, my testing has shown that all standard approaches, examples, and frameworks leveraging
All the examples I can find are in Visual Basic, but I am using
Examples of ffmpeg that I've seen so far all seem to accept a file
Just a quick question, I can't seem to find any examples so far. I
As far as I know that JSF keeps all the session scoped bean in
I really have no idea how to go about this. So far all I
Not sure how to word the question... Basically, so far all my SQL stuff
I read a few websites and questions but all were far beyond my level
Thus far used sql server stored procedures for all my web applications... Now thought
I followed all of the instructions so far from: http://code.google.com/p/appengine-jruby/wiki/RunningRails and http://gist.github.com/268192 Currently, I'm

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.