I want to be able to set the user account image to an NSImageView
, even if the image is a custom image.
Is this possible?
This is the image I am speaking of.
I want to be able to set the user account image to an NSImageView
, even if the image is a custom image.
Is this possible?
This is the image I am speaking of.
Use the Collaboration Framework. CBIdentity to be exact.
-(NSImage *)userImage {
CBIdentity *identity = [CBIdentity identityWithName:NSUserName() authority:[CBIdentityAuthority defaultIdentityAuthority]];
return [identity image];
}
https://developer.apple.com/documentation/collaboration/cbidentity