Re: NSMatrix and NSImageCell and Bindings
Re: NSMatrix and NSImageCell and Bindings
- Subject: Re: NSMatrix and NSImageCell and Bindings
- From: Steven Kramer <email@hidden>
- Date: Sun, 13 Feb 2005 09:34:31 +0100
Op 11-feb-05 om 22:36 heeft Cornelius Jaeger het volgende geschreven:
Hi List,
I'm getting strange behaviour with a project.
i have a table wired up and a matrix with nsimagecells.
the table holds albums and the matrix ought to display the associated
images.
i have two nsarraycontrollers.
playlistController and filesController.
when i wire them up in a master-detail scenario the
filesController.arrangedObjects.image delivers an NSCFString
representation of the NSImage object. This is not the case with an
NSTableView.
Am i doing something painfully wrong or is this a bug?
I can get this working easily with two nstableviews, and it works
programmatically when i set up the matrix's cells' and use a setImage
call.
I've reported a very similar bug, so I think you'll have to start
thinking about a work-around - after submitting a bug report, of
course. I now see that I haven't actually reported it, because I
couldn't reproduce the bug in a small project. But the symptoms were
that I would get the value of NSImage itself in the valuePath binding
of the image.
I now work around this by checking for the type of the argument
(should be NSString, sometimes get an NSImage) in my setImagePath
method.
Regards,
Steven Kramer
--
email@hidden
http://sprintteam.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden