Revision: 7567
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7567&view=rev
Author:   hofman
Date:     2011-12-12 16:28:34 +0000 (Mon, 12 Dec 2011)
Log Message:
-----------
override cellSizeForBounds: instead of cellSize, because the latter just calls 
the former

Modified Paths:
--------------
    trunk/SKColorCell.m
    trunk/SKSnapshotPageCell.m
    trunk/SKTextWithIconCell.m

Modified: trunk/SKColorCell.m
===================================================================
--- trunk/SKColorCell.m 2011-12-11 12:41:45 UTC (rev 7566)
+++ trunk/SKColorCell.m 2011-12-12 16:28:34 UTC (rev 7567)
@@ -42,7 +42,7 @@
 
 @implementation SKColorCell
 
-- (NSSize)cellSize {
+- (NSSize)cellSizeForBounds:(NSRect)aRect {
     return NSMakeSize(16.0, 16.0);
 }
 

Modified: trunk/SKSnapshotPageCell.m
===================================================================
--- trunk/SKSnapshotPageCell.m  2011-12-11 12:41:45 UTC (rev 7566)
+++ trunk/SKSnapshotPageCell.m  2011-12-12 16:28:34 UTC (rev 7567)
@@ -75,8 +75,8 @@
     return [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber 
numberWithBool:hasWindow], SKSnapshotPageCellHasWindowKey, [self stringValue], 
SKSnapshotPageCellLabelKey, nil];
 }
 
-- (NSSize)cellSize {
-    NSSize size = [super cellSize];
+- (NSSize)cellSizeForBounds:(NSRect)aRect {
+    NSSize size = [super cellSizeForBounds:aRect];
     size.width = fmax(size.width, 16.0);
     return size;
 }

Modified: trunk/SKTextWithIconCell.m
===================================================================
--- trunk/SKTextWithIconCell.m  2011-12-11 12:41:45 UTC (rev 7566)
+++ trunk/SKTextWithIconCell.m  2011-12-12 16:28:34 UTC (rev 7567)
@@ -87,8 +87,8 @@
     [super dealloc];
 }
 
-- (NSSize)cellSize {
-    NSSize cellSize = [super cellSize];
+- (NSSize)cellSizeForBounds:(NSRect)aRect {
+    NSSize cellSize = [super cellSizeForBounds:aRect];
     cellSize.width += cellSize.height - 1 + BORDER_BETWEEN_EDGE_AND_IMAGE + 
BORDER_BETWEEN_IMAGE_AND_TEXT;
     return cellSize;
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to