On Jul 1, 2011, at 2:43 PM, Development wrote:
> I have tried having the view itself use convertRectToBase passing the screen 
> bounds.

That method doesn't do what you think it does. The docs say pretty clearly you 
should pass it a rect "in the receiver’s coordinate system". This is a method 
of NSView, so the receiver is the view, and question is what is the rect being 
converted to?

I *partly* blame the docs and/or the method name, because it isn't clear what 
"base" means in the method name. This has always bugged me. As far as I can 
tell it means the window's coordinate system, so I don't know why they didn't 
name the method "convertRectToWindow:".

Anyway, check out NSView's window method, and NSWindow's convertBaseToScreen: 
method. See the docs for what these methods return.

--Andy


> This creates a rectangle of the correct size but the origin is always, no 
> matter what, 15,183. 
> I'm totally lost here and don't even know what to search for now that my 
> other attempts have failed.
> Could some one help me out?
> I'm hoping to find something with low overhead as clicks are a 
> factor._______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/aglee%40mac.com
> 
> This email sent to ag...@mac.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to