• 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
image in NSTextField, bug in docs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

image in NSTextField, bug in docs


  • Subject: image in NSTextField, bug in docs
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 03 Feb 2005 21:11:00 -0800

The docs say, on NSTextField:

====

setImportsGraphics:

- (void)setImportsGraphics:(BOOL)flag

Controls whether the receiver allows the user to drag image files into it.
If flag is YES, the receiver accepts dragged images; if flag is NO, it
doesn¹t. You can add images programmatically regardless of this setting.

====

As far as I can tell, that's not so - you *can't* add images
programmatically regardless of this setting; you must setImportGraphics: YES
before you can add images programmatically (e.g. show an NSTextAttachment).
Have I found an error in the docs? (If not, what mistake am *I* making?) Thx
- m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Detecting ctrl-click (context menu) in NSBrowser
  • Next by Date: help:socket programming!
  • Previous by thread: IBOutlet Problems
  • Next by thread: help:socket programming!
  • Index(es):
    • Date
    • Thread