• 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 bug with NSWindow's convertBaseToScreen: method ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A bug with NSWindow's convertBaseToScreen: method ?


  • Subject: Re: A bug with NSWindow's convertBaseToScreen: method ?
  • From: Johan Kool <email@hidden>
  • Date: Wed, 18 Apr 2007 14:07:51 +0200

Mike,

Ah, I now see where I went "wrong." Not sender, but its superview should do the conversion. This should handle all cases:

NSRect rectInWindow = [[sender superview] convertRect:[sender frame] toView:nil];
NSPoint originOnScreen = [[sender window] convertBaseToScreen: rectInWindow.origin];


Johan

---
  http://www.johankool.nl/



_______________________________________________

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: A bug with NSWindow's convertBaseToScreen: method ?
      • From: Mike Zornek <email@hidden>
References: 
 >A bug with NSWindow's convertBaseToScreen: method ? (From: Mike Zornek <email@hidden>)
 >Re: A bug with NSWindow's convertBaseToScreen: method ? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: A bug with NSWindow's convertBaseToScreen: method ?
  • Next by Date: Core Data & Bindings: Non-string types in an NSTableView
  • Previous by thread: Re: A bug with NSWindow's convertBaseToScreen: method ?
  • Next by thread: Re: A bug with NSWindow's convertBaseToScreen: method ?
  • Index(es):
    • Date
    • Thread