How to rename Array Controller in Xcode 6.1.1?

Discussion in 'Mac Programming' started by Qaanol, Mar 7, 2015.

  1. Qaanol, Mar 7, 2015
    Last edited: Mar 7, 2015

    Qaanol macrumors 6502a

    Jun 21, 2010
    I’m editing an xib file, and in the list of “Objects” I have 7 array controllers. When I click on one and hit return, it appears to let me edit the name. After I enter a custom name and hit return again, the Label property of the object updates to what I wrote, but the list of Objects still shows “Array Controller”.

    I want to be able to change how they are named in that list. I don’t actually care about editing any name-related property that will be exposed at compile or runtime, all I care about is making it easy for me to identify and distinguish among the objects while I am editing the xib file.

    However, I cannot seem to do that. What is the proper method?

    Edit: Okay, things just got weird.

    After changing the Label for an Array Controller, if I bind a table view to it, then the name updates in the list of objects. Very strange.
  2. superscape macrumors 6502a


    Feb 12, 2008
    East Riding of Yorkshire, UK
    I have no answer, but if it's any consolation, I get the same behaviour as you describe all the time. Usually I try to change the name for a while, get frustrated and resign myself to having the name stay as Array Controller.

    So, I press on with my work and almost always the name mysteriously changes to the name I typed in later on in the project. It's almost as if the name *did* change, but for some reason the UI failed to update.

    I guess it's a bug in Xcode, but I'd be grateful if anyone has any workarounds or fixes.

Share This Page