Greetings,

I have an odd problem and was just hoping that someone else has encountered this and might know what's going on.

I've written a Service for Snow Leopard that replaces a contextual menu plug-in in Tiger and Leopard. It put up a HUD-style window that contains:

- An NSCollectionView
- An NSArrayController for the contents of the view
- An NSCollectionViewItem which is prototype for sub-views in the collection view

The NSCollectionViewItem is configured to load its view from a nib document that contains a custom subclass of NSBox.

In Snow Leopard everything works just dandy, but when I run it on Leopard the NSCollectionViewItem's view never loads (I can tell because the -awakeFromNib method is never received by my custom subclass). The data model and array controller all seem to be OK, because I can select (the blank) cells in the NSCollectionView and everything else works.

The only clue to what's not working is a mysterious Console message that occurs when the window is loaded or whenever I resize it:

1/2/10 2:10:03 PM QRecallService[10266] NSViewAnimation target is not view or window ((null))

The documentation for NSCollectionViewItem notes that in 10.6 the class has a different superclass, but I can't figure out what it might be bound/connected to that would cause a problem.

The only custom code is the custom sub-class of NSBox used to implement the collection item's view, but as far as I can tell that's not even getting instantiated. Everything else is done with bindings.

Anyone have a clue as to why this won't fly on Leopard?

--
James Bucanek

_______________________________________________

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