• 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
Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings


  • Subject: Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 17 Dec 2009 12:32:25 -0800

On Dec 17, 2009, at 12:24, Gustavo Pizano wrote:

> I was checking the documentation, just in case, Im not saying I will do it this way, but jsut to keep it in mind... Subclassing NSArrayController, and overriding add:  method, I can get the entityName form the NSObjectController (Parent of NSArrayController), and create there the Instance of ItemXInvoice an Item, relate them and do as the doc says: " .... and sets it as the receiver’s content object using addObject:."
>
> That way shall work isn't it? just that in IB I must set the EntityName and the  ManagedObjectContext....

It works, but at the price of having to subclass NSArrayController. That seems unnecessary, since it's just as good to put the action method in your NSWindowController subclass (or your NSDocument subclass, if you're using that instead), which you presumably have already.


_______________________________________________

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: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings
      • From: Gustavo Pizano <email@hidden>
References: 
 >Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings (From: Gustavo Pizano <email@hidden>)
 >Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings (From: Quincey Morris <email@hidden>)
 >Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings (From: Gustavo Pizano <email@hidden>)
 >Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings (From: Quincey Morris <email@hidden>)
 >Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings (From: Gustavo Pizano <email@hidden>)
 >Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings (From: Quincey Morris <email@hidden>)
 >Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings
  • Next by Date: Re: narraycontroller sort performance problems
  • Previous by thread: Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings
  • Next by thread: Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings
  • Index(es):
    • Date
    • Thread