NSImageView
NSImageView
- Subject: NSImageView
- From: Lukasz Kuczborski <email@hidden>
- Date: Mon, 04 Mar 2002 20:08:34 +0100
Any ideas why this doesn't work properly? I can see proper size of my
NSPanel (= size of my image), but there is no image displayed...And i know
this is not release fault...i have checked..
- (IBAction)myAboutBox:(id)sender
{
NSImage *about = [[NSImage alloc] initWithContentsOfFile:[[NSBundle
mainBundle] pathForImageResource:@"SimpleLister1"]];
[startupImage setImage:about];
[startupImage setImageAlignment:NSImageAlignCenter];
[startupImage setImageScaling:NSScaleNone];
[startupImage setImageFrameStyle:NSImageFramePhoto];
[startup setContentSize:[about size]];
[startupImage setNeedsDisplay:YES];
[about release];
[startup orderFront:self];
}
startupImage => NSImageView
startup => NSWindow (NSPanel)
TIA,
Lukasz
_______________________________________________
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.