For the clipping issue, I am 95% sure it has to do with how NSPopUpButton draws the image. If you look at the following screen capture, you will notice the NSButton and NSPopUpButton differ greatly on how they draw their images. http://screencast.com/t/zXY5sLZP
On Mon, Dec 29, 2008 at 3:18 PM, Carmen Cerino Jr. <[email protected]>wrote: > There is no such thing as simple validation for NSToolbarItems with custom > views. Apple does not implement any validation what so ever when it comes to > those custom items. > > http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/Toolbars/Tasks/ValidatingTBItems.html#//apple_ref/doc/uid/20000753 > > > I am working on cleaning up my sample code to post. I should be able to > post it in a few hours. > > > On Mon, Dec 29, 2008 at 2:14 PM, j o a r <[email protected]> wrote: > >> >> On Dec 29, 2008, at 10:04 AM, Carmen Cerino Jr. wrote: >> >> You need to subclass in order to get validation working. That is the only >>> reason I can think of why it needs to be a subclass >>> >> >> >> Can you describe the type of validation that you're interested in >> performing? Simple validation should work automatically for at least the >> standard Cocoa controls, IIRC. >> >> >> The toolbar items are sized at 32x32 for both min and max. When I create >>> the >>> Popup button control, it is created with a frame of size 32x32 as well. >>> Is >>> there something I am forgetting to properly size? >>> >> >> >> Not sure. Perhaps you can provide a screenshot of what the toolbar looks >> like when it's not aligned properly? If you could post a sample project that >> reproduces your problem, that would probably help too (preferably over http, >> and not inline to the list). >> >> >> j o a r >> >> >> >> > > > -- > Carmen C. Cerino > University of Akron ACM Chapter President > University of Akron Aux. Services Student Assistant > Cell: 440.263.5057 > AIM: UAcodeweaver > [ I <3 MACs ] > -- Carmen C. Cerino University of Akron ACM Chapter President University of Akron Aux. Services Student Assistant Cell: 440.263.5057 AIM: UAcodeweaver [ I <3 MACs ] _______________________________________________ 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]
