• 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: Avoid drawing in half pixel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avoid drawing in half pixel


  • Subject: Re: Avoid drawing in half pixel
  • From: Bill Hernandez <email@hidden>
  • Date: Thu, 6 May 2010 09:11:30 -0500

On May 6, 2010, at 9:00 AM, Bill Hernandez wrote:

> // +---------+---------+---------+---------+---------+---------+---------+---------+
> // DEFINE AND INITIALIZE MAIN RECT VARIABLES
> // +---------+---------+---------+---------+---------+---------+---------+---------+
> NSUInteger i = 0;              // init the inner loop (column) counter
> NSUInteger j = 0;              // init the outer loop (row) counter
> NSUInteger counter = 1;        // init the counter for the total number of items
>
> NSRect boxRect;                // declare a general purpose rectangle
> CGFloat x, y, w, h;            // declare {origin, size} integer variables


This should have been :

// +---------+---------+---------+---------+---------+---------+---------+---------+
// DEFINE AND INITIALIZE MAIN RECT VARIABLES
// +---------+---------+---------+---------+---------+---------+---------+---------+
NSUInteger i = 0;                   // init the inner loop (column) counter
NSUInteger j = 0;                  // init the outer loop (row) counter
NSUInteger counter = 1;        // init the counter for the total number of items

NSRect boxRect;                   // declare a general purpose rectangle
// NSUInteger x, y, w, h;                  // declare {origin, size} integer variables
CGFloat x, y, w, h;                  // declare {origin, size} float variables


Sorry,  I never updated the comment when I converted from NSUInteger to CGFloat

Best,

Bill Hernandez
Plano, Texas_______________________________________________

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

References: 
 >Avoid drawing in half pixel (From: Gustavo Pizano <email@hidden>)
 >Re: Avoid drawing in half pixel (From: Bill Hernandez <email@hidden>)

  • Prev by Date: NSBox sizeToFit problem
  • Next by Date: Re: Utility/Floating window with titlebar on left side
  • Previous by thread: Re: Avoid drawing in half pixel
  • Next by thread: Authenticate NSFileManager Operations
  • Index(es):
    • Date
    • Thread