How to set title of NSBox from an array controller via cocoa- bindings

Discussion in 'Mac Programming' started by Monaj, Jul 28, 2010.

  1. Monaj macrumors regular

    Joined:
    May 24, 2009
    #1
    Hi all,

    I have an array controller holding some values, say - subjects. I am displaying these values in a table view. I want to set the title of NSBox as subject in selected row.

    I tried to do it in following way:
    Binding pane: Title, Controller Key: selection, Model Key Path: subject.

    But it is always displaying nil as box title.

    Can anyone suggest me how to do it correctly?

    Thanks,

    Monaj
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Are you sure you have bound to the array controller and not something else? Do you get errors or just nothing?

    Try reproducing in a separate blank project. It worked fine for me.
     
  3. Monaj thread starter macrumors regular

    Joined:
    May 24, 2009
    #3
    .. ok ,I will check it again...thanks for your reply :)
     
  4. Monaj thread starter macrumors regular

    Joined:
    May 24, 2009
    #4
    you were right ... I tried it with other sample application and it is working :)
     

Share This Page