Re: Showing a popover from an NSOutlineView
Re: Showing a popover from an NSOutlineView
- Subject: Re: Showing a popover from an NSOutlineView
- From: Jonathan Hull <email@hidden>
- Date: Wed, 22 May 2013 14:49:57 -0700
Have you considered subclassing NSPopupButtonCell and overriding the interaction code? The alternative would be to subclass NSCell (or an appropriate subclass) and override the drawing methods. For the triangle, you could either use an image, or preferably, measure the dimensions and draw it using a CGPath.
You may also want to consider a view-based outline view, as it is a bit easier to work with, and will be easier to show a popover from.
Finally, from an interaction design perspective, you may want your cell/view to look a bit different than a NSPopupButtonCell, as things which behave differently should look different.
Thanks,
Jon
On May 22, 2013, at 2:19 PM, Steve Mills <email@hidden> wrote:
> On May 22, 2013, at 16:15:31, Alex Zavatone <email@hidden>
> wrote:
>
>> I've got a simple case for iOS that I can send you where I issue an UIPopoverController and a PopoverContentViewController from a UIButton in a UINavigationBar.
>>
>> Sounds like you're trying to do this in the Mac, but if you think it will help, I'll strip the project down to the minimum and send your way. Will work on iOS 5 and up, Xcode 4.2 and up.
>
> Yes, OS X, not iOS. If your case doesn't involve an outline view or table view, I don't think it will be of much help. I already have code to show a popover from a button. I'm asking about showing a popover from a call in an outline view.
>
>> As for retheme-ing the border for the popover, haven't tried that yet. If you need some close to accurate triangles, I can get those for you and you can put them in a UIImageView over the button.
>
> I'm not retheming the popover. I asked about drawing a popup triangle.
>
> --
> Steve Mills
> office: 952-818-3871
> home: 952-401-6255
> cell: 612-803-6157
>
>
>
> _______________________________________________
>
> 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
>
_______________________________________________
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