Re: NSTextField Image
Re: NSTextField Image
- Subject: Re: NSTextField Image
- From: Michael Watson <email@hidden>
- Date: Thu, 12 Apr 2007 12:11:32 -0400
i. Savant has answered this correctly, I believe:
Subclass NSTextFieldCell, override the appropriate drawing methods,
draw your image where you want inside the cell, then pass an adjusted
drawing rect to super's implementation so super doesn't draw over the
image.
--
m-s
On 12 Apr, 2007, at 12:05, Michael Novak wrote:
What about over the TextField? I would like it clickable so you
think that
would be good? Seeing the image is transparent it would appear to
be in the
TextField.
Is this a risky hack or actually a suitable way to get this effect?
Cheers,
Mike
On 4/12/07, Kevin Hoffman <email@hidden> wrote:
Do you need it to be physically _in_ the text field? Without having
tried this (no access to a Mac at the moment), I wonder if you
couldn't
simply put the image _beneath_ the text field and drop the text
field's
opacity to allow the image to show through.
-----Original Message-----
From: cocoa-dev-bounces+khoffman=email@hidden
[mailto:cocoa-dev-bounces+khoffman=email@hidden] On
Behalf Of Michael Novak
Sent: Thursday, April 12, 2007 11:09 AM
To: email@hidden
Subject: NSTextField Image
Hello All,
I am interesting in have a small graphic displayed in a
NSTextField.
Can anybody point me in a direction or maybe where I can find info in
the
docs? I went looking around but nothing I saw seemed to be
appropriate
for
what I am after. Thanks!
Cheers,
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
40liquidnet.co
m
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
40bungie.org
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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