How to bind to NSMutableArray that may contain zero objects?
How to bind to NSMutableArray that may contain zero objects?
- Subject: How to bind to NSMutableArray that may contain zero objects?
- From: Michael Crawford <email@hidden>
- Date: Tue, 03 Apr 2012 18:29:34 -0400
Using and NSArrayController I'd like to bind the controller to an instance of NSMutableArray, which under certain circumstances may contain zero objects. I don't have any real experience with NULL placeholders but I assume this situation is what they are for. Can someone give me some guidance regarding how to leverage NULL placeholders in this situation or better yet, point me to an example?
Alternatively, I'm thinking I can create my own dummy (placeholder) object and insert it into the array when there are no other real object instances to be accessed. If you have an opinion on this work-around, I'd like to hear from you, as well.
Thanks.
-Michael
_______________________________________________
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