• 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
[Newbie] Displaying an NSImage inside an NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Newbie] Displaying an NSImage inside an NSTextField?


  • Subject: [Newbie] Displaying an NSImage inside an NSTextField?
  • From: email@hidden
  • Date: Tue, 30 Jun 2009 14:51:47 +0200

Hello *,

I am currently trying to write a program that does the following:
- Has a bunch of questions/answers stored internally
- displays a random question in one area of the GUI and hides the answer to that question in another area of the GUI
- displays the answer when you click "show answer"


So yeah it's supposed to be a rather simple "study tool".

My question/problem is:

I initially thought that I could just have two NSTextFields, one for the question, one for the answer, however the problem with that is that some of the questions and answers actually include little images and I've been struggling for the past days trying to find out if, and if 'how', I can display an NSImage *inside* an NSTextField. But maybe this approach is totally newbish and crude and there is a much more elegant and cocoa-ish solution for what I'm trying to achieve?

I hope someone can help me with an answer or a good pointer to the answer of my problem.


Thanks much in advance!!

-Philipp
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [Newbie] Displaying an NSImage inside an NSTextField?
      • From: Mike Abdullah <email@hidden>
    • Re: [Newbie] Displaying an NSImage inside an NSTextField?
      • From: Graham Cox <email@hidden>
    • Re: [Newbie] Displaying an NSImage inside an NSTextField?
      • From: WT <email@hidden>
    • Re: [Newbie] Displaying an NSImage inside an NSTextField?
      • From: "I. Savant" <email@hidden>
    • localisation of contents in main menu
      • From: Rajendran P <email@hidden>
  • Prev by Date: Window not displaying
  • Next by Date: localisation of contents in main menu
  • Previous by thread: Re: Window not displaying
  • Next by thread: localisation of contents in main menu
  • Index(es):
    • Date
    • Thread