• 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
push button bounds are bigger than I'd expected...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: push button bounds are bigger than I'd expected...
      • From: Lee Ann Rucker <email@hidden>
  • Prev by Date: Re: Class name as NSString and problem with NSLog?
  • Next by Date: Re: push button bounds are bigger than I'd expected...
  • Previous by thread: MODERATOR: End of Thread (was Re: NSSavePanel?)
  • Next by thread: Re: push button bounds are bigger than I'd expected...
  • Index(es):
    • Date
    • Thread