• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Stupid question: selected object of an array controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stupid question: selected object of an array controller


  • Subject: Stupid question: selected object of an array controller
  • From: Pierre Bernard <email@hidden>
  • Date: Fri, 4 Jun 2004 19:12:25 +0200

Hi!

I have created using bindings what essentially is a master detail interface. I have a NSArrayController which draws its content from the file owner. I have a table view whose columns bind to keys of the controller's arranged objects. The table allows only for single selection and there is a detail part in the UI to display said selection.

Now I would like my NSDocument subclass to know which item is selected. I actually want it to be 'notified' when the selection changes. I guess this should be trivial. Yet I am at loss.

I see no adapted binding from within Interface Builder. I have tried the following from the windowControllerDidLoadNib: method

[self bind:@"selectedPage" toObject:[self pageRollController] withKeyPath:@"selection" options:nil];

Any insight is appreciated.

Thanks in advance!

Pierre
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Stupid question: selected object of an array controller
      • From: Chris Giordano <email@hidden>
  • Prev by Date: Objective-C Question
  • Next by Date: Re: Representing UTC time in a readable format
  • Previous by thread: NSTextField and first responder - when does a feature become a bug?
  • Next by thread: Re: Stupid question: selected object of an array controller
  • Index(es):
    • Date
    • Thread