• 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
Re: Feasibility : setObjectValue: + bindings + Table Column with NSImageCell ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feasibility : setObjectValue: + bindings + Table Column with NSImageCell ??


  • Subject: Re: Feasibility : setObjectValue: + bindings + Table Column with NSImageCell ??
  • From: rajesh <email@hidden>
  • Date: Mon, 15 Dec 2008 13:24:16 +0100


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 (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

--- 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 (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


References: 
 >Feasibility : setObjectValue: + bindings + Table Column with NSImageCell ?? (From: rajesh <email@hidden>)

  • Prev by Date: Re: Where is the Computer Image ?
  • Next by Date: Katoeri-Hiragana input underline drawing
  • Previous by thread: Feasibility : setObjectValue: + bindings + Table Column with NSImageCell ??
  • Next by thread: Re: Feasibility : setObjectValue: + bindings + Table Column with NSImageCell ??
  • Index(es):
    • Date
    • Thread