• 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: NSImageVIew bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageVIew bindings


  • Subject: Re: NSImageVIew bindings
  • From: Scott Anguish <email@hidden>
  • Date: Sat, 31 Jan 2004 03:35:18 -0500

On Jan 31, 2004, at 3:24 AM, Francisco Tolmasky wrote:

I've set an image view's bindings to the data object of one of my internal objects. When I drag and drop an image to the view the model is properly updated, but for some reason when I call setImage on the image view the object is not updated. Does anyone know what could be wrong?


That sounds like a bug, although I wonder if it the same behavior is displayed if you try a similar thing with an NSTextField binding..


Anyways.. you should probably set the image by setting the bound data object directly as a work around. (You might be able to force the update by having the imageview send it's target action, if you can't access the model directly for some reason -- I'm not sure)

Ah, incidentally.... The data provided to the NSImageView via the data binding can be any any of the image types supported by NSImage.. but when you change the image, the data is updated as a TIFF representation.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: NSImageVIew bindings
      • From: Francisco Tolmasky <email@hidden>
References: 
 >NSImageVIew bindings (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: Re: Dragging
  • Next by Date: Re: Using NSScrollView at run time
  • Previous by thread: NSImageVIew bindings
  • Next by thread: Re: NSImageVIew bindings
  • Index(es):
    • Date
    • Thread