Hi,

enclosed a repost of my Question / Problem.

Any ideas, comments would be appreciated...

Thanks,
Joachim


Anfang der weitergeleiteten E-Mail:

> Von: Joachim Deelen <cocoa-...@deelen.de>
> Datum: 2. Februar 2010 23:40:30 MEZ
> An: Cocoa-dev List <cocoa-dev@lists.apple.com>
> Betreff: NSCollectionView and its Items
> 
> Hi,
> 
> is it possible, in Mac OS X 10.5, to get a list of the NSCollectionViewItems 
> directly from the NSCollectionView. The "content" Message returns a list of 
> the Represented-Objects, not the Items.
> 
> Currently I'm overwriting the "newItemForRepresentedObject". Within that 
> method I'm putting the created items in an internal Array for later use. 
> While debugging my App, under 10.6, I saw that NSCollectionView has a 
> "_content" attribute which holds all the NSCollectionViewItems. But calling 
> "content" on the CollectionView returns the Represented-Objects not the 
> ViewItems.
> 
> I know in 10.6 there is a new method "itemAtIndex" which returns the ViewItem 
> but since my App has to be 10.5 compatible I can not use it.
> 
> I can live with the workaround of overwriting "newItemForRepresentedObject" 
> but to me it seems unnecessary because the CollectionView already has all the 
> information.
> 
> Any Ideas?
> 
> -
> Joachim
> 
> 
> 
> _______________________________________________
> 
> 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/cocoa-dev%40deelen.de
> 
> This email sent to cocoa-...@deelen.de
> 

_______________________________________________

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