Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
maybe i'm ignorant, but the only way i know how to display an image in a view is with this method:

Code:
- (void)drawRect:(NSRect)rect
	{
	NSPoint imagePosition;
	imagePosition = NSMakePoint(0,0);
	aboutImage = [NSImage imageNamed:@"image.png"];
	[aboutImage dissolveToPoint: imagePosition fraction:(1.0)];
	}

this also requires subclassing and writing the NSView object... it all seems like such overkill just to display an picture...

are there any other more simplistic options?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.