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 8764569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:04:15+00:00 2026-06-13T16:04:15+00:00

I have a NSArrayController bound to an array in one of my objects. I

  • 0

I have a NSArrayController bound to an array in one of my objects. I have a object inheriting from NSObject which is added to the nib file containing the NSArrayController. That object has a property called textureAtlas of type TextureAtlas (a type defined by myself). The type TextureAtlas defines a NSMutableArray property called textures.I am bounding to this texture array (so the path is something like ‘textureAtlas.textures’).

My problem is that whenever I select a new texture in the NSCollectionView, the other controls that are bound to some properties in the selection of the array controller doesnt change. In fact, the selectedIndex property of the NSArrayController is always zero. However, whenever I dynamically add a texture to my atlas, the texture is added correctly in the collection view. I can select textures in the Collection View (the selection border is drawn correctly around the last selected texture). Its just selectedIndex that does not change.
What am I be missing?

  • 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-13T16:04:16+00:00Added an answer on June 13, 2026 at 4:04 pm

    I have solved the problem. Apparently you have to bind the selection indexes of the collection view and texture array controller. I don’t understand why you have to do this. I though cocoa would do that automatically for you.

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

Sidebar

Related Questions

I have an array of images, and two nib files. One nib file has
I have an NSArrayController which is bound to a class in my Managed Object
I have a NSArrayController with following Object: @interface AdressCard : NSObject <NSCoding> { NSString*
I have an NSTableView which is bound to an NSArrayController. I would like to
I have a NSTreeController which array is bound to a items (custom) property of
I have a list of objects displayed in an NSTableView (bound to an NSArrayController).
I have an NSArrayController bound to my mutable model array via its contentArray binding.
I have a NSArrayController bound to NSUserDefaultsController, and the array stores a custom class
I have an NSView subclass which is bound to the arrangedObjects of an NSArrayController
I have an NSTableView bound to an NSArrayController , which is bound to an

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.