• 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
NSOpenPanel accessoryView clicks must hit pixels to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOpenPanel accessoryView clicks must hit pixels to work


  • Subject: NSOpenPanel accessoryView clicks must hit pixels to work
  • From: Steve Mills <email@hidden>
  • Date: Mon, 30 Mar 2015 02:19:37 -0500

OK, this is really weird. I just added an accessoryView to an NSOpenPanel. The view contains only a checkbox style NSButton. When testing it, it seemed like the clicks on this button's title didn't always take. It appears that the only clicks that work are clicks that are on the checkbox itself or the button title's rendered pixels. Like I can't click the space between the ascenders in "Add", but must click the actual ascenders in each 'd'. Same with the descender in a 'y'.

I'm on 10.10.2. Can anyone confirm this? Here's how I'm running it:

NSOpenPanel*				panel = [NSOpenPanel openPanel];
AddAssetAccessoryView*		accessory = [[AddAssetAccessoryView alloc] initWithNibName:@"AddAssetAccessoryView" bundle:nil];

panel.accessoryView = accessory.view;

[panel beginSheetModalForWindow:self.windowForSheet completionHandler:^(NSInteger result) {
}

--
Steve Mills
Drummer, Mac geek


_______________________________________________

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: NSOpenPanel accessoryView clicks must hit pixels to work
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Bug with Localized Failure Reason and file moving
  • Next by Date: Re: Core Foundation types as properties
  • Previous by thread: Re: setFrame doesn't work if I put the view into UINavigationController?
  • Next by thread: Re: NSOpenPanel accessoryView clicks must hit pixels to work
  • Index(es):
    • Date
    • Thread