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 protected])
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/kainjow%40kainjow.com
> 
> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to