• 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
How to bind to NSMutableArray that may contain zero objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to bind to NSMutableArray that may contain zero objects?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Core Data won't accept this string...
  • Next by Date: Re: How to bind to NSMutableArray that may contain zero objects?
  • Previous by thread: Re: Core Data and ARC crasher and workaround
  • Next by thread: Re: How to bind to NSMutableArray that may contain zero objects?
  • Index(es):
    • Date
    • Thread