On Dec 6, 2009, at 11:34 AM, Matt Neuburg wrote: > On Sat, 5 Dec 2009 20:29:25 -0500, "[email protected]" <[email protected]> > said: >> The Apple docs for NSPopUpButtons says to avoid accessing it's NSMenu >> directly > because it may need to do housekeeping. > > Where do the Apple docs say that? I'm thinking there might be some > misunderstanding lurking here. m.
Indeed, there are a few methods where the docs specifically recommend accessing the menu directly, e.g.: <http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSPopUpButton_Class/Reference/Reference.html#//apple_ref/occ/instm/NSPopUpButton/insertItemWithTitle:atIndex:> > Since this method searches for duplicate items, it should not be used if you > are adding an item to an already populated menu with more than a few hundred > items. Add items directly to the receiver's menu instead. --Andy _______________________________________________ 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]
