in Mac world it's NSRect, not CGRect

This commit is contained in:
Mitchell Livingston 2012-09-27 00:21:10 +00:00
parent 340c8aedf7
commit 126583ba85
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@
CGFloat oldMaxWidth = 0.0, originX, newMaxWidth = 0.0;
for (NSTextField * label in labels)
{
const CGRect oldFrame = [label frame];
const NSRect oldFrame = [label frame];
if (oldFrame.size.width > oldMaxWidth)
{
oldMaxWidth = oldFrame.size.width;

View File

@ -62,7 +62,7 @@
CGFloat oldMaxWidth = 0.0, originX, newMaxWidth = 0.0;
for (NSTextField * label in labels)
{
const CGRect oldFrame = [label frame];
const NSRect oldFrame = [label frame];
if (oldFrame.size.width > oldMaxWidth)
{
oldMaxWidth = oldFrame.size.width;