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

Re: a Weird visibleRect


  • Subject: Re: a Weird visibleRect
  • From: norio <email@hidden>
  • Date: Fri, 23 May 2008 22:28:36 +0900

Let me correct some of the previous.

The bound rectangle of the view contains the visibleRect.

And argument was also the same as the visibleRect.

The matrix was on a clip view and the clip view was on a scrollview.

And the scrollview is usually hidden when the window where the scroll view is located opens.
When user presses a button, the scroll view scrolls at the end of the view , then the scroll view becomes visible and it's supposed to show its cells.


However, the trouble happened as I mentioned in the last message.

Thanks,
norio

On 2008/05/23, at 22:13, Norio wrote:

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>
    • Re: a Weird visibleRect
      • From: Graham Cox <email@hidden>
References: 
 >a Weird visibleRect (From: Norio <email@hidden>)

  • Prev by Date: Re: Cocoa et al as HCI usability problem
  • Next by Date: Re: Cocoa et al as HCI usability problem
  • Previous by thread: a Weird visibleRect
  • Next by thread: Re: a Weird visibleRect
  • Index(es):
    • Date
    • Thread