Re: XCode's Special Buttons
Re: XCode's Special Buttons
- Subject: Re: XCode's Special Buttons
- From: Kevin Wojniak <email@hidden>
- Date: Mon, 1 Mar 2010 15:50:33 -0800
It's probably an NSPopUpButton subclass, with a custom NSPopUpButtonCell subclass to change its appearance. I don't think IB lets you create custom popup buttons that small, so you'd probably have to either use a standard button or a custom view, and then set the class name and finish up any other configurations in the subclass's awakeFromNib/initWithFrame/initWithCoder/etc methods.
Kevin
On Mar 1, 2010, at 2:25 PM, Jean-Henri Duteau wrote:
> Okay, simple question here...
>
> I'd like to replicate the + and - buttons that are found in XCode's Data modeller view. This is the one where you click on '+' and it shows a menu of attribute/property/relationship. Is it a simple button that's scaled down and is combined to a pop-up? I've tried a few abortive attempts to recreate it but haven't had success. I'm sure if I'm just given a hint as to how it's done, I could make it happen. Of course, pointers to sample code is always nice.
>
> Thanks,
>
> Jean_______________________________________________
>
> 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