push button bounds are bigger than I'd expected...
push button bounds are bigger than I'd expected...
- Subject: push button bounds are bigger than I'd expected...
- From: Sean McBride <email@hidden>
- Date: Thu, 06 Mar 2014 17:37:30 -0500
- Organization: Rogue Research Inc.
Hi all,
In Interface Builder, if I turn on Editor > Canvas > Show Bounds Rectangles then it shows blue rectangles representing views' bounds rectangles (I suppose). I notice for push buttons that this blue rectangle is not where I expect it, it's not tight around the visual appearance of the push button, but outset by several pixels. Is that normal? Why is this so?
(I got to this question investigating a weird bug where a custom NSView of mine was getting into mouseDragged: and mouseUp: *without* first getting into mouseDown:, something I thought should never happen, but I've seen in this list's archives that other have seen this in some weirdo situations. In my case, I can reproduce it if my custom NSView has subviews that have push buttons and the user clicks just outside the visual edge of the push button but within the blue rectangle area that IB draws.)
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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