Re: NSMatrix help
Re: NSMatrix help
- Subject: Re: NSMatrix help
- From: James Andrews <email@hidden>
- Date: Fri, 8 Oct 2004 10:59:15 -0400
Cool, thanks that totally fixed it.
>
> NSLog([[NSNumber numberWithInt:[myMatrix numberOfRows]]
>
> stringValue]);
>
>
may happen to work, but is just wrong. The first parameter to NSLog()
>
is a format string, and thus cannot be any arbitrary NSString. Some
>
day, a % character is going to appear in that first string, and NSLog()
>
will look for a stack parameter that isn't there, crashing your
>
program. What you meant was:
>
>
NSLog(@"Row count = %d", [myMatrix numberOfRows]);
Yeah, I've never had it crash on me, but your right I probably should
probably start doing it this way. Thanks again.
-james
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden