On Dec 15, 2008, at 1:09 PM, Alexander Spohr wrote:

An NSImageCell needs an image. Why would you bind an NSDictionary to it?
I have a column with image + text as well , so I took advantage of setting object value as Dictionary and in the drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView in NSTextFieldCell , I got the objectValue ( i.e., dictionary ) and done the necessary drawing + text display

I tried following the same approach here as well

And why would you call an ivar holding a dict previewID and not previewDict?
I have Framework which returns details of image in Dictionary format ( like URL etc ) I am trying something like , lazy loading of images , because i have very large number of images
I load image only when it is required

And why do you call that sometimes PreviewID and sometimes previewID?
It just a identifier ( but binding value is dictionary )

My ultimate question is , can't I take care it like the NSTextFieldCell case ?

Thanks
Rajesh




Am 15.12.2008 um 12:11 schrieb rajesh:

Hi all,
w.r.t one of my earlier post ( subject : Design for showing ridiculously huge number of images in Table View )

I have a table column(With ImageCell) to be filled with images , I have a NSTreeController which has dictionary for this image ( dictionary has few details , using which I fetch the images ) after binding this column with the said dictionary and running the build , in run log , I see complaints, that it is expecting an NSImage .... and hence image don't show up

instead using a NSTextField cell , I could draw the image myself , I don't think its a good idea because I need to show images proportional to their sizes

am I doing a blunder here ?<Picture 5.png> , previewID has dictionary with it. every other column is fine with the binding , except this imageColumn Should I work at cell level binding ? like cell's Controller Key with 'selection' ??

I need to show a image-tool tip when I hover this image .... but that is future requirement and it can wait for now...


Thanks in Advance
~Rajesh_______________________________________________

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/atze%40freeport.de

This email sent to a...@freeport.de

---
Alexander Spohr
Freeport & Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---




_______________________________________________

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