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: Does willChange:valuesAtIndexes:forKey: work correctly?




On Mar 16, 2007, at 1:21 AM, Scott Stevenson wrote:


On Mar 15, 2007, at 10:00 PM, Steve Weller wrote:

I have the array controller bound to my class and have methods objectInImageTableDataAtIndex: and countOfImageTableData: so I can provide the data it needs. This all works. The controller happily fills my table.

I feel like I'd need to see this in person to really get what's going on for sure, but a few suggestions:



1. Implement all of the indexed accessors and use those. Specifically:

	-replaceObjectInImageTableDataAtIndex:withObject:

You can use this directly inside your loop.

<http://developer.apple.com/documentation/Cocoa/Conceptual/ KeyValueCoding/Concepts/AccessorConventions.html>

This makes perfect sense. Instead of working with the array directly and then trying to clean up the effect, implement all the accessors and use them directly. I will give that a go.






_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Does willChange:valuesAtIndexes:forKey: work correctly? (From: Steve Weller <email@hidden>)
 >Re: Does willChange:valuesAtIndexes:forKey: work correctly? (From: Scott Stevenson <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.