• 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: How to get default editors without NSArrayController copies?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get default editors without NSArrayController copies?


  • Subject: Re: How to get default editors without NSArrayController copies?
  • From: Kaelin Colclasure <email@hidden>
  • Date: Sun, 13 Aug 2006 09:24:56 -0700


On Aug 13, 2006, at 4:58 AM, Stefan wrote:

Using option-dragging an entity to a window, IB creates a default editor
with respective controllers - each time new controllers, even if the entity
has already NSArrayControllers in the nib.


Although I think this isn't a real problem, I don't like it.

Does anybody know, if I can consolidate to identical controllers to
one without breaking bindings?

If you're asking if you can manually re-bind all of the view bindings to use one controller, then yes, that will work fine. I don't know of any way to "consolidate" the bindings short of doing it manually, one- at-a-time, though.


Moreover, I'd like to know, why IB creates identical controllers. Aren't
identical controllers bad style?

Not necessarily. You may want more than one controller for an entity if, for example, you want to use different filter predicates in different views. IB has no idea what you might get up to, so it creates the most conservative case -- a different controller for each view.


HTH,

-- Kaelin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to get default editors without NSArrayController copies?
      • From: Stefan <email@hidden>
References: 
 >How to get default editors without NSArrayController copies? (From: Stefan <email@hidden>)

  • Prev by Date: Re: Manipulating image meta data from Cocoa
  • Next by Date: Re: Fast screen capturing
  • Previous by thread: How to get default editors without NSArrayController copies?
  • Next by thread: Re: How to get default editors without NSArrayController copies?
  • Index(es):
    • Date
    • Thread