NSImageView in a PrefPane
NSImageView in a PrefPane
- Subject: NSImageView in a PrefPane
- From: Martin Kautz <email@hidden>
- Date: Thu, 15 Nov 2001 09:19:08 +0100
Hello list,
I'm trying to show a sort of logo in a pref pane (ported from a normal
CocoaApp)... But anyhow, it sucks. :-(
I definded an outlet 'logo' as a NSImageView and added 'logo.tiff' to my
project
Then I inserted the following lines into mainViewDidLoad
- (void) mainViewDidLoad
NSImage *logofile = [NSImage imageNamed:@"logo.tiff"];
[logo setImage:logofile];
...
}
The code itself compiles fine without error an the built pane runs fine.
However it does not show the logo...
If I try to 'NSLog' the variable logofile it's (null). :-/ What's wrong
here?
The same code runs perfect in an application.
Martin
P.S. The logo should appear in a NSIMageView nested in a NSTabViewItem.
Maybe this makes it kinda special...