in Mac world it's NSRect, not CGRect
This commit is contained in:
parent
340c8aedf7
commit
126583ba85
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue