• 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
-[NSCFData count]: unrecognized selector
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[NSCFData count]: unrecognized selector


  • Subject: -[NSCFData count]: unrecognized selector
  • From: PCWiz <email@hidden>
  • Date: Sat, 5 Dec 2009 17:23:26 -0700

I'm having an *extremely* strange problem here. I'm using this simple if statement to find out if an array controller is not empty:

if ([[_arrayController arrangedObjects] count] > 0)

And this is what it results in:

-[NSCFData count]: unrecognized selector sent to instance 0x134d010

If I take out that if statement and let the code run without a check to see if the array controller is empty, that error does not appear so I'm fairly certain that this is what's causing the issue. I've also gone through the rest of my code checking for any typos which might try to use the count method on an NSData object, but I found nothing.

Really confused here because I've used that same if statement many times before, so I don't see why its messing up now._______________________________________________

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: -[NSCFData count]: unrecognized selector
      • From: Mike Abdullah <email@hidden>
    • Re: -[NSCFData count]: unrecognized selector
      • From: Seth Willits <email@hidden>
  • Prev by Date: An array of
  • Next by Date: Re: An array of
  • Previous by thread: Re: An array of
  • Next by thread: Re: -[NSCFData count]: unrecognized selector
  • Index(es):
    • Date
    • Thread