• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem deploying a NSCollectionView in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem deploying a NSCollectionView in Leopard


  • Subject: Problem deploying a NSCollectionView in Leopard
  • From: James Bucanek <email@hidden>
  • Date: Sat, 2 Jan 2010 15:24:58 -0700

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 (email@hidden)

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:
This email sent to email@hidden


  • Prev by Date: Re: Make NSWindow immovable by dragging bottom bar
  • Next by Date: Re: Make NSWindow immovable by dragging bottom bar
  • Previous by thread: Re: Saving position in NSTextView
  • Next by thread: [[sender selectedCell] tag] crashes in 10.6
  • Index(es):
    • Date
    • Thread