objective c - Making IKImageView aware of my custom NSImageRep -



objective c - Making IKImageView aware of my custom NSImageRep -

in application, i’ve written custom nsimagerep handle proprietary image format. application’s primary view ikimageview, intend load images i’ve made custom nsimagerep viewing , manipulation.

if create cgimageref of these images , pass reference on image view works fine, not ideal. if possible, i’d create utilize of ikimageview’s setimagewithurl: method, mentioned beingness preferred method docs, plus it’s cleaner. unfortunately view seems exclusively ignorant of nsimagerep , fails load image.

is there can done create image view understand custom representations?

i think need phone call nsimagerep's registerimagerepclass: sometime in app's startup.

i'm sure need implement imageunfilteredtypes in sub-class

from: https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/nsimagerep_class/reference/reference.html#//apple_ref/occ/clm/nsimagerep/registerimagerepclass:

objective-c cocoa nsimage ikimageview nsimagerep

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -