• 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
a Weird visibleRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: a Weird visibleRect
      • From: norio <email@hidden>
  • Prev by Date: Re: Weird visibleRect
  • Next by Date: Re: Cocoa et al as HCI usability problem
  • Previous by thread: Re: Weird visibleRect
  • Next by thread: Re: a Weird visibleRect
  • Index(es):
    • Date
    • Thread