• 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
NSArrayController access between nib files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController access between nib files


  • Subject: NSArrayController access between nib files
  • From: Brian Carmalt <email@hidden>
  • Date: Sat, 8 Aug 2009 22:35:14 +0200

Hello everyone,

I am trying to figure out how to access a NSArrayController in one nib file from another nib. I have done the NSPersistentDocument tutorial and I am trying to apply what I have learned.

So in my MyDocument.nib there is a array controller I would like to bind to a NSComboBox from a NewObjectSheet.nib. I have a NewObjectSheetController in MyDocument.nib and the same controller is file's owner in the NewObjectSheet. The controller has an outlet which points to an array controller which I would like to bind to an NSComboBox in the NewObjectSheet.nib.

First I'm not sure if it is possible to bind the NSComboBox to the NewObjectSheetController's outlet to the array controller.
Content would be bound to File's Owner with a model key path of self.arrayController
Content Values would be bound to File's Owner with a model key path of self.arrayController.arrangedObjects
Value be bound to File's Owner with a model key path of self.arrayController.selection.name


If the scenario above is not possible, what is the best way to set this up? Should I set up a new NSArrayController in the NewObjectSheet.nib, set its entity to the same entity in the array controller I would like to use and then use the NewObjectSheetController access to the Document's ManagedObjectContext(MOC) and bind the MOC of the array controller to the document MOC and then use the bindings in the normal way?

Thanks for any responses!

Brian
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSArrayController access between nib files
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Universal binary with different deployment targets - how?
  • Next by Date: Re: Universal binary with different deployment targets - how?
  • Previous by thread: Re: Universal binary with different deployment targets - how?
  • Next by thread: Re: NSArrayController access between nib files
  • Index(es):
    • Date
    • Thread