Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImageView in a PrefPane



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...




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.