Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick problem with arraycontroller



I fixed it, I had the bindings set up perfectly. My challenge was in my Project object my NSMutableArray was setup wrong:

@property (readwrite, assign) NSMutableArray *projectInfo;
should have been
@property (readwrite, copy) NSMutableArray *projectInfo;

with that change it works perfectly.

On Jul 18, 2008, at 11:24 PM, Jason Cox wrote:

I have 2 array controllers. the 1st manages an array of Project objects. within the project object there is an NSMutableArray of ProjectInfo objects.
Here is an image of my Interface Builder setup for the 2 controllers:


http://www.design-factor.com/jason/bindings.jpg

The Projects array controller works fine, but when i try to use the array controllers add: for the ProjectInfo controller, it gives me this in the console:
Cannot create NSArray from object NSCFString of class NSCFString


Im new to Cocoa / obj-c so please forgive the possible butchering of terminology. Im sure anyone out there can take a quick look at this and tell me exactly what I'm doing wrong.

Thanks so much,

Jason
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Quick problem with arraycontroller (From: Jason Cox <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.