On 17/06/2010, at 9:20 AM, Jerry Krinock wrote:

> Why might the collection view feel it needs to encode the items in this popup 
> menu?


Isn't the view template copied by archiving/dearchiving, since NSView doesn't 
support NSCopying?

A similar problem I've run into is that when you set -representedObject on a 
menu item that has any possibility of being displayed in a toolbar, collection 
view or any other place that might be "copied", the object set must conform to 
NSCoding. On 10.5, toolbar items were copied in this way when displayed in the 
customise sheet, though in 10.6 that was changed to just render an image of the 
control instead (since the controls don't need to actually function there). But 
for views that must be functional, that wouldn't work so representedObjects 
must support NSCoding. It might be worth filing a bug against the docs for that 
method to point out this.

--Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to