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

Re: struct problem


  • Subject: Re: struct problem
  • From: Dean Ritchie <email@hidden>
  • Date: Sat, 12 Apr 2008 05:03:39 -0700


On Apr 12, 2008, at 1:37 AM, Hamish Allan wrote:

On Sat, Apr 12, 2008 at 2:58 AM, Dean Ritchie <email@hidden> wrote:

       columnCount = [[LASize cellAtIndex:0] intValue];
       rowCount = [[LASize cellAtIndex:1] intValue];

When I stop right after initializing the NSRect local variable, the
debugger reports miniscule values for the portions of the rectangle, like it
got overlaid with integers instead of float values.

Where are columnCount and rowCount declared, and as what types?

They are class variables, type int.

Hamish

P.S. Use a logical OR rather than a numerical one:
if (columnCount < 5 || rowCount < 5) return;

Oops! Thanks.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: struct problem
      • From: Ben Lachman <email@hidden>
References: 
 >struct problem (From: Dean Ritchie <email@hidden>)
 >Re: struct problem (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: Core Data and the Document Dirty indicator
  • Next by Date: Re: Tight loop processing
  • Previous by thread: Re: struct problem
  • Next by thread: Re: struct problem
  • Index(es):
    • Date
    • Thread