image in NSTextField, bug in docs
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