Add NSString into an NSImage
Add NSString into an NSImage
- Subject: Add NSString into an NSImage
- From: Roberto Sobachi <email@hidden>
- Date: Mon, 16 Feb 2004 14:23:27 +0100
I've readed all documentation about including text into an NSImage, and
return this one.
It's not so clear.
How can I calculate the Point of my NSImage without a View?
I've got this code:
NSBundle * bundle = [NSBundle mainBundle];
NSString * path = [bundle pathForImageResource:@"drag_image"];
NSImage *tempImage = [[[NSImage alloc] initWithContentsOfFile:path]
autorelease];
NSAttributedString *tempString;
[tempString initWithString: @"sddfgfgfd"];
[tempImage lockFocus];
???????
[tempImage unlockFocus];
return tempImage;
Roberto Sobachi
developer
http://www.xidiar.com
_______________________________________________
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.