• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: IORegistry
  • Next by Date: Re: window focus trouble
  • Previous by thread: IORegistry
  • Next by thread: Re: NSImageView
  • Index(es):
    • Date
    • Thread