On 4 Nov 2008, at 18:21, Volker in Lists wrote:

Hi,


Is there an easy way to access the existing Array Controller from the code? I have a suitable Array Controller called Purchase Order Items Array Controller in IB, but I don't see a way to reference this in the code. The Array Controller is bound to the selection of another Array Controller.

As before and always, using IBOutlets ? You can connect an IBOutlet from any of your delegate/controller NSObject subclasses (the ones in defined in Xcode and filled with real code). If you have a NSAppDelegate class already at hand, create an IBOutlet NSArrayController *theWantedArrayController in the header file and connect that in IB to the appropriate object in IB.

I can connect it in IB, my problem is how to reference it / use the objects in it in the code. In IB I already have the Array Controller called Purchase Order Items.

in my POView.m file I want to use the objects in the array controller to do other things, but I don't see that I can access the Array Controller in the code.

This Array Controller in particular has it's content set determined by the selected item in another array controller.

Volker

Thanks
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to