• 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 in a PrefPane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: NSImageView in a PrefPane
      • From: "Yves Peneveyre" <email@hidden>
  • Prev by Date: Re: Howto: send cookies/customize HTTP request headers?
  • Next by Date: Re: FSSpec for non-existant file?
  • Previous by thread: Doc notes redux
  • Next by thread: RE: NSImageView in a PrefPane
  • Index(es):
    • Date
    • Thread