• 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
When is the "isFlipped" method called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When is the "isFlipped" method called?


  • Subject: When is the "isFlipped" method called?
  • From: Ken Tozier <email@hidden>
  • Date: Sat, 3 Feb 2007 03:01:52 -0500

Hi

I have a custom NSView basically working but I'm getting this one orphaned tracking rect that's appearing in the exact location where one of the custom view's subviews would appear if the coordinates were not flipped. A second tracking rect for this item appears in the correct spot.

The tracking rect is first created in the subview's "viewDidMoveToWindow" method and subsequent tracking rect repositioning is handled in the two methods "setFrame" and "setBounds." The first line in each of the three methods is [self removeTrackingRect: trackingRectTag] but somehow, somewhere a frame move is occurring without setFrame or setBounds getting called.

The only thing I can think of is that during initialization, items are drawn in their unflipped locations and moved to their final destinations. Does anyone know if that's the case? Or is there some other scenario where a view could move without "setFrame" or "setBounds" ever getting called.

TIA

ken
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: When is the "isFlipped" method called?
      • From: "Alan Smith" <email@hidden>
  • Prev by Date: Re: A Drag that Never Starts...
  • Next by Date: NSTextView font for inserted text
  • Previous by thread: Re: A Drag that Never Starts...
  • Next by thread: Re: When is the "isFlipped" method called?
  • Index(es):
    • Date
    • Thread