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

Re: NSNull/NSarray .. count


  • Subject: Re: NSNull/NSarray .. count
  • From: Buddy Kurz <email@hidden>
  • Date: Thu, 22 Mar 2007 22:31:52 -0700

My guess would be that whatever [self planning] is was not retained and the memory got reused by an instance of NSNull


On Mar 22, 2007, at 10:23 PM, arri wrote:

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

_______________________________________________

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: arri <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>)
 >NSNull/NSarray .. count (From: arri <email@hidden>)

  • Prev by Date: Re: NSViewAnimation choppy animations
  • Next by Date: Re: NSNull/NSarray .. count
  • Previous by thread: NSNull/NSarray .. count
  • Next by thread: Re: NSNull/NSarray .. count
  • Index(es):
    • Date
    • Thread