Re: NSCollectionView and CoreData question
Re: NSCollectionView and CoreData question
- Subject: Re: NSCollectionView and CoreData question
- From: "I. Savant" <email@hidden>
- Date: Tue, 22 Apr 2008 10:08:43 -0400
> Having set the 'content' binding to the arrangedObjects key in IB didn't
> produce a result though doing it programmatically has. Not sure why this
> would be.
It depends. Since you have provided neither the exact bindings
settings you're using nor the code you used to establish the binding
manually, it's impossible to say.
> Further, with the NSView, is there a way of knowing which of the objects
> that are contained in the NSCollectionView is being drawn and further being
> able to get the data for that specific object?
Not to sound like a broken record, but, have you *read* the
documentation? Sure, the NSCollectionView / NSCollectionViewItem
mechanism is a bit more challenging than your standard button or
table, but not by much and it is fairly well-documented. See
NSCollectionViewItem's documentation, paying particular attention to
the phrase "represented object".
Regarding when it's drawing, the answer is 'when a view's -drawRect:
is called'. If you don't have an NSView subclass that does its own
drawing, however, the time it's drawn is none of your business by
design. Frankly, if you're relying on that for anything other than
drawing within the custom view, you're doing it wrong. Very very
wrong.
This all boils down to one vital question: What (as in 'the end
result') are you trying to accomplish, *exactly*? ... okay, two. TWO
vital questions. The second being: What *exactly* have you tried (be
specific about code, bindings parameters, etc.)?
--
I.S.
_______________________________________________
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