a Weird visibleRect
a Weird visibleRect
- Subject: a Weird visibleRect
- From: Norio <email@hidden>
- Date: Fri, 23 May 2008 22:13:31 +0900
Hi,
Sorry for the previous incomplete message.
By the way, what I want to know is:
What cases make visibleRect.origin to be NSZeroPoint?
Since my matrix view didn't draw its cells, I put a log code before and
after its super view's drawRect to show the visible rectangle like
following:
@interface MyMatrix : NSMatrix
@implement MyMatrix
-(void)drawRect:(NSRect)rect
{
mynslog_1
[super drawRect:rect];
mynslog_2
}
The former log (mynslog_1) showed its origin like 300,0, for instance, but
latter (mynslog_2) did 0,0.
Actually the visibleRect was surely contained the bounds rectangle.
Would you tell me what cause it?
Any suggestion and comment would be very appreciated.
Thanks,
Noiro
_______________________________________________
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