• 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
NSNull/NSarray .. count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSNull/NSarray .. count


  • Subject: NSNull/NSarray .. count
  • From: arri <email@hidden>
  • Date: Fri, 23 Mar 2007 06:23:49 +0100

i'm baffled;

calling this:



	NSLog(@"planning-count %d", [[self planning] count]);




..returns the expected count/number in the run-log, but when doing this on the next line:




int cnt = [[self planning] count];

..the app hangs/quits, spitting this message:

2007-03-23 06:01:30.874 Placid[1265] *** -[NSNull count]: selector not recognized [self = 0xa0806040]
2007-03-23 06:01:30.874 Placid[1265] An uncaught exception was raised
2007-03-23 06:01:30.874 Placid[1265] *** -[NSNull count]: selector not recognized [self = 0xa0806040]
2007-03-23 06:01:30.874 Placid[1265] *** Uncaught exception: <NSInvalidArgumentException> *** -[NSNull count]: selector not recognized [self = 0xa0806040]




i would really like to get some pointers to what's going on here.
note that this is called from the display-link thread.


thanks arri _______________________________________________

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


  • Follow-Ups:
    • Re: NSNull/NSarray .. count
      • From: Andy Lee <email@hidden>
    • Re: NSNull/NSarray .. count
      • From: Buddy Kurz <email@hidden>
References: 
 >filteredArrayUsingPredicate - need help with run time error (From: Yevgeniy Goldberg <email@hidden>)
 >Re: filteredArrayUsingPredicate - need help with run time error (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Twain, Image Capture, Intel, PPC
  • Next by Date: Re: NSViewAnimation choppy animations
  • Previous by thread: Re: filteredArrayUsingPredicate - need help with run time error
  • Next by thread: Re: NSNull/NSarray .. count
  • Index(es):
    • Date
    • Thread