• 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: NSMatrix help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSMatrix help (From: James Andrews <email@hidden>)
 >Re: NSMatrix help (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Help with pixellated NSTIFFRepresentation issues much appreciated
  • Next by Date: Re: Equivelent to drawRect: for drawing after sub views are drawn
  • Previous by thread: Re: NSMatrix help
  • Next by thread: NSFileWrapper question
  • Index(es):
    • Date
    • Thread