• 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: Quick problem with arraycontroller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick problem with arraycontroller


  • Subject: Re: Quick problem with arraycontroller
  • From: Jason Cox <email@hidden>
  • Date: Sat, 19 Jul 2008 14:02:18 -0700

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:
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:
This email sent to email@hidden


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

  • Prev by Date: Drawer examples?
  • Next by Date: Outline View not retaining objects it uses. Why?
  • Previous by thread: Quick problem with arraycontroller
  • Next by thread: setting image for person in address book
  • Index(es):
    • Date
    • Thread