On Tue, Apr 22, 2008 at 2:03 PM, Peter Browne
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I'm returning to Cocoa after quite a long break, and it seems that I'm a
> little rusty...
>
>  All I want to do is find out the number of items in an NSArray and store
> that as a variable, which I can then find the square root of.
>
>  The docs tell me that [NSArray count] returns an NSUInteger, but exactly
> WHAT one of these is, or how I use it is baffling me.
>
>  a simple
>
>         int i = [myArray count];
>
>  crashes out, and I've tried various other types of variable to no avail.
> Any thoughts? Am I missing something blindingly obvious here?

NSUInteger is either "unsigned int" in the 32 bit runtime or "unsigned
long" in the 64 bit runtime.

Review: 
<http://developer.apple.com/documentation/Cocoa/Conceptual/Cocoa64BitGuide/64BitChangesCocoa/chapter_3_section_2.html>

The crash is unrelated the use of int in the above... Can you outline
more information about the "crash" you are seeing?

-Shawn
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to