• 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: Connecting Outlet on Derived Array Controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connecting Outlet on Derived Array Controller


  • Subject: Re: Connecting Outlet on Derived Array Controller
  • From: Joanna Carter <email@hidden>
  • Date: Mon, 1 Mar 2010 16:48:17 +0000

Hi Quincey

> You need to clarify your thinking. What you want (it appears) is a KVO derived property in a certain class -- in this case, one whose value is dependent on a property in a different class.

Actually, I don't really want a "dependent" property. All I want is a way to be able to pass a property on the main controller class to each of three derived array controllers, so that they can use that value to set a property on every new item added to the array controller.

At the moment, I am manually passing the value to each of the array controllers in the windowControllerDidLoadNib: method of the main controller.

This is fine but, since I will need to do the same thing in other scenarios, I wanted to create a derived array controller component that I could add to a NIB and setup in IB, rather than having to write the hookup code every time.

- (void)windowControllerDidLoadNib:(NSWindowController *)windowController
{
  [super windowControllerDidLoadNib:windowController];

  [myExtendedArrayController setExtraProperty:[self extraProperty]];

  ...
}

Joanna

--
Joanna Carter
Carter Consulting

_______________________________________________

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: Connecting Outlet on Derived Array Controller
      • From: Quincey Morris <email@hidden>
References: 
 >Re: Connecting Outlet on Derived Array Controller (From: Joanna Carter <email@hidden>)
 >Re: Connecting Outlet on Derived Array Controller (From: Joanna Carter <email@hidden>)
 >Re: Connecting Outlet on Derived Array Controller (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Writing string to pasteboard on 10.5 causes crash
  • Next by Date: Re: Using CFMutableDictionaryRef
  • Previous by thread: Re: Connecting Outlet on Derived Array Controller
  • Next by thread: Re: Connecting Outlet on Derived Array Controller
  • Index(es):
    • Date
    • Thread