NSImageView and getting change events

2008-06-27 Thread Totte Alm

Hello Cocoa experts,

I've got a window, with a bunch of showable views, one contain an  
NSImageView. I need to inform my Controller when the user drops or  
pastes something into this NSImageView to reflect document changes and  
update my internal changes manager. This seems to be a less than  
trivial task as you cannot seem to set a delegate to the NSImageVIEW,  
nor is it documented anywhere what kind of Notifictions it will send  
when the image is changed, but I guess someone out there has figured  
out some way to do this without having to subclass or write an own  
class.


I have written other droppods for other file or data, but I would like  
to use the NSImageView as it does what it is supposed to do i all  
other respects.


Cheers,

// Totte
-
I never expected the Spanish Inquisition!

___

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 [EMAIL PROTECTED]


Re: NSImageView and getting change events

2008-06-27 Thread Uli Kusterer

Am 27.06.2008 um 10:20 schrieb Totte Alm:
I've got a window, with a bunch of showable views, one contain an  
NSImageView. I need to inform my Controller when the user drops or  
pastes something into this NSImageView to reflect document changes  
and update my internal changes manager. This seems to be a less than  
trivial task as you cannot seem to set a delegate to the  
NSImageVIEW, nor is it documented anywhere what kind of Notifictions  
it will send when the image is changed, but I guess someone out  
there has figured out some way to do this without having to subclass  
or write an own class.



 I think the NSImageView sends its action to its target when its  
image gets changed that way. Have you tried that?


Cheers,
-- Uli Kusterer
The Witnesses of TeachText are everywhere...
http://www.zathras.de





___

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 [EMAIL PROTECTED]